Skip to content

Hypothesis tests for correlation using the PMCC

A hypothesis test for correlation decides whether a sample gives sufficient evidence of linear correlation in the population. At A level, the test statistic is the product moment correlation coefficient, or PMCC, denoted by rr.

The central question is not simply whether rr is positive or negative. Random samples can produce non-zero values of rr even when there is no population correlation. We ask whether rr is far enough from zero to be statistically significant.

You should be able to:

  • interpret scatter diagrams and distinguish correlation from causation;
  • calculate and interpret the PMCC;
  • identify explanatory and response variables;
  • understand null hypotheses, alternative hypotheses and significance levels.

Review correlation and regression and the language of hypothesis testing if these ideas are unfamiliar.

Sample correlation and population correlation

Section titled “Sample correlation and population correlation”

Two symbols must be kept separate:

SymbolMeaning
rrPMCC calculated from a sample
ρ\rhotrue PMCC for the whole population

The sample value rr is known once the data have been collected. The unknown parameter ρ\rho is the subject of the hypotheses.

The null hypothesis is

H0:ρ=0.\boxed{H_0:\rho=0}.

It says that there is no linear correlation in the population. The alternative hypothesis states the kind of correlation being investigated.

The wording of the investigation determines H1H_1.

QuestionAlternative hypothesisExtreme values
Is there positive correlation?H1:ρ>0H_1:\rho>0large positive rr
Is there negative correlation?H1:ρ<0H_1:\rho<0large negative rr
Is there any linear correlation?H1:ρ0H_1:\rho\neq0large $

The first two tests are one tailed. The last is two tailed, because evidence in either direction counts against H0H_0.

Choose the alternative from the question before examining the sample result. A positive value of rr does not justify changing a planned two tailed test into a positive one tailed test.

A teacher investigates whether pupils who spend longer completing an online revision task tend to obtain higher test marks.

Let ρ\rho be the population PMCC between completion time and test mark. The teacher is looking specifically for positive correlation, so

H0:ρ=0,H1:ρ>0.\boxed{H_0:\rho=0}, \qquad \boxed{H_1:\rho>0}.

By contrast, an investigation into whether age is correlated with reaction time, without predicting a direction, would use

H0:ρ=0,H1:ρ0.H_0:\rho=0, \qquad H_1:\rho\neq0.

Under H0H_0, the sampling distribution of rr is centred on zero. Values near 11 or 1-1 are increasingly difficult to explain by chance alone.

A PMCC critical values table gives a boundary depending on:

  • the sample size nn;
  • the significance level α\alpha;
  • whether the test is one tailed or two tailed.

For a positive one tailed test, reject H0H_0 when

rc.r\geq c.

For a negative one tailed test, symmetry gives the critical value c-c, so reject H0H_0 when

rc.r\leq-c.

For a two tailed test, reject H0H_0 when

rcorrc,r\leq-c\quad\text{or}\quad r\geq c,

equivalently when

rc.\boxed{|r|\geq c}.

Here cc is always quoted as a positive number in the table. Equality is included in the critical region.

  1. Define ρ\rho in context.
  2. Write H0H_0 and H1H_1.
  3. State the significance level and identify the correct tail or tails.
  4. Calculate rr from all nn paired observations, unless it is given.
  5. Find the critical value using nn, the significance level and the number of tails.
  6. Compare rr with the correct critical region.
  7. Reject or do not reject H0H_0, then write a conclusion about population correlation in context.

For a random sample of 1212 towns, a researcher records mean commuting distance and mean journey time. The sample PMCC is

r=0.624.r=0.624.

Test at the 5%5\% significance level whether there is positive linear correlation in the population of towns. The 5%5\% one tailed critical value for n=12n=12 is 0.4970.497.

Let ρ\rho be the population PMCC between mean commuting distance and mean journey time.

H0:ρ=0,H1:ρ>0.H_0:\rho=0, \qquad H_1:\rho>0.

This is a positive one tailed test. Its critical region is

r0.497.r\geq0.497.

Since

0.624>0.497,0.624>0.497,

the observed value lies in the critical region. Reject H0H_0. There is sufficient evidence at the 5%5\% significance level to suggest positive linear correlation between mean commuting distance and mean journey time in the population of towns.

This conclusion concerns association, not causation. It does not establish that increasing commuting distance causes every journey time to increase.

A biologist takes a random sample of 1818 plants and measures leaf damage and subsequent growth. The PMCC is r=0.571r=-0.571. Test at the 1%1\% level whether greater leaf damage is associated with lower growth. The 1%1\% one tailed table value for n=18n=18 is 0.5430.543.

Let ρ\rho be the population PMCC between leaf damage and growth.

H0:ρ=0,H1:ρ<0.H_0:\rho=0, \qquad H_1:\rho<0.

For a negative test, attach a negative sign to the tabulated magnitude. The critical region is

r0.543.r\leq-0.543.

As

0.571<0.543,-0.571<-0.543,

reject H0H_0. There is sufficient evidence at the 1%1\% level to suggest negative linear correlation between leaf damage and subsequent growth in the population of plants.

A company investigates whether customer age is linearly correlated with the amount spent per visit. From 1212 randomly selected customers it obtains

r=0.532.r=-0.532.

Test for correlation at the 5%5\% significance level. The 5%5\% two tailed critical value for n=12n=12 is 0.5760.576.

No direction was specified, so

H0:ρ=0,H1:ρ0.H_0:\rho=0, \qquad H_1:\rho\neq0.

The critical regions are

r0.576orr0.576.r\leq-0.576 \quad\text{or}\quad r\geq0.576.

Equivalently, compare magnitudes:

r=0.532=0.532<0.576.|r|=|-0.532|=0.532<0.576.

The result is not in either critical region, so do not reject H0H_0. There is insufficient evidence at the 5%5\% level to suggest linear correlation between customer age and amount spent in the population.

Notice that r=0.532r=-0.532 describes moderate negative correlation in this sample, but it is not statistically significant with only 1212 observations under this test.

A calculator usually gives rr after paired data have been entered in two variable statistics mode. Algebraically,

r=SxySxxSyy,r=\frac{S_{xy}}{\sqrt{S_{xx}S_{yy}}},

where

Sxx=x2(x)2n,Syy=y2(y)2n,S_{xx}=\sum x^2-\frac{(\sum x)^2}{n}, \qquad S_{yy}=\sum y^2-\frac{(\sum y)^2}{n},

and

Sxy=xy(x)(y)n.S_{xy}=\sum xy-\frac{(\sum x)(\sum y)}{n}.

Worked example 5: from summary statistics to a test

Section titled “Worked example 5: from summary statistics to a test”

For 1010 paired observations, suppose

Sxx=50,Syy=80,Sxy=48.S_{xx}=50, \qquad S_{yy}=80, \qquad S_{xy}=48.

Then

r=4850×80=4840000.759.\begin{aligned} r &=\frac{48}{\sqrt{50\times80}}\\ &=\frac{48}{\sqrt{4000}}\\ &\approx0.759. \end{aligned}

To test H0:ρ=0H_0:\rho=0 against H1:ρ0H_1:\rho\neq0 at the 5%5\% level, use the 5%5\% two tailed critical value for n=10n=10, which is 0.6320.632.

Since

0.759>0.632,|0.759|>0.632,

reject H0H_0. There is sufficient evidence of non-zero linear correlation between the two variables in the population.

Do not round rr prematurely. Store the calculator value and round only when presenting it, because a heavily rounded value could fall on the wrong side of a critical boundary.

The standard PMCC significance test assumes that the paired observations are a random sample from a bivariate normal distribution. In practical terms, inspect the scatter diagram before testing:

  • the relationship should be reasonably linear;
  • strong outliers should not dominate rr;
  • the pairs should be independent;
  • each variable should be quantitative.

A curved relationship can be strong while having rr close to zero. A single unusual point can make r|r| misleadingly large or small. A significant PMCC test is therefore evidence of linear association under the model assumptions, not a guarantee that the chosen model is sensible.

Significance and strength are also different ideas. Significance depends on both r|r| and nn. With a large sample, a weak correlation can be significant. With a small sample, even a fairly substantial sample correlation may not be significant.

”Do not reject” means H0H_0 is true

Section titled “”Do not reject” means H0H_0H0​ is true”

No. It means the data do not provide sufficient evidence against H0H_0 at the chosen significance level. Absence of significant evidence is not proof that ρ=0\rho=0.

A negative rr can never exceed the critical value

Section titled “A negative rrr can never exceed the critical value”

For a negative test, compare with the negative boundary, such as r0.549r\leq-0.549, or compare magnitudes when appropriate. Do not compare 0.70-0.70 directly with positive 0.5490.549 and conclude it is not significant.

A two tailed test uses the one tailed 5%5\% critical value

Section titled “A two tailed test uses the one tailed 5%5\%5% critical value”

No. A 5%5\% two tailed test divides the rejection probability between two tails and therefore has a larger critical magnitude than a 5%5\% one tailed test for the same nn.

No. Confounding variables, reverse causation and the sampling design may all explain an association.

A sample of 2020 paired observations gives r=0.401r=0.401. A researcher is testing

H0:ρ=0againstH1:ρ>0H_0:\rho=0 \quad\text{against}\quad H_1:\rho>0

at the 5%5\% level. The critical value is 0.3780.378. State the conclusion.

Answer

Since 0.401>0.3780.401>0.378, the result lies in the critical region. Reject H0H_0. There is sufficient evidence at the 5%5\% significance level to suggest positive linear correlation in the population. A full answer should name the variables in context.

For 1515 paired observations, r=0.500r=-0.500. Test for negative correlation at the 1%1\% level, given that the one tailed critical value has magnitude 0.5920.592.

Answer

The hypotheses are H0:ρ=0H_0:\rho=0 and H1:ρ<0H_1:\rho<0. The negative critical region is r0.592r\leq-0.592.

Since 0.500>0.592-0.500>-0.592, do not reject H0H_0. There is insufficient evidence at the 1%1\% level to suggest negative linear correlation in the population.

A two tailed test at the 5%5\% level has critical regions r0.444r\leq-0.444 and r0.444r\geq0.444. Decide whether each sample result is significant:

  1. r=0.444r=0.444
  2. r=0.461r=-0.461
  3. r=0.439r=0.439
Answer
  1. Significant, because equality is included in the critical region.
  2. Significant, because 0.461=0.461>0.444|-0.461|=0.461>0.444.
  3. Not significant, because 0.439<0.444|0.439|<0.444.

Explain why a scatter diagram should be examined even when a calculator has already produced r=0.86r=0.86.

Answer

The PMCC measures linear association and is sensitive to outliers. A scatter diagram may reveal curvature, separate groups or an influential point, any of which can make r=0.86r=0.86 a poor summary of the relationship. It also helps assess whether the model assumptions are plausible.

Before completing a correlation test, check that you have:

  • used ρ\rho, not rr, in the hypotheses;
  • chosen the direction from the question;
  • used the correct row for nn and the correct one tailed or two tailed column;
  • reflected the sign for a negative test;
  • included equality in the critical region;
  • avoided premature rounding;
  • stated both the decision and a contextual conclusion;
  • written “insufficient evidence” rather than claiming that H0H_0 is true.

Next, consolidate how the PMCC and regression line describe the same paired data in correlation and regression, or compare this critical value method with binomial hypothesis tests and normal hypothesis tests.