Linear Regression
Fitting a Line to Data(least squared)
manual method step: 1. draw linear lines at all possible different angles 2. find the residuals of linear lines at a specific angle 3. square and sum each and every residuals of linear lines at a specific angle 4. angle with least sum of the squared residuals is the Line to be fitted least squared method - Linear Regression Using Least Squares Method - Line of Best Fit Equation - Regression and R-Squared (2.2) (youtube.com)
Measure How Well it Fits the Data.
- SS(mean) ,(Sum of Squared around the mean ) = (data - mean)^2
- var(mean) ,(Variation around the mean)= \frac{SS(mean)}{n}
- n = no. of observation
- var(fit) ,(Variation around the fitted line )= \frac{SS(mean)}{n}
Tags: #machine-learning