Sub topic 11
Is the Correlation Different from Zero?
Assume you know how to calculate a sample correlation, standard deviation, and t-statistic. You should also understand null and alternative hypotheses, p-values, and degrees of freedom.
A sample correlation, \(r\), measures the direction and strength of a linear relationship between two variables. The population correlation is written as \(\rho\). Testing whether correlation differs from zero asks whether the observed sample relationship could reasonably occur when the population has no linear relationship.
Formulating the hypotheses
For a two-tailed test, use:
- Null hypothesis: \(H_0: \rho = 0\)
- Alternative hypothesis: \(H_a: \rho \ne 0\)
The two-tailed alternative is appropriate when either a positive or negative relationship would matter. A one-tailed test is appropriate only when the research question and reasoning support a direction before looking at the data.
Under the null hypothesis, the test statistic is:
t = \frac{r\sqrt{n-2}}{\sqrt{1-r^2}}where \(n\) is the number of paired observations. The statistic follows a t-distribution with \(n-2\) degrees of freedom, assuming the relevant conditions hold.
Worked calculation
Suppose a sample contains \(n=12\) observations and has a correlation of \(r=0.50\). Then:
df = n-2 = 10t = \frac{0.50\sqrt{10}}{\sqrt{1-0.50^2}}
= \frac{1.581}{0.866}
\approx 1.83At the 5% significance level for a two-tailed test with 10 degrees of freedom, the critical values are approximately \(\pm 2.228\). Because \(1.83\) is between these critical values, fail to reject \(H_0\).
The sample shows a moderate positive correlation, but the evidence is not strong enough at the 5% level to conclude that the population correlation differs from zero.
| Quantity | Value |
|---|---|
| Sample correlation, \(r\) | 0.50 |
| Observations, \(n\) | 12 |
| Degrees of freedom | 10 |
| Test statistic, \(t\) | 1.83 |
| Two-tailed critical value | ±2.228 |
Assumptions and common errors
The test is most reliable when the observations are paired correctly, each pair is independent of the others, the relationship is approximately linear, and extreme outliers are absent. Correlation can be distorted by an outlier or by a curved relationship.
Do not use \(n-1\) degrees of freedom for this test. The correct degrees of freedom are \(n-2\). Also distinguish statistical significance from economic significance. A very small correlation can be statistically significant in a large sample, while a useful-looking correlation may fail to reach significance in a small sample.
Exercise
A sample has n = 20 and r = -0.45. What are the degrees of freedom, and what is the approximate t-statistic?
Show answer
The degrees of freedom are 18. The statistic is t = -0.45√18/√(1 - 0.45²) ≈ -2.14.