- Tests for Correlation: What They Ask
- Parametric Test: Pearson Correlation
- Worked Example: Testing Pearson Correlation
- Nonparametric Test: Spearman Rank Correlation
- Related Concepts: p-Values, Confidence Intervals, and Test Power
- Common Mistakes and Investment Interpretation
- Tests for Correlation: Q&A
- Level 1 CFA Exam Takeaway: Tests for Correlation
A test for correlation asks whether the relationship observed in a sample is strong enough to support an inference about the population, rather than being a plausible result of sampling variation. It is useful when an analyst wants to judge whether two return series, economic variables, or ranked observations appear to move together in a meaningful way.
The test does not answer every question about a relationship. Correlation measures association, not causation, and a statistically detectable association may still be too small to matter for portfolio construction, hedging, or an investment decision.
For CFA Level 1, begin by identifying the data and the question: is the relationship linear and suitable for a parametric Pearson test, or do ranks and a nonparametric Spearman test better fit the observations? That choice determines the coefficient, assumptions, and reference distribution used for the test.
Tests for Correlation: What They Ask
The first step is to state a population hypothesis, not a conclusion about the sample alone. In the usual two-sided Pearson test, the null is , meaning no linear population correlation, and the alternative is , meaning the population correlation differs from zero.
A two-sided alternative is appropriate when either a positive or a negative relationship would be relevant. A one-sided test is appropriate only when the question and economic reasoning specify a direction before looking at the sample; it is not a device for making an inconvenient two-sided result look significant.
The sample correlation summarizes the observed linear association, but the hypothesis test accounts for sample size. A moderate from a small sample can be imprecise, while a smaller coefficient from a much larger sample can provide stronger statistical evidence against a zero population correlation.
The decision can be expressed with a critical value or a p-value. Compare the test statistic with the relevant two-tailed critical values, or reject the null when the p-value is no greater than the preselected significance level . Both methods produce the same decision when they use the same test and significance level.
Parametric Test: Pearson Correlation
The parametric test uses the sample Pearson correlation coefficient to test whether the population's linear correlation is zero. It is most appropriate when paired observations are reasonably modeled as bivariate normal and the relationship of interest is linear; unusual outliers can have a large effect on Pearson correlation.
Under , the test statistic follows a t distribution with degrees of freedom under the usual assumptions. The t-distribution reference is important: estimating a linear relationship from the same sample uses information, so the relevant reference distribution is not the standard normal distribution.
- – test statistic for the Pearson correlation test
- – sample Pearson correlation coefficient
- – number of paired observations
The sign of tells you the direction of the sample association; the absolute size of determines how far the statistic is from the zero-correlation null. For a two-sided test, use both tails of the t distribution, so a sufficiently large positive statistic and a sufficiently large negative statistic both lead to rejection.
Do not treat normality as a mechanical label. The practical question is whether the data support the linear parametric framework well enough for Pearson's coefficient and its t reference distribution to be useful. If the variables are ordinal, heavily influenced by outliers, or linked in a monotonic but nonlinear way, a rank-based approach may be more defensible.

Worked Example: Testing Pearson Correlation
Assume an analyst observes 26 paired monthly returns for a stock and a market index and calculates a sample correlation of . The analyst tests against at the 5% significance level, so this is a two-sided test with 24 degrees of freedom.
Substitute the sample values into the Pearson test-statistic formula. The numerator is , and the denominator is . Keeping the intermediate digits gives a test statistic of approximately 2.27.
- – calculated Pearson correlation test statistic
- – sample correlation from the 26 paired monthly observations
At 24 degrees of freedom, the approximate two-sided 5% critical values are 2.064 and negative 2.064. Because 2.27 lies beyond the positive critical value, the analyst rejects the zero-correlation null at the 5% level. The approximate two-sided p-value is 0.033, which is also below 0.05 and leads to the same decision.
The correct interpretation is limited but useful: the sample provides evidence that the population linear correlation is not zero under the model assumptions. It does not prove that the market causes the stock's return, that the correlation will persist, or that the relationship is large enough to support a trading strategy after risk and costs.
Nonparametric Test: Spearman Rank Correlation
Spearman rank correlation replaces the raw observations with their ranks and measures whether the two variables tend to move together in a monotonic pattern. A monotonic relationship consistently moves in one direction, even if it is not a straight-line relationship. This makes the method useful for ordinal data or data for which a Pearson test's distributional assumptions are not credible.
Rank both variables using the same direction, such as largest to smallest, then calculate the rank difference for each pair. The direction chosen for ranks is less important than consistency across both variables. When observations are tied, assign average ranks; the simple no-ties formula below then needs a tie adjustment or suitable software.
- – Spearman rank correlation coefficient
- – difference between the two ranks in pair
- – number of paired observations
For example, if five untied pairs have squared rank differences summing to 2, then . The high positive rank correlation means the ranks are strongly aligned in this sample; it does not by itself establish statistical significance.
The null is usually that the population rank correlation is zero. With a sufficiently large sample, an approximate t procedure may be used for a rank correlation; for smaller samples, use the appropriate critical-value table or exact procedure. State the method supplied by the question rather than applying a Pearson critical value automatically.
Related Concepts: p-Values, Confidence Intervals, and Test Power
A significance level is chosen before the data are evaluated and sets the tolerated probability of a Type I error for the test. A p-value is calculated from the observed statistic and is the smallest significance level at which the null would be rejected. It is not the probability that the null hypothesis is true.
For a two-sided correlation test, a confidence interval provides the same decision logic from another angle. A confidence interval that excludes zero corresponds to rejecting a zero-correlation null at the matching two-sided significance level. The interval also communicates a range of plausible population correlations, which is more informative than a reject-or-fail-to-reject decision alone.
A Type I error rejects a true null, while a Type II error fails to reject a false null. Test power is the probability of rejecting a false null. Power generally rises with a larger sample, a stronger true relationship, a higher significance level, and less measurement noise; it falls when a relationship is difficult to distinguish from sampling variation.
Economic significance is a separate judgment. A tiny correlation can be statistically significant in a large sample but make little difference to diversification or a trading decision. Conversely, an economically useful estimated relationship may fail a conventional test in a small sample because the evidence is too imprecise to distinguish it from zero.
The table separates terms that answer different questions. Keep the evidence standard, the possible testing error, and the investment consequence distinct rather than treating every low p-value as an actionable result.
| Concept | What it means | Exam implication |
|---|---|---|
| p-value | How unusual the observed statistic is if the null is true | Compare it with the preselected significance level. |
| Confidence interval | A range of plausible population correlations | For a matching two-sided test, exclusion of zero rejects the null. |
| Type I error | Rejecting a true null hypothesis | Its probability is controlled by the significance level. |
| Type II error and power | Failing to reject a false null and the chance of avoiding that error | Larger samples and stronger true relationships generally increase power. |
| Economic significance | Whether the estimated association matters in an investment decision | Assess size, stability, risk, and implementation costs as well as significance. |
Monitoring a correlation estimate means checking whether the relationship is stable and decision-relevant. A portfolio manager should consider rolling periods, changes in the economic regime, outliers, and whether the observed relationship remains large enough to matter after accounting for risk limits and trading costs.
Common Mistakes and Investment Interpretation
One common error is confusing the p-value with the chosen significance level. The p-value comes from the sample, whereas is a decision threshold selected before examining the result. A p-value of 0.033 supports rejection at 5% but not at 1%.
Another mistake is to accept the null hypothesis after failing to reject it. Failure to reject means the sample provides insufficient evidence at the stated significance level; it does not prove that population correlation is exactly zero. Low power or a small sample may be the reason the test is inconclusive.
Candidates can also use the wrong test. Pearson correlation is about linear association under a parametric framework, while Spearman rank correlation is designed for ranked or monotonic relationships and is more robust to certain departures from that framework. Tied ranks require care, so do not use the simple Spearman formula unchanged when ties are material.
Finally, do not turn a statistical result into an investment promise. A significant correlation can be unstable across regimes, and a high sample correlation may reflect a common exposure rather than a reliable hedge. The investment question is whether the association is economically meaningful, persistent, and usable within the portfolio's risk and cost constraints.
Tests for Correlation: Q&A
How do you choose the correct hypothesis test for correlation?
What is the difference between a p-value and a significance level?
How are confidence intervals related to two-sided correlation tests?
What is the difference between statistical and economic significance?
How do sample size and variance affect test power?
When should a nonparametric correlation test be used?
What does a rejected zero-correlation null mean in investment terms?
Does a high correlation automatically make an asset a poor diversifier?
Level 1 CFA Exam Takeaway: Tests for Correlation
- State the population hypotheses first; use a two-sided test unless a direction was specified before seeing the data.
- For a Pearson test of zero correlation, use the sample coefficient and a t distribution with degrees of freedom.
- Use Spearman rank correlation for untied ranks and a monotonic or nonparametric setting; treat ties with care.
- Keep p-values, significance levels, confidence intervals, Type I and II errors, and test power conceptually distinct.
- Interpret a statistically significant correlation in investment terms: size, stability, risk, and costs determine economic usefulness.

