Answered step by step
Verified Expert Solution
Question
...
1 Approved Answer
Task2: Linear regression: This is a dataset to predict the heath insurance costs of customers for a real health isurance company For sex, and smoker
Task2: Linear regression: This is a dataset to predict the heath insurance costs of customers for a real health isurance company For "sex", and "smoker" features, replace classes with 0 or 1. For instance "female" could be 0, "male" could be 1. Choice of 0 Use multiple linear regressionto predict charges. Set 20% of the data to be "test" set. Calculate RMSE for test set and training Find out which feature can be dropped, either using correlaton between features, or use t-stat ot p-value. Build a new model Compare first model and second model. Which one is better? Why? You can create as many sheets aas you want for this task, name them: Task2-1, Task2-2, ... . I already have created two blank s
![image text in transcribed](https://s3.amazonaws.com/si.experts.images/answers/2024/06/66782b3078f98_40866782b3069b53.jpg)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
![blur-text-image](https://dsd5zvtm8ll6.cloudfront.net/includes/images/document_product_info/blur-text-image.webp)
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
![blur-text-image](https://dsd5zvtm8ll6.cloudfront.net/includes/images/document_product_info/blur-subtext-image.webp)
Step: 3
![blur-text-image](https://dsd5zvtm8ll6.cloudfront.net/includes/images/document_product_info/blur-subtext-image.webp)
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started