代做program、代写Java/C++程序语言
Smart Industry Operations 2024-2025
Individual Assignment
Classification, Bias, and Fairness

Context of the Assignment
The context of this assignment is the use of predictive AI tools to support decision making in
operational settings. The specific operational setting is in the criminal justice system and the case of
interest is the COMPAS system, referred to in the lectures:
COMPAS: Correctional Offender Management Profiling for Alternative Sanction

The purpose of the assignment is to understand by applying in practice
- How classification methods work and how they can be appropriately assessed
- Understand aspects of bias in AI outcomes
- Make suggestions about how such bias can be mitigated.
The COMPAS system was operationalised in the United States and was provided to the states’
justice systems by private companies. The motivation for the justice system was to have a more
efficient system in place, which would also potentially avoid human bias in making a decision. The
decision is about whether to deny or grant an offender release from prison on the basis of a risk
assessment regarding whether the specific person was at risk of offence recidivism. The risk
assessment is based on a form such as:
www.documentcloud.org/documents/2702103-Sample-Risk-Assessment-COMPAS-CORE
The COMPAS system was designed to use collected data from such risk assessments to make a
prediction about whether an offender under consideration was predicted to be at an risk or not of
recidivism.
Case Data
To perform the tasks in this assignment, you are provided with real data from the operational use
of the COMPAS system. The data set is structured as follows:
age: A numerical variable, marking the age of the person
juv_fel_count: A numerical variable, marking the number of juvenile felonies
juv_misd_count: A numerical variable, counting the number of juvenile misdemeanours
juv_other_count: A numerical variable, indicating the number of juvenile convictions that were
neither felonies nor misdemeanors
priors_count: A numerical variable, providing the number of prior crimes committed
is_recid: Binary variable, stating whether the person recidivate within 2 years (1:yes, 0:no)?
sex: Categorical, the gender of the defendant (broken down in 2 dummy variables) race: Categorical, the race of the defendant, broken down in dummy variables
c_charge_degree: Categorical, the degree by which the person is currently being charged with. The
categories are: felonies, misdemeanors, and infractions, ordered from most serious to least. These
are further broken down to charge types (felonies or misdemeanours), and in each category from
the 1st (most serious offenses) to the least severe (F1-3, M1-MO3). Finally there is an attribute for
other offences and this is a binary attribute (0 or 1).
compas_score: This is the final prediction that the COMPAS system has made for each person,
being at risk or no of offence recidivism. 1: high/medium risk, 0: low risk.

The provided datasets are:
A. recidivism-risk.csv
A complete dataset, populated with all above information. You will use this for your analysis and for
classification modelling training purposes.
B. . recidivism-risk-predict.csv
This is a similar dataset to A, but on this one you have no access to the compass_score. You will use
this to predict the compass score (classify unknown cases).

Assignment Questions
A.1. Exploratory Data Analysis (10% of Assignment 1 mark)

In this part you are expected to:
A1.1. Explore the variables, their types, and their basic statistics.
A1.2. Analyse further the data regarding data distributions, range of values, existence of outliers
and correlations between attributes, as well as between input attributes and compass_score. To
what extent is the dataset balanced regarding the different categories of sex and race and across
the age ranges?

A.2. Classification (30% of Assignment 1 mark)

In this part you are expected to develop classifier models. You will have to consider how best to use
your training data (recidivism-risk.csv) and you are asked to apply the developed models to the
“recidivism-risk-predict.csv” data.
A2.1. Apply a decision tree classifier, choosing different tree depths on the recidivism-risk.csv data.
Motivate your solution analysis in relation to overfit and generalization. Report and analyse
performance using different performance metrics. Analyse your findings. Finally, choose a
developed model and apply it to the recidivism-risk-predict.csv data to produce your predictions.
A2.2. Apply a random forest classifier. random forest regression choosing different number of
estimators and tree depths. Motivate your solution and analysis in relation to overfit and
generalization. Report and analyse performance using different performance metrics. Analyse your
findings. Finally, choose a developed model and apply it to the recidivism-risk-predict.csv data to
produce your predictions. A2.3. Apply a Naïve Bayes classifier. Report and analyse performance using different performance
metrics. Analyse your findings. Finally, choose a developed model and apply it to the recidivismrisk-predict.csv
data to produce your predictions.
A2.4. Apply a support vector classifier. Report and analyse performance using different
performance metrics for three different ‘gamma’ values. Analyse your findings. Finally, choose a
developed model and apply it to the recidivism-risk-predict.csv data to produce your predictions.
A2.5. Make a comparative analysis across all classifier experiments. Make a reasoned choice of a
classifier to select and motivate the choice referring to the evidence obtained from performance
metrics.

A.3. Bias Analysis and Management (50% of Assignment 2 mark)

In this part you are expected to further analyse the data regarding potential bias. Specifically
consider the characteristics ‘age’, and sex (female, male), and race (all categories).
A3.1.1-A3.1.4. Perform exactly the same experiments as in part A.2. but without taking into account
the ‘race’ attributes. Analyse the difference of the obtained results compared to A.2. (A3.1.1 is for
decision tree, A3.1.2 for random forest, A3.1.3 for Naïve Bayes, A3.1.4 for support vector classifier).
Consider also your observations from part A.1. regarding the distribution of data in the recidivismrisk.csv
dataset with regard to the race attributes in your analysis.
A3.2.1-A3.2.4. Perform exactly the same experiments as in part A.2. but without taking into account
the ‘sex’ attributes. Analyse the difference of the obtained results compared to A.2. (A3.2.1 is for
decision tree, A3.2.2 for random forest, A3.2.3 for Naïve Bayes, A3.2.4 for support vector classifier).
Consider also your observations from part A.1. regarding the distribution of data in the recidivismrisk.csv
dataset with regard to the sex attributes in your analysis.
A3.3.1-A3.3.4. Perform exactly the same experiments as in part A.2. but without taking into account
the ‘sex’ and ‘race’ attributes. Analyse the difference of the obtained results compared to A.2.
(A3.3.1 is for decision tree, A3.3.2 for random forest, A3.3.3 for Naïve Bayes, A3.3.4 for support
vector classifier). Consider also your observations from part A.1. regarding the distribution of data
in the recidivism-risk.csv dataset with regard to the sex attributes in your analysis.

A.4. Overall comparisons and analysis (10% of Assignment 2 mark))

In this part you are expected to:
Discuss comparatively the obtained results highlight only what you see as most interesting
regarding the obtained performance and/or aspects of data unbalance, and fairness, motivating
your analysis on the basis of the obtained evidence. What would be your concluding
recommendations?.

A.5. Bias Management and Mitigation (up to 15% extra of Assignment 2 mark, capped to
maximum assignment mark)

This is a bonus part of the assignment for the teams that aim to ensure a very high mark. In this
part you are free to work creatively on the basis of what you have seen in the lectures and
practicals. The aim in this part is to apply bias management and mitigation methods as applicable to
either the race or the sex attributes in the dataset. You are not expected to do this exhaustively but
to work on limited experiments of your choice (for example regarding one of the two sensitive attributes, sex or race). The aim of this extra ‘question’ is to trigger you into creative thinking and
action, rather than instruct you to perform a very specific task.

A general remark on grading: Note that the quality of your analysis in each step will be taken into
account. Make sure your code is well-documented and your report is readable, such that what is
done is clear and motivated. We will evaluate your contribution based on what is explained and
documented in your Jupyter notebook report.

热门主题

课程名

mktg2509 csci 2600 38170 lng302 csse3010 phas3226 77938 arch1162 engn4536/engn6536 acx5903 comp151101 phl245 cse12 comp9312 stat3016/6016 phas0038 comp2140 6qqmb312 xjco3011 rest0005 ematm0051 5qqmn219 lubs5062m eee8155 cege0100 eap033 artd1109 mat246 etc3430 ecmm462 mis102 inft6800 ddes9903 comp6521 comp9517 comp3331/9331 comp4337 comp6008 comp9414 bu.231.790.81 man00150m csb352h math1041 eengm4100 isys1002 08 6057cem mktg3504 mthm036 mtrx1701 mth3241 eeee3086 cmp-7038b cmp-7000a ints4010 econ2151 infs5710 fins5516 fin3309 fins5510 gsoe9340 math2007 math2036 soee5010 mark3088 infs3605 elec9714 comp2271 ma214 comp2211 infs3604 600426 sit254 acct3091 bbt405 msin0116 com107/com113 mark5826 sit120 comp9021 eco2101 eeen40700 cs253 ece3114 ecmm447 chns3000 math377 itd102 comp9444 comp(2041|9044) econ0060 econ7230 mgt001371 ecs-323 cs6250 mgdi60012 mdia2012 comm221001 comm5000 ma1008 engl642 econ241 com333 math367 mis201 nbs-7041x meek16104 econ2003 comm1190 mbas902 comp-1027 dpst1091 comp7315 eppd1033 m06 ee3025 msci231 bb113/bbs1063 fc709 comp3425 comp9417 econ42915 cb9101 math1102e chme0017 fc307 mkt60104 5522usst litr1-uc6201.200 ee1102 cosc2803 math39512 omp9727 int2067/int5051 bsb151 mgt253 fc021 babs2202 mis2002s phya21 18-213 cege0012 mdia1002 math38032 mech5125 07 cisc102 mgx3110 cs240 11175 fin3020s eco3420 ictten622 comp9727 cpt111 de114102d mgm320h5s bafi1019 math21112 efim20036 mn-3503 fins5568 110.807 bcpm000028 info6030 bma0092 bcpm0054 math20212 ce335 cs365 cenv6141 ftec5580 math2010 ec3450 comm1170 ecmt1010 csci-ua.0480-003 econ12-200 ib3960 ectb60h3f cs247—assignment tk3163 ics3u ib3j80 comp20008 comp9334 eppd1063 acct2343 cct109 isys1055/3412 math350-real math2014 eec180 stat141b econ2101 msinm014/msing014/msing014b fit2004 comp643 bu1002 cm2030
联系我们
EMail: 99515681@qq.com
QQ: 99515681
留学生作业帮-留学生的知心伴侣!
工作时间:08:00-21:00
python代写
微信客服:codinghelp
站长地图