Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

25752 Bank Lending and Analytics Individual Assignment Due in Week 12 Instructions This assignment is to be completed individually. Please respect the rules to avoid

25752 Bank Lending and Analytics Individual Assignment Due in Week 12 Instructions This assignment is to be completed individually. Please respect the rules to avoid plagiarism outlined in the subject outline. Specifically, DO NOT: o Share your solutions with other students o Use the work of others, including ghost writers The assignment has to be done in Python and Jupyter Notebook. Please ask for prior approval if you consider using other languages. Use the extended data set data with 50,000 mortgage loans provided here and Python (preferably Jupyter Notebook) for all empirical questions: dcr.csv Download Use the extended data set data with 50,000 mortgage loans provided here and Python (preferably Jupyter Notebook) for all empirical questions: dcr.csvPlease save the larger dcr.csv and dcr.py (please use the same py file as for the class) in a separate assignment folder. Please run the dcr module prior to starting Please read: Giordani, P., T. Jacobson, E. von Schedvin, and M. Villani (2014). Taking the Twists into Account: Predicting Firm Bankruptcy Risk with Splines of Financial Ratios. Journal of Financial and Quantitative Analysis 49(4), 10711099 Download Please read: Giordani, P., T. Jacobson, E. von Schedvin, and M. Villani (2014). Taking the Twists into Account: Predicting Firm Bankruptcy Risk with Splines of Financial Ratios. Journal of Financial and Quantitative Analysis 49(4), 10711099 This assignment accounts for 60% of the total marks in the subject. Total marks is 60. There is a bonus question to obtain additional marks for a mark maximum of 60 (for the avoidance of doubt a maximum mark of 60+10 will be marked as 60) Submission: o This assignment is to be submitted before the lecture of Week 12 (Tuesday, 26/10, 6pm) o Provide the Python code as a Jupyter Notebook file with all answers. Make sure all code is written by yourself! o Copy your written text answers (markdown) into a word document. Delete the questions and code. The submissions will be checked for plagiarism using Turnitin. Make sure all text is written by yourself! o Upload the two documents Jupyter Notebook file and word document. There is no size limit for the Jupyter Notebook document and a page limit of 10 pages applied to the word document. You may print charts as a panel to conserve space and be concise (e.g., 2*2 for four or 3*3 for nine) Problems 1. Data-description [10 marks] a. Perform a TVA (time vintage ad age) analysis for the following three features ("feature set" throughout instructions, do not add or remove features unless instructed): LTV_time, cep_time (cumulative excess payments, please self-calculate) and FICO_orig_time (nine charts in total). Interpret your findings [6 marks] b. Form a number of classes using quantiles or self-defined boundaries for the feature set and visualize the default rates per class (three charts in total). Choose between 2 and 10 classes and tell a story for the link between feature and default. You may consider using the cut() or qcut() methods. Interpret your findings [4 marks] 2. PD modelling [15 marks] a. Estimate a credit risk model for mortgage default probabilities (PD) (you may choose a logit or a probit model). Include the feature set. Compute the estimated PD for all mortgage loans and periods. Plot and compare the average probability of default and default rate over time and over each feature (four charts in total). Provide your code, output for the model and interpret the output. [5 marks] b. Estimate the PD model again by including a non-linear transformation of the features set that results in a better model accuracy. Non-linear transformations may include splines, polynomial terms or other transformations and may result in the same or a higher number of variables (chapter 6 of textbook may help). Compute the estimated PD for all mortgage loans and periods. Plot and compare the average probability of default and default rate over time and over each feature (four charts in total). Provide your code, an output for the model, the plots and interpret the output. [7 marks] c. Compare the accuracy of two models from sub-questions 2A and 2B. Present and explain your findings with regard to model accuracy? [3 marks] 3. LGD modelling [15 marks] a. Estimate a linear regression model to predict LGD. Include the feature set. Plot and compare the average model implied and observed LGD over time and over each feature (four charts in total). Provide your code, output for the model and interpret the output. [5 marks] b. Estimate a linear regression model to predict LGD. Include a non-linear transformation of the feature set (this may be different to question 2B). Plot and compare the average model implied and observed LGD over time and over each feature (four charts in total). Provide your code, output for the model and interpret the output. [7 marks] c. Suggest two additional features that you think can explain for mortgage LGD. Explain the rationale (relation to LGD). [3 marks]. 4. Bank capital allocation [10 marks] Compute the Basel capital ratio for all mortgage loans and periods using the internal ratings based approach. Assume correlation at 15%. Consider two settings: Setting I: PDs should be inferred from the model of question 2A and LGDs should be inferred from the model of question 3A. Setting II: PDs should be inferred from the model of question 2B and LGDs should be inferred from the model of question 3B. You may set the exposure to default to one unit or use actual loan amounts. Plot the average capital ratio by time in one chart per setting (two charts in total). Provide your code, plots and analyse the output. 5. Loan pricing [10 marks] What should be the appropriate interest rate charged for a borrower with the following features LTV_time=80, cep_time=0, FICO_orig_time=700. Include all your assumptions. 6. Bonus question [10 marks] a. Draft a dashboard application for loan pricing: define inputs (feature names including user choices like radio buttons, drop-down lists, calculations and a single output chart. Think carefully what you want to show in chart on x-axis (variable of variation) and on y-axis (variable of interest) [3 marks] b. Create a dashboard application using package JupyterDash. Include appropriate comments using hashtags (#) [7 marks] Rubric Assignment Individual Assignment Individual Criteria Ratings PtsThis criterion is linked to a Learning Outcome1 Datadescription a 3 Charts 3 Analysis 6 pts all features 4 pts 2 features 2 pts 1 feature 0 pts 0 features 6 ptsThis criterion is linked to a Learning Outcome1. Datadescription b 1 Deciles 1.5 Charts 1.5 Analysis 4 pts all features 3 pts 3 features 2 pts 2 features 1 pts 1 feature 0 pts 0 features 4 pts Assignment Individual Criteria Ratings PtsThis criterion is linked to a Learning Outcome2 PD modeling a 1 Model fitting 1 Model prediction 2 Charts 1 Analysis 5 pts all features 3.75 pts 3 features 2.5 pts 2 features 1.25 pts 1 feature 0 pts 0 features 5 ptsThis criterion is linked to a Learning Outcome2 PD modeling b 1 Model fitting 1 Model prediction 2 Quality 2 Charts 1 Analysis 7 pts all features 5.25 pts 3 features 3.5 pts 2 features 1.75 pts 1 feature 0 pts 0 features 7 ptsThis criterion is linked to a Learning Outcome2 PD modeling c 1 Measures 1 Comparison 1 Analysis 3 pts all features 1.5 pts 1 feature 0 pts 0 features 3 pts Assignment Individual Criteria Ratings PtsThis criterion is linked to a Learning Outcome3 LGD modeling a 1 Model fitting 1 Model prediction 2 Charts 1 Analysis 5 pts all features 3.75 pts 3 features 2.5 pts 2 features 1.25 pts 1 feature 0 pts 0 features 5 ptsThis criterion is linked to a Learning Outcome3 LGD modeling b 1 Model fitting 1 Model prediction 2 Quality 2 Charts 1 Analysis 7 pts all features 5.25 pts 3 features 3.5 pts 2 features 1.75 pts 1 feature 0 pts 0 features 7 ptsThis criterion is linked to a Learning Outcome3 LGD modeling c 1.5 Feature 1 1.5 Feature 2 3 pts 2 features 1.5 pts 1 feature 0 pts 0 features 3 pts Assignment Individual Criteria Ratings PtsThis criterion is linked to a Learning Outcome4 Bank capital allocation 4 Capital calculation 4 Charts 2 Analysis 10 pts all features 7.5 pts 1 feature incomplete 5 pts 3 features incomplete 2.5 pts 4 features incomplete 0 pts all features incomplete 10 pThis criterion is linked to a Learning Outcome5 Loan pricing 2 Assumptions 2 Components 2 Fit 2 Fit 2 Interest rate 10 pts all features 5 pts 1 feature 0 pts 0 features 10 pThis criterion is linked to a Learning Outcome6 Bonus question a 1 Input 1 Calculation 1 Output 3 pts all features 2 pts two features 1 pts 2 features 0 pts 0 features 3 pts Assignment Individual Criteria Ratings PtsThis criterion is linked to a Learning Outcome6 Bonus question b 1 Setup 2 Input 2 Calculation 2 Output 7 pts all features 6 pts 6 features 5 pts 5 features 4 pts 4 features 3 pts 3 features 2 pts 2 features 1 pts 1 feature 0 pts 0 features 7 pts

Attachments:

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Students also viewed these Programming questions