Mathematics/Lessons/Regression and Correlation/Hypothesis Testing for Zero Correlation
Statistics · Regression and Correlation · Year 2

Hypothesis Testing for Zero Correlation

A sample's r is never quite zero by chance alone -- a formal test decides whether it's too big to be a coincidence.

8 min read 1 worked example

Testing whether ρ is really nonzero

A sample's PMCC, $r$, can come out nonzero purely by chance, even when the two variables have no correlation at all in the wider population. A hypothesis test decides whether a sample's $r$ is large enough to be good evidence that the population correlation coefficient, $\rho$ (rho), is genuinely different from zero — rather than just sampling variation.

r vs ρ

$r$ is calculated from a sample and can be found exactly. $\rho$ is the true correlation coefficient for the whole population, and is (almost) never known — hypotheses are always written in terms of $\rho$, and $r$ is the evidence used to test them.

One-tailed and two-tailed tests

As with any hypothesis test, the null hypothesis states "nothing interesting is happening":

$$H_0:\rho=0$$

The alternative hypothesis depends on what's being tested:

  • One-tailed — testing specifically for positive or specifically for negative correlation: $H_1:\rho>0$, or $H_1:\rho<0$.
  • Two-tailed — testing for correlation in either direction, with no assumed sign in advance: $H_1:\rho\neq0$.

Which one to use is decided entirely by the wording of the question — a claim like "sales increase as advertising spend increases" specifies a direction and calls for a one-tailed test; "there is a relationship between the variables" does not, and calls for a two-tailed test.

Critical values

The test statistic is the sample's own PMCC, $r$. Rather than a formula, its critical value is read directly from a table of critical values of the PMCC, based on the sample size $n$ and the significance level — this table is provided in the exam's formulae booklet.

n0.100.050.0250.010.005
40.80000.90000.95000.98000.9900
50.68700.80540.87830.93430.9587
60.60840.72930.81140.88220.9172
70.55090.66940.75450.83290.8745
80.50670.62150.70670.78870.8343
90.47160.58220.66640.74980.7977

Each column is a (one-tailed) significance level; for a two-tailed test at overall level $\alpha$, use the column headed $\alpha/2$. For $n=8$ at the $5\%$ level, the highlighted critical value is $0.6215$: any sample $r$ greater than $0.6215$ is significant evidence, at that level, that $\rho>0$.

Reaching a conclusion

Compare the sample's $r$ (one-tailed, matching the direction of $H_1$) or $|r|$ (two-tailed) against the table's critical value. If it's exceeded, reject $H_0$: there's evidence of correlation in the population. Otherwise, the evidence is insufficient.

Strategy — larger samples need a smaller r to be significant

Reading down any column of the table, the critical value decreases as $n$ increases. A modest correlation is much stronger evidence with a large sample than the same correlation would be with a tiny one, since a small sample can easily produce a large $r$ by chance alone.

Worked example

Testing the windspeed & gust correlation
Continuing the windspeed/gust example from the previous lesson: for the 8 complete days, $r=0.9533$. A meteorologist claims that stronger mean windspeed is associated with stronger gusts. Test this claim at the 5% significance level.
MethodState a one-sided H₁, then compare r directly to the table
1
$H_0:\rho=0$, $H_1:\rho>0$.
The claim specifies a direction (stronger windspeed → stronger gusts), so this is one-tailed.
2
$n=8$, one-tailed, 5%: critical value $=0.6215$.
Read the $n=8$ row, $0.05$ column.
3
$r=0.9533>0.6215$, so there is sufficient evidence to reject $H_0$.
The sample correlation comfortably exceeds the threshold.
4
There is evidence, at the 5% level, that mean windspeed and maximum gust are positively correlated.
Conclusion in context.
▪ concluded
"Insufficient evidence" is not proof of "no relationship"

Just as with any other hypothesis test, failing to reject $H_0$ only means the sample didn't provide strong enough evidence against it — it is never proof that $\rho=0$. A real (perhaps weaker, or non-linear) relationship could still exist without producing a large enough sample $r$ to be detected, especially with a small sample.

Common mistake

Never write a hypothesis in terms of $r$ — hypotheses describe the unknown population parameter $\rho$, never the sample statistic. Writing "$H_0:r=0$" is a common but incorrect notational slip that loses marks.

Check yourself

A sample of $n=6$ pairs gives $r=0.72$. Test, at the 5% significance level, $H_0:\rho=0$ against $H_1:\rho\neq0$ (two-tailed), using the table above.

1
Two-tailed at overall 5% uses the $0.025$ column: for $n=6$, critical value $=0.8114$.
A two-tailed 5% test splits the risk between both tails, so use the $\alpha/2=0.025$ column.
2
$|r|=0.72<0.8114$, so there is insufficient evidence to reject $H_0$.
3
There is not enough evidence, at the 5% level, of correlation between the variables in the population.