Quant interview toolkit · correlation inference

A 0.30 correlation from thirty days is less certain than it looks

Two strategies show a correlation of 0.30 across thirty daily returns. A portfolio optimizer treats 0.30 as a precise input and allocates as though the diversification benefit were known. But thirty pairs of observations leave a wide range of plausible population correlations. Before optimizing to a second decimal place, calculate how uncertain the first one is.

Why a raw correlation is awkward to average

The Pearson sample correlation rr lies between −1 and +1. Its sampling distribution is skewed when the true correlation is far from zero, and a normal interval formed directly as r±1.96SE⁡(r)r\pm1.96\operatorname{SE}(r) can wander outside the allowed range. Fisher’s transform maps the interval (−1,1)(−1,1) to the whole real line:

z=atanh⁡(r)=12log⁡1+r1−r.z=\operatorname{atanh}(r) =\frac12\log\frac{1+r}{1-r}.

For independent observations from a bivariate normal distribution, zz is approximately normal with standard error 1/n−31/\sqrt{n-3} for sample size nn that is not too small. Form an interval on the zz scale and map its endpoints back using tanh⁡\tanh. The transformation respects the correlation bounds.

With r=0.30r=0.30 and n=30n=30, z≈0.3095z\approx0.3095 and 1/27≈0.19251/\sqrt{27}\approx0.1925. An approximate 95% interval on the transformed scale is 0.3095±1.96(0.1925)0.3095\pm1.96(0.1925), about [−0.0677,0.6867][-0.0677,0.6867]. Mapping back yields roughly

ρ∈[−0.068,0.596].\rho\in[-0.068,0.596].

The interval reaches slightly below zero and extends to a correlation near 0.60. The observed 0.30 is real data, but it is weak evidence for a precise diversification assumption under this model. A 95% confidence interval describes a procedure that covers a fixed true correlation in repeated samples under its assumptions; it is not a posterior probability statement about this one interval.

Independent paired observationsSample rrApproximate 95% Fisher interval
300.30−0.07 to 0.60
3000.30about 0.19 to 0.40

The larger sample gives a narrower interval under the same stationary model. More calendar rows do not help as much if their information is redundant or the relationship changes through time.

Why the number of rows may not be the sample size

Daily strategy returns may be autocorrelated because positions overlap, prices update slowly, or a signal changes only monthly. Two series can also share a few common crisis days that dominate the sample covariance. The Fisher standard error 1/n−31/\sqrt{n-3} assumes independent pairs from one stable bivariate normal law. Plugging in 300 daily rows when the effective information resembles 30 independent regimes produces a misleadingly tight interval.

If dependence is material, a block bootstrap can resample consecutive chunks so that within-block time structure survives. Block bootstrap explains that idea. The resulting uncertainty still depends on block length, representativeness of the period, and whether a stable population correlation is a meaningful target. A rolling correlation plot can expose instability, but selecting the most favorable window after looking at the data is another form of selection.

An interval around the wrong quantity is still wrong

Pearson correlation measures linear co-movement. A payoff can be perfectly determined by a market shock and have zero linear correlation with it; the five-point counterexample shows how. A narrow interval around zero would not reveal a nonlinear crash exposure. Conversely, two assets with moderate average correlation can become more dependent in large negative moves.

For a portfolio decision, inspect the scatter plot, conditional behavior on large market days, and exposure to common factors. If the two strategies are built from the same securities, shared positions can matter even if their short sample returns happen to offset. An optimizer needs a covariance matrix, not correlation alone; volatility estimates and uncertainty in the entire matrix matter. Covariance shrinkage addresses the instability that appears when many pairwise estimates feed an optimizer.

Make the estimate decision-ready

State the observation frequency, return convention, sample dates, whether returns overlap, and whether the two strategies were live or reconstructed. Calculate the sample correlation and an uncertainty interval under a model you can defend. Then stress portfolio risk at several plausible correlations rather than one fitted point. For example, with equal volatility assets at equal weights, variance is σ2(1+ρ)/2\sigma^2(1+\rho)/2; moving ρ\rho from 0 to 0.6 changes the portfolio standard deviation from about 0.707σ0.707\sigma to 0.894σ0.894\sigma. That is a meaningful range for sizing.

When comparing a new strategy with an existing book, the question is not whether rr is statistically different from zero in isolation. It is whether plausible correlation values change the capital decision. The uncertainty calculation should serve that decision.

Check who contributed the covariance

Correlation is built from products of deviations from each series’ mean. A few pairs with unusually large deviations can contribute a large share of the numerator. As a simple diagnostic, recompute the estimate after removing each date in turn and inspect the range. If one crisis day moves rr from −0.1 to +0.3, the headline number describes that observation as much as the ordinary relationship. Removing the date is not necessarily correct—crisis co-movement may be exactly the risk you care about—but the sensitivity should be visible.

Another useful view is a scatter plot colored by date or volatility regime. It can distinguish a stable cloud from two regimes with different centers, or reveal a curved dependence that one coefficient conceals. A confidence interval answers uncertainty under a statistical model; sensitivity checks ask whether the model’s summary is a useful description of the particular sample.

Make the uncertainty visible

Approximate 95% intervals assume independent pairs from a stable bivariate normal distribution.

Practice

TransformWhat Fisher-transformed value corresponds to a sample correlation of zero?
Show answer

atanh⁡(0)=0\operatorname{atanh}(0)=0. The transform is odd, so negative correlations map to negative transformed values.

Portfolio consequenceTwo equal-volatility assets are held at 50% each. What is portfolio volatility in units of each asset's volatility when their correlation is one, and when it is zero?
Show answer

At correlation one, volatility is σ\sigma. At correlation zero, variance is σ2/2\sigma^2/2 and volatility is σ/2≈0.707σ\sigma/\sqrt2\approx0.707\sigma.