Testing for Correlation
A scatter diagram can suggest a relationship, but only a formal test can say whether it's likely to be more than coincidence.
The product-moment correlation coefficient
The product-moment correlation coefficient (PMCC), $r$, is calculated from a bivariate sample — the same $r$ introduced earlier as something to interpret is now something a sample can estimate. A sample's $r$ can be nonzero purely by chance, even if the true population has no correlation at all — a hypothesis test decides whether the sample's $r$ is unusual enough to conclude the population correlation, $\rho$, is genuinely nonzero.
Setting up the test
The population parameter being tested is $\rho$ (the true, population-level correlation coefficient). The hypotheses are always about $\rho$:
The test statistic is the sample's own PMCC, $r$, computed from the paired data. Rather than a formula, its critical value is read from a table of critical values of the PMCC, based on the sample size $n$ and the significance level.
Testing "no correlation" as the null hypothesis mirrors every other hypothesis test in this course: $H_0$ states the "nothing interesting is happening" scenario, and the test asks whether the data gives strong enough evidence to move away from it. A nonzero sample $r$ is expected even under $H_0$, purely from natural sampling variation — the test's job is judging whether the observed $r$ is bigger than that natural variation would typically produce.
Reaching a conclusion
Compare the sample's $|r|$ (or $r$ directly, for a one-tailed test in a specific direction) against the critical value from the table. If it exceeds the critical value, reject $H_0$ — there is evidence of genuine correlation in the population. Otherwise, there is insufficient evidence.
Critical value tables show that as $n$ increases, the critical value of $r$ needed for significance decreases. A modest correlation is much stronger evidence with a large sample than the same correlation would be with a small one — small samples can easily produce a large $r$ purely by chance.
Worked example 1
For a two-tailed test, compare $|r|$ (the magnitude) against the table's critical value — the sign of $r$ tells you the direction of any correlation found, but doesn't affect whether the result is significant.
Worked example 2
A one-tailed critical value is smaller than the corresponding two-tailed one at the same significance level (since all the "risk budget" sits on one side) — but the sample's $r$ must also genuinely be positive (matching $H_1$'s direction) for a rejection to make sense; a strongly negative $r$ could never support $H_1:\rho>0$, however large its magnitude.
Worked example 3
This limitation isn't specific to correlation testing — every hypothesis test in this course can only ever provide evidence against $H_0$, never proof for it. "Insufficient evidence to reject" is a statement about the strength of the sample's evidence, not a verdict on the underlying truth.
Never confuse the population parameter $\rho$ with the sample statistic $r$ — hypotheses are always written in terms of $\rho$ (what's true of the population), while $r$ (calculated from the sample) is the evidence used to test them. Writing "$H_0: r=0$" is a common but incorrect notational slip.
Check yourself
A sample of $n=10$ pairs gives $r=-0.68$. Test, at the 5% level, $H_0:\rho=0$ against $H_1:\rho\neq0$, given a two-tailed critical value of $0.632$ for $n=10$.
(Hint: for a two-tailed test, compare |r| against the critical value.)