Question: Consider the dataset ( in csv format ) that describes the loan approval history for past applicants. Important Instructions: 1 . Answer all tasks in
Consider the dataset in csv format that describes the loan approval history for past applicants.
Important Instructions:
Answer all tasks in a single Python notebook file.
You will need to upload your Python notebook in ipynb format with all outputs embedded and the corresponding pdf file.
Clearly create text cells of subheadings in the single ipynb code file for each task.
You can use any python based libraries of your choice to solve the tasks unless otherwise stated.
Task : Data Visualization DV: Load the dataset. Illustrate, via suitable visualizations, distributions of gender and ethnicity with respect to the approval decisions. mark
Task : Fairness Metric FM: Assume gender as sensitive attribute, write your "own" functions to compute grouplevel fairness metrics absolute difference: demographic parity, equality of odds, and equality of opportunity. Use logistic regression model to get predicted 'approved' values. marks
Task : Fairness Metric FM: Assume ethnicity as sensitive attribute, write your "own" functions to compute grouplevel fairness metrics max min difference: demographic parity, equality of odds, and equality of opportunity. Use logistic regression model to get predicted 'approved' value. max min difference is the absolute difference between highest and lowest probabilities among ethnicity groups marks
Task : Prejudice Removal Regularizer PRR: Incorporate prejudice removal regularizer with appropriately chosen regularization constants and report the accuracy and grouplevel fairness metrics using fold cross validation for all chosen regularization constants. Use any existing library function to implement PRR Assume gender as sensitive attribute. marks
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
