-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig_approach.py
43 lines (34 loc) · 1.34 KB
/
config_approach.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Utility of the decision maker (as v_dy, for decisions d and individuals of type y)
v_11 = 0.1
v_10 = -1
v_01 = 0
v_00 = 0
# Utility of the decision subjects (as w_dy, for decisions d and individuals of type y)
w_11 = 10
w_10 = -5
w_01 = -1
w_00 = 0
# Relevant positions
## Claims differentiator
### Define a lambda function that takes in the data of a decision subject and outputs whether the individual is in J
### Returns true or false
J = lambda decision_subject: decision_subject['Y'] == 1
## Sources of inequality
### The name of the (binary) sensitive variable A
A = 'sex'
# Relation to inequality
### Options are: 'egalitarianism', 'maximin', 'prioritarianism', 'sufficientarianism'
EGALITARIANISM = 'egalitarianism'
MAXIMIN = 'maximin'
PRIORITARIANISM = 'prioritarianism'
SUFFICIENTARIANISM = 'sufficientarianism'
pattern = MAXIMIN
## Weight for worst-off group in prioritarianism (is not used if a pattern other than prioritarianism is chosen)
k = 2
## Minimum level of utility for sufficientarianism (is not used if a pattern other than sufficientarianism is chosen)
s = 0.5
# Number of thresholds tested for each group
num_thresholds = 101
# Type of decision rules to be considered
### Options are: 'linear-lower', 'linear-upper-and-lower', 'quantile-based-lower', 'quantile-based-upper-and-lower'
decision_rules = 'quantile-based-upper-and-lower'