What correlation shows
Pair correlation measures how closely two variables x and y are related linearly. The Pearson coefficient r = cov(x, y)/(σx·σy) lies between −1 and 1: the sign gives the direction (direct or inverse), the absolute value gives the strength. Correlation does not prove causation: two variables may grow together because of a third one.
The Chaddock scale
- ∣r∣ below 0.1 — practically no relationship;
- 0.1–0.3 — weak;
- 0.3–0.5 — moderate;
- 0.5–0.7 — noticeable;
- 0.7–0.9 — high;
- 0.9–0.99 — very high.
Regression
The regression of y on x is y = a + b·x, where b = cov(x, y)/σx² and a = ȳ − b·x̄. It is the line with the smallest sum of squared vertical deviations. The regression of x on y is another line: x = a′ + b′·y, and b·b′ = r². The lines coincide only when ∣r∣ = 1. The coefficient of determination r² is the share of the variation of y explained by the linear relationship with x.
Significance of the coefficient
If there is no relationship, the statistic t = r·√(n − 2)/√(1 − r²) follows the Student distribution with n − 2 degrees of freedom. If ∣t∣ exceeds the critical value for the chosen level α (for example 2.228 at α = 0.05 and 10 degrees of freedom), the coefficient is significant. The calculator computes Student quantiles itself, so no table is needed.
Approximation error
The mean approximation error Ā = (1/n)·Σ∣(y − ŷ)/y∣·100% shows by how many percent on average the fitted values differ from the actual ones. An error of up to 8–10% is considered acceptable.
Example
x = 1, 2, 3, 4, 5; y = 2, 4, 5, 4, 5. Means: x̄ = 3, ȳ = 4, σx² = 2, σy² = 1.2, cov = 1.2. Then r = 1.2/(√2·√1.2) = 0.7746, r² = 0.6, the regression is y = 2.2 + 0.6·x. The statistic is t = 0.7746·√3/√0.4 = 2.121, while the critical t at α = 0.05 and k = 3 is 3.182. Since 2.121 is less than 3.182, with five points the relationship is statistically not significant even though it is high on the Chaddock scale: there is too little data.
If you need other fitting functions (parabola, power, exponential), use the least squares calculator.