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.

  1. Is there a dependence between the two sequences?
  2. 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.

The eight solid points are the height pairs from the table above (x̄ = 175, ȳ = 165, Δx = Δy = 5). Drag the correlation ρ. The blue line is y = ȳ + ρ(x − x̄). At ρ = 0.96 it is the regression line above.

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.

Spot a mistake in this page?