Skip to content
CalcGospel 國際數學圖譜

Regression Line Explorer

Move the data, then watch the line of best fit and correlation respond

中文辅助说明

拖动任何数据点,回归直线、方程、相关系数和残差都会即时改变;也可以用预设数据比较强相关、弱相关、负相关和离群值。图中的均值虚线能帮助你看出回归线必经过平均点,并理解相关强弱不是由直线斜率大小决定的。

Correlation and regression

Drag any point to reshape the data

Live model
Interactive regression scatter plot Drag the data points. The regression line and correlation coefficient update automatically.

Drag the dots

The regression line always passes through the mean point (x̄, ȳ). Drag the data and this remains true.

Tip: try moving just one point far away

Try a pattern

Strength is not steepness

A steep line is not automatically a strong correlation. The value of |r| depends on how closely the points follow a straight-line pattern.

The mean point stays on the line

The highlighted point is (x̄, ȳ). Move the data and observe that the regression line continues to pass through it.