Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

PYTHON CODE import pandas as import pd import statsmod... 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

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Income Tax Fundamentals 2013

Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill

31st Edition

1111972516, 978-1285586618, 1285586611, 978-1285613109, 978-1111972516

More Books

Students also viewed these Programming questions

Question

Explain Computer Network Types.

Answered: 1 week ago

Question

What type of entry strategy should be used to promote HDTV?

Answered: 1 week ago

Question

Explain the pages in white the expert taxes

Answered: 1 week ago

Question

What do you think?

Answered: 1 week ago

Question

Calculate the missing values

Answered: 1 week ago