Empirical correlation and regression
Ask the tutor about Empirical correlation and regressionOpen the graphing workbench
The statistical evaluation of a sequence of measurements bounds the mean and standard deviation of one series. Experiments often produce two series at once. Write them as
Two basic questions then arise.
- Is there a dependence between the two sequences?
- Is there a significant difference between the two random variables?
Dependence is measured by a correlation coefficient. Significant differences are checked later with the -test, the -test, and the Wilcoxon test. This page answers only the first question.
Same length gives one number ρ
When the two sequences have the same length , the empirical correlation coefficient is
Here and are the empirical means and empirical standard deviations of each series. Always . If , the sequences show no dependence. The dependence is stronger the larger is.
The closest line leaves
Plot the pairs in the plane. The straight line closest to those points, in the least-squares sense
is the regression line
The minimal sum of squared residuals equals . The fit is optimal when : every point then lies on the line.
Example. The eight height pairs in the table below give , , , , and
Because , the regression line collapses to
The points hug that line, so the two height sequences are strongly linked.
| mean | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|
Drag . The green points stay fixed at the eight pairs. The blue line is always . At it is the regression line above; near the residual factor vanishes and the line would fit a perfectly linked series.
Comparing the means of two series, and asking whether their standard deviations match, is the next step — Comparing two means with t and F tests.