Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started