Salick Academy

Correlation and Linear Regression

No calculator

Try each one on paper first, then check a single step. That is worth far more than reading a finished solution.

Example 1 — computing r

For x=1,2,3,4,5x = 1,2,3,4,5 and y=2,4,5,4,6y = 2,4,5,4,6, find the product-moment correlation coefficient.

Example 2 — the regression line

Using the same data, find the regression line of yy on xx and predict yy when x=2.5x = 2.5.

Example 3 — Spearman's rank correlation

Two judges rank five entries, giving rank differences 1,1,1,1,0-1, 1, -1, 1, 0. Find rsr_s.