Use import sys. Use the german_credit_data.csv file to complete the following assignment. Create a file, 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'.  Note: you will not need to upload the .csv to CodeGrade because I have pre-loaded it.   Then, print the parameters and R-squared to 2 decimals using   print(model.params.round(2)) print(model.rsquared.round(2))

Np Ms Office 365/Excel 2016 I Ntermed
1st Edition
ISBN:9781337508841
Author:Carey
Publisher:Carey
Chapter5: Working With Excel Tables, Pivottables, And Pivotcharts
Section: Chapter Questions
Problem 11RA
icon
Related questions
Question
  • Use import sys. Use the german_credit_data.csv file to complete the following assignment. Create a file, 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'.  Note: you will not need to upload the .csv to CodeGrade because I have pre-loaded it.
  •  
  • Then, print the parameters and R-squared to 2 decimals using

 

print(model.params.round(2))

print(model.rsquared.round(2))



Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Knowledge Booster
Multiple table
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage