Question: Write a python code to solve simple (Univariate) Linear Regression and predict house prices based on the size of the house using the hypothesis h(x)=0+

Write a python code to solve simple (Univariate) Linear Regression and predict house prices based on the size of the house using the hypothesis h(x)=0+ 1x? Plot best fit line. Write a python code to calculate loss function using empirical risk function (Mean Squared Error) Ls(h)=1/mi=1mh((xi)yi)2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
