Skip to content

Commit 39e2e47

Browse files
committed
small clarifications
1 parent 3114d65 commit 39e2e47

File tree

1 file changed

+28
-36
lines changed

1 file changed

+28
-36
lines changed

Lesson09_Project/MF Promotions/MF Promotions-Template.ipynb

Lines changed: 28 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,28 @@
22
"cells": [
33
{
44
"cell_type": "markdown",
5-
"metadata": {
6-
"collapsed": false
7-
},
5+
"metadata": {},
86
"source": [
9-
"We are going to replacte the results in this paper: http://www.ruf.rice.edu/~lane/papers/male_female.pdf Take a minute to read the paper. They found that small biases in evalutations of men and women in the workplace can result in a significan underrepresntation of women in top roles.\n",
7+
"### Male/Female promotions simulation (TEMPLATE)"
8+
]
9+
},
10+
{
11+
"cell_type": "markdown",
12+
"metadata": {},
13+
"source": [
14+
"We are going to replicate the results in this paper: http://www.ruf.rice.edu/~lane/papers/male_female.pdf. Take a minute to read the paper. They found that small biases in evalutations of men and women in the workplace can result in a significant underrepresntation of women in top roles.\n",
1015
"\n",
1116
" Even more dramatic is the finding that when\n",
1217
" sex differences explained but 1% of the variance,\n",
1318
" an estimate that might be dismissed as\n",
1419
" trivial, only 35% of the highest-level positions\n",
15-
" were filled by women\n",
20+
" were filled by women.\n",
1621
"\n",
17-
"Essentially we are going to set up a company hierarchy simulation with a modifiable bias factor. Then play out a attrition and promotion cycle to see how this affects gender distribution at different levels.\n",
22+
"Essentially, we are going to set up a simulation of a company hierarchy with a modifiable bias factor. Then we will play out an attrition and promotion cycle to see how this affects gender distribution at different levels of the hierarchy.\n",
1823
"\n",
19-
"I've started you off with genrateRandomPerson function which will be used to generate all the employees of this company. As well as `levels` which is a list of the number of employees at each level and `attrition` which is the percentage of\n",
20-
"employees who are replaced each cycle.\n",
24+
"<b>Template:</b>I've started you off with a `genrateRandomPerson` function, which will be used to generate all the employees of this company. In addition, I have defined a list `levels`, which contains the number of employees at each level, and a variable `attrition`, which is the percentage of employees who are replaced each cycle.\n",
2125
"\n",
22-
"Fill in the functions and the main program and see the results of the simulation. Do you come up with the same results?\n"
26+
"<b>Task:</b> Fill in the remaining functions and the main program, run the simulation and compare your results to those in the paper. Do you come up with the same results?"
2327
]
2428
},
2529
{
@@ -36,9 +40,7 @@
3640
{
3741
"cell_type": "code",
3842
"execution_count": null,
39-
"metadata": {
40-
"collapsed": false
41-
},
43+
"metadata": {},
4244
"outputs": [],
4345
"source": [
4446
"def generateRandomPerson(level=0, new=True):\n",
@@ -66,9 +68,7 @@
6668
{
6769
"cell_type": "code",
6870
"execution_count": null,
69-
"metadata": {
70-
"collapsed": false
71-
},
71+
"metadata": {},
7272
"outputs": [],
7373
"source": [
7474
"def generateStaff(levels):\n",
@@ -85,9 +85,7 @@
8585
{
8686
"cell_type": "code",
8787
"execution_count": null,
88-
"metadata": {
89-
"collapsed": false
90-
},
88+
"metadata": {},
9189
"outputs": [],
9290
"source": [
9391
"def allAreNew(staff):\n",
@@ -115,9 +113,7 @@
115113
{
116114
"cell_type": "code",
117115
"execution_count": null,
118-
"metadata": {
119-
"collapsed": false
120-
},
116+
"metadata": {},
121117
"outputs": [],
122118
"source": [
123119
"def pickBest(staff_level):\n",
@@ -131,9 +127,7 @@
131127
{
132128
"cell_type": "code",
133129
"execution_count": null,
134-
"metadata": {
135-
"collapsed": false
136-
},
130+
"metadata": {},
137131
"outputs": [],
138132
"source": [
139133
"def promote(staff):\n",
@@ -149,9 +143,7 @@
149143
{
150144
"cell_type": "code",
151145
"execution_count": null,
152-
"metadata": {
153-
"collapsed": false
154-
},
146+
"metadata": {},
155147
"outputs": [],
156148
"source": [
157149
"def mfratio(staff_level):\n",
@@ -164,14 +156,14 @@
164156
{
165157
"cell_type": "code",
166158
"execution_count": null,
167-
"metadata": {
168-
"collapsed": false
169-
},
159+
"metadata": {},
170160
"outputs": [],
171161
"source": [
172162
"# Main program\n",
173163
"\n",
164+
"# Number of employes at each level (500 at the lowes, 10 at the highest)\n",
174165
"levels = [500, 350, 200, 150, 100, 75, 40, 10]\n",
166+
"\n",
175167
"attrition = 0.15\n",
176168
"# Generate staff\n",
177169
"# Start with a set number of iterations (5)\n",
@@ -183,23 +175,23 @@
183175
],
184176
"metadata": {
185177
"kernelspec": {
186-
"display_name": "Python 2",
178+
"display_name": "Python 3",
187179
"language": "python",
188-
"name": "python2"
180+
"name": "python3"
189181
},
190182
"language_info": {
191183
"codemirror_mode": {
192184
"name": "ipython",
193-
"version": 2
185+
"version": 3
194186
},
195187
"file_extension": ".py",
196188
"mimetype": "text/x-python",
197189
"name": "python",
198190
"nbconvert_exporter": "python",
199-
"pygments_lexer": "ipython2",
200-
"version": "2.7.11"
191+
"pygments_lexer": "ipython3",
192+
"version": "3.6.1"
201193
}
202194
},
203195
"nbformat": 4,
204-
"nbformat_minor": 0
196+
"nbformat_minor": 1
205197
}

0 commit comments

Comments
 (0)