Formula
Regression line of on from the data
Statistics • Correlation and Regression
Statement
For data , , the regression line of on is with and .
How to use it
- 1Why it works: the line passes through the mean point , and its slope is the covariance of and divided by the variance of .
- 2Find and first. If , then and .
- 3Make a table of , , and , and add each column.
Worked example
Find the regression line of on for , , .
Step-by-step
- 1,
- 2,
- 3
Why: Covariance part over variance part.
- 4
Why: The line passes through .
Answer
Watch out
The denominator uses only. Using there gives the regression of on .
Builds on
Also known as
method of least squares, line of best fit, byx from data, regression equation from data