Using sklearn
Without Splitting
Load Libraries
Read Data from csv file
Mean,Variance, Std
sum(x-xbar)^2
Covariance(x,y)
Coefficients(Parameters) using covariance
Separate dependent and independent variables and convert to array
Without Spliting the Data
Place results in a new Dataframe
meanA and mean P
Manual summation:
Capture results in another dataframe
Mean Absolute Error (MAE),Mean Squared Error(MSE), Root Mean Squared Error
Report
SST – Sum of squares of Total
SSR – Sum 0f Squares of Regression