The Math

Pearson's Correlation Coefficient

Practice hours and bowling speed are in completely different units. Standardizing both before multiplying rescales the relationship into one pure number between −1 and 1.

r = Σ(xi−x̄)(yi−ȳ) / √Σ(xi−x̄)² · √Σ(yi−ȳ)²
xi−x̄x's deviation
yi−ȳy's deviation
×why multiply them?
√Σ·√Σwhy divide by this?
Why xi−x̄ exists: this asks one question per person: is their practice-hours above or below average? Positive means "practiced more than typical," negative means "less." It's the same gap-from-mean idea as variance — but now tracked for two variables at once, so we can compare their patterns.
Why yi−ȳ exists: the matching question for bowling speed — above or below that person's group average? On its own it tells you nothing about practice hours. The relationship only appears once you look at both deviations for the same person together.
Why multiply the two deviations? Multiplying two same-sign numbers gives positive; two opposite-sign numbers give negative. So each person contributes a positive amount if they're above-average on both variables or below-average on both — and a negative amount if they're above on one but below on the other. Sum that across everyone and the sign tells you the overall direction of the relationship. Try the live demo below: drag points between quadrants and watch r flip sign.
Why divide by √Σdx²·√Σdy²? The numerator alone is in mixed units (hours × mph) and its size depends on how spread out the data happens to be — more spread means a bigger raw number even with the same underlying relationship. Dividing by each variable's own spread cancels the units and rescales everything to a universal −1-to-1 scale, so r means the same thing regardless of whether you measured in hours or minutes, mph or km/h.
Worked example — practice hours vs bowling speed Numerator (covariance sum) = 340. √Σ(x−x̄)² = 22, √Σ(y−ȳ)² = 17. r = 340/(22×17) = 340/374 ≈ 0.91 — a strong positive relationship. For one-predictor regression, r² = R² exactly, so 0.91² ≈ 0.83; an R² of 0.7 elsewhere in this chapter corresponds back to r ≈ 0.84.
—
actual r of this scatter

The aha moment: drag points between quadrants, watch r flip sign

—