{"id":21282352,"url":"https://github.com/danpersa/bias-sim","last_synced_at":"2025-03-15T14:23:29.312Z","repository":{"id":139864638,"uuid":"165274091","full_name":"danpersa/bias-sim","owner":"danpersa","description":null,"archived":false,"fork":false,"pushed_at":"2019-01-30T09:24:53.000Z","size":633,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-01-22T04:31:22.385Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/danpersa.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-01-11T16:25:36.000Z","updated_at":"2019-01-30T09:24:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"52412f0f-ff83-4375-837c-538b0335bcd6","html_url":"https://github.com/danpersa/bias-sim","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danpersa%2Fbias-sim","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danpersa%2Fbias-sim/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danpersa%2Fbias-sim/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danpersa%2Fbias-sim/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danpersa","download_url":"https://codeload.github.com/danpersa/bias-sim/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243740793,"owners_count":20340342,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-21T10:54:28.628Z","updated_at":"2025-03-15T14:23:29.296Z","avatar_url":"https://github.com/danpersa.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bias Simulation\n\nThe goal of this experiment is to get an impression on how unconscious bias can affect the structure of a company. This was inspired by [this talk](https://www.youtube.com/watch?v=nLjFTHTgEVU).\n\nLet's explain what the simulation is about:\n\n - We assume that there is an organization, with 7 layers\n   - On the level 1 there are the senior members of the organization\n   - On level 7 we have the most junior members\n - We assume that at each level, there are 50% man and 50% women\n - Before beginning the simulation, two parameters can be set:\n    - **Attrition rate**:\n    On every step of the simulation, as assume that some employees leave the company.\n    We assume that half of these employees are women and half man.\n    The *attrition rate* gives the percentage of employees who decide to leave.\n    - **Bias level**: We'll explain this later.\n\nStarting the simulation:\nThe simulation has 20 steps. Here is what happens during each steps:\n - We start from Level 1.\n We assume that the percentage of employees, given by the *attrition rate* leave the company.\n - We have two ways of filling in the open positions:\n We assume that we fill in half of the open positions by hiring new employees and the other half by promoting existing employees from the previous level.\n - We assume that both the hiring and the promotion processes are biased towards men, by a factor given by the *bias level*. See the next chapters about the *Hiring process* and *Promotion process* below.\n\n\n\n### Hiring process\nLet's assume that we have 10 positions to fill. We assume that we have 100 candidates, 50 women and 50 men.\n\n\n## Promotion process\n\n\u003cdiv\u003e\n  \u003cscript type=\"text/javascript\" src=\"https://d3js.org/d3.v5.min.js\"\u003e\u003c/script\u003e\n  \u003clink rel=\"stylesheet\" href=\"https://naver.github.io/billboard.js/release/latest/dist/billboard.css\" /\u003e\n  \u003cscript type=\"text/javascript\" src=\"https://naver.github.io/billboard.js/release/latest/dist/billboard.js\"\u003e\u003c/script\u003e\n\u003c/div\u003e\n\n\u003cdiv\u003e\n  \u003cdiv id=\"config-form\"\u003e\n    \u003clabel for=\"attrition-rate\"\u003eAttrition Rate:\u003c/label\u003e\n    \u003cinput type=\"number\" maxlength=\"2\" id=\"attrition-rate\" value=\"15\"/\u003e\n    \u003clabel for=\"bias-level\"\u003eBias Level:\u003c/label\u003e\n    \u003cinput type=\"number\" maxlength=\"2\" id=\"bias-level\" value=\"1\"/\u003e\n    \u003cbr/\u003e\u003cbr/\u003e\n    \u003cbutton type=\"button\" onclick=\"startSimulation();\"\u003eStart Simulation\u003c/button\u003e\n    \u003cbutton type=\"button\" onclick=\"resetSimulation();\"\u003eReset Simulation\u003c/button\u003e\n  \u003c/div\u003e\n  \u003cbr/\u003e\n  \u003cdiv id=\"attrition-rate-div\"\u003eAttrition Rate: 15\u003c/div\u003e\n  \u003cdiv id=\"bias-level-div\"\u003eBias Level: 1\u003c/div\u003e\n  \u003cbr/\u003e\n  \u003cdiv id=\"simulation\"\u003e\u003c/div\u003e\n\u003c/div\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanpersa%2Fbias-sim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanpersa%2Fbias-sim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanpersa%2Fbias-sim/lists"}