Regression and correlation: formulas
Pick a formula to see it explained with worked examples and a solver that shows every step.
About this topic
Correlation tells you how strongly two things are linked. A line of best fit helps you predict one from the other.
On every page you get worked examples, the common slips to avoid and a solver that shows the working. A friendly first stop is Line of best fit.
Formulas in this topic
- Linear regression lineThe regression line of y on x is y=a+bx, with b=SxxSxy and a=yˉ−bxˉ. Type “scatter x: 1, 2, 3, 4, 5 y: 2,…
- Product moment correlation coefficientThe product moment correlation coefficient is r=SxxSyySxy, a number from −1 to 1 measuring the strength…
- Line of best fitA line of best fit y=mx+c passes through the mean point (xˉ,yˉ) and follows the trend of a scatter graph.…
- Least squares regression and correlation coefficientRegression finds the straight line that best fits paired data. The correlation coefficient r measures how…
Regression and correlation questions
Does correlation mean one thing causes the other?
No. Two things can move together without one causing the other.
What if I get stuck?
Read the worked examples on the page first, then try the solver with your own numbers and compare each step.