Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Create a Jupyter notebook file. Import the csv into your notebook. Use the data in the relevant columns to determine how age affects insurance costs:
Create a Jupyter notebook file.
Import the csv into your notebook. Use the data in the relevant columns to determine how age affects insurance costs:
Plot a scatter plot with age on the xaxis and charges on the yaxis.
Using linearmodel.LinearRegression from sklearn, fit a model to your data, and make predictions on data.
Plot another scatter plot with the bestfit line.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started