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 .
The central question is not simply whether is positive or negative. Random samples can produce non-zero values of even when there is no population correlation. We ask whether is far enough from zero to be statistically significant.
Prerequisites
Section titled “Prerequisites”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:
| Symbol | Meaning |
|---|---|
| PMCC calculated from a sample | |
| true PMCC for the whole population |
The sample value is known once the data have been collected. The unknown parameter is the subject of the hypotheses.
The null hypothesis is
It says that there is no linear correlation in the population. The alternative hypothesis states the kind of correlation being investigated.
Choosing a one tailed or two tailed test
Section titled “Choosing a one tailed or two tailed test”The wording of the investigation determines .
| Question | Alternative hypothesis | Extreme values |
|---|---|---|
| Is there positive correlation? | large positive | |
| Is there negative correlation? | large negative | |
| Is there any linear correlation? | large $ |
The first two tests are one tailed. The last is two tailed, because evidence in either direction counts against .
Choose the alternative from the question before examining the sample result. A positive value of does not justify changing a planned two tailed test into a positive one tailed test.
Worked example 1: writing hypotheses
Section titled “Worked example 1: writing hypotheses”A teacher investigates whether pupils who spend longer completing an online revision task tend to obtain higher test marks.
Let be the population PMCC between completion time and test mark. The teacher is looking specifically for positive correlation, so
By contrast, an investigation into whether age is correlated with reaction time, without predicting a direction, would use
The critical value method
Section titled “The critical value method”Under , the sampling distribution of is centred on zero. Values near or are increasingly difficult to explain by chance alone.
A PMCC critical values table gives a boundary depending on:
- the sample size ;
- the significance level ;
- whether the test is one tailed or two tailed.
For a positive one tailed test, reject when
For a negative one tailed test, symmetry gives the critical value , so reject when
For a two tailed test, reject when
equivalently when
Here is always quoted as a positive number in the table. Equality is included in the critical region.
A reliable testing procedure
Section titled “A reliable testing procedure”- Define in context.
- Write and .
- State the significance level and identify the correct tail or tails.
- Calculate from all paired observations, unless it is given.
- Find the critical value using , the significance level and the number of tails.
- Compare with the correct critical region.
- Reject or do not reject , then write a conclusion about population correlation in context.
Worked example 2: positive correlation
Section titled “Worked example 2: positive correlation”For a random sample of towns, a researcher records mean commuting distance and mean journey time. The sample PMCC is
Test at the significance level whether there is positive linear correlation in the population of towns. The one tailed critical value for is .
Let be the population PMCC between mean commuting distance and mean journey time.
This is a positive one tailed test. Its critical region is
Since
the observed value lies in the critical region. Reject . There is sufficient evidence at the 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.
Worked example 3: negative correlation
Section titled “Worked example 3: negative correlation”A biologist takes a random sample of plants and measures leaf damage and subsequent growth. The PMCC is . Test at the level whether greater leaf damage is associated with lower growth. The one tailed table value for is .
Let be the population PMCC between leaf damage and growth.
For a negative test, attach a negative sign to the tabulated magnitude. The critical region is
As
reject . There is sufficient evidence at the level to suggest negative linear correlation between leaf damage and subsequent growth in the population of plants.
Worked example 4: two tailed test
Section titled “Worked example 4: two tailed test”A company investigates whether customer age is linearly correlated with the amount spent per visit. From randomly selected customers it obtains
Test for correlation at the significance level. The two tailed critical value for is .
No direction was specified, so
The critical regions are
Equivalently, compare magnitudes:
The result is not in either critical region, so do not reject . There is insufficient evidence at the level to suggest linear correlation between customer age and amount spent in the population.
Notice that describes moderate negative correlation in this sample, but it is not statistically significant with only observations under this test.
Calculating the test statistic
Section titled “Calculating the test statistic”A calculator usually gives after paired data have been entered in two variable statistics mode. Algebraically,
where
and
Worked example 5: from summary statistics to a test
Section titled “Worked example 5: from summary statistics to a test”For paired observations, suppose
Then
To test against at the level, use the two tailed critical value for , which is .
Since
reject . There is sufficient evidence of non-zero linear correlation between the two variables in the population.
Do not round 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.
Assumptions and interpretation
Section titled “Assumptions and interpretation”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 ;
- the pairs should be independent;
- each variable should be quantitative.
A curved relationship can be strong while having close to zero. A single unusual point can make 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 and . With a large sample, a weak correlation can be significant. With a small sample, even a fairly substantial sample correlation may not be significant.
Common misconceptions
Section titled “Common misconceptions””Do not reject” means is true
Section titled “”Do not reject” means H0H_0H0 is true”No. It means the data do not provide sufficient evidence against at the chosen significance level. Absence of significant evidence is not proof that .
A negative 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 , or compare magnitudes when appropriate. Do not compare directly with positive and conclude it is not significant.
A two tailed test uses the one tailed critical value
Section titled “A two tailed test uses the one tailed 5%5\%5% critical value”No. A two tailed test divides the rejection probability between two tails and therefore has a larger critical magnitude than a one tailed test for the same .
Significant correlation proves causation
Section titled “Significant correlation proves causation”No. Confounding variables, reverse causation and the sampling design may all explain an association.
Self-checks
Section titled “Self-checks”Self-check 1
Section titled “Self-check 1”A sample of paired observations gives . A researcher is testing
at the level. The critical value is . State the conclusion.
Answer
Since , the result lies in the critical region. Reject . There is sufficient evidence at the significance level to suggest positive linear correlation in the population. A full answer should name the variables in context.
Self-check 2
Section titled “Self-check 2”For paired observations, . Test for negative correlation at the level, given that the one tailed critical value has magnitude .
Answer
The hypotheses are and . The negative critical region is .
Since , do not reject . There is insufficient evidence at the level to suggest negative linear correlation in the population.
Self-check 3
Section titled “Self-check 3”A two tailed test at the level has critical regions and . Decide whether each sample result is significant:
Answer
- Significant, because equality is included in the critical region.
- Significant, because .
- Not significant, because .
Self-check 4
Section titled “Self-check 4”Explain why a scatter diagram should be examined even when a calculator has already produced .
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 a poor summary of the relationship. It also helps assess whether the model assumptions are plausible.
Exam checklist
Section titled “Exam checklist”Before completing a correlation test, check that you have:
- used , not , in the hypotheses;
- chosen the direction from the question;
- used the correct row for 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 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.