Question: Using Python, and its SkLearn Library, implement Linear Regression on California Housing Dataset. The dataset can be found in the SkLearn library. At first pick
Using Python, and its SkLearn Library, implement Linear Regression on California
Housing Dataset.
The dataset can be found in the SkLearn library. At first pick an variable There are
around variables and a variable which is the median price of a house in California,
and predict the value using simple regression.
Then use all of the variables to predict the value.
You have the following tasks;
Import the California Housing dataset
Split the dataset for the training and the test set, if there are any empty parts in
the dataset you need to remove it using dropna method from pandas library
Pick the number of the rooms named totalrooms in the dataset variable and
implement Simple regression to find the median house price Y named as median
housevalue in the dataset
Evaluate the performance, and print the and MSE results
Use all of the values to implement multiple regression to find the median house
price
Evaluate the performance, and print the and MSE results
Optional You can visualize the regression by using matplotlib.pyplot library of
Python.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
