Question: 1 6 . 2 3 LAB: Making predictions using SLR models The internetusage.csv dataset contains different statistics for all 5 0 states in the United

16.23 LAB: Making predictions using SLR models
The internetusage.csv dataset contains different statistics for all 50 states in the United States. Among those statistics are percentage of internet users in the state and percentage of individuals with bachelor's degrees.
Write a program that creates a model that uses the percentage of individuals with bachelor's degrees as input and returns the percentage of internet users in a state as output.
For example, if the input is:
10
the output should be:
061.865155
dtype: float64
It wants to fit the model using the sms.ols function and the internet dataframe and then use the model.predict function to find the predicted value for internet_usage and the bach_percent value for the predictor

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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!