Statistics Interactive

Relationships

Correlation & regression

15 min
Learning goals
  • You can explain the difference between correlation and causation.
  • You can interpret r and R².
  • You understand how the method of least squares works.
Place and drag points and watch r, R² and the regression line update live

Click in the field to add a point. Drag a point to move it, right-click to delete.

Descriptive statistics
n10
5.50
ȳ6.34
sₓ3.03
sᵧ2.82
Correlation
r0.999
0.998
Regression line ŷ = b₀ + b₁·x
b₀1.220
b₁0.931
SSE = Σeᵢ²0.11
02468101214160358101315xy
Data points
Regression line
Residuals eᵢ = yᵢ − ŷᵢ