Question: Using the enclosed german_credit_data.csv file to develop german.py, that loads the .csv file and runs a regression predicting credit amount from age and duration, in

Using the enclosed german_credit_data.csv file to develop german.py, that loads the .csv file and runs a regression predicting credit amount from age and duration, in that order. Add a constant using sm.add_constant(data). You will need to rename the column 'Credit amount' and should change it to 'Credit_amount'. Then, print the parameters and R-squared to 2 decimals using

print(model.params.round(2)) print(model.rsquared.round(2))

Link to german_credit_data.csv file:

https://drive.google.com/file/d/1oQUCSxigMV1eftYyO3Khzr28RYLBY9rI/view?usp=sharing

Step by Step Solution

3.47 Rating (157 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

PYTHON CODE import pandas as import pd import statsmod... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!