← NCO bridge demos paper (PDF) · verification script

The bridge by Monte Carlo

A random market, a noisy estimate of its covariance, and the out-of-sample variance of the bridge portfolio at every setting of the dial, averaged over many estimates. Nothing here is a formula; it is the algorithm run on data.

The market

Twelve assets in four groups. Each group has one representative (K1 to K4) and one to three other members (m). The representatives are correlated with each other; each member is its own group's representative scaled by a beta, plus independent noise, which is the paper's gateway model. The left matrix is the true correlation, with the groups outlined. The right matrix is a sample correlation estimated from T observations, which is what the portfolio has to be built from. The two disagree less as T grows.

7
60

Out of sample, over many estimates

For each of many samples of T observations, the bridge portfolio is built from the sample covariance at every γ from 0 to 1, and its variance is then measured under the true covariance. The chart shows the average of that out-of-sample variance against γ, updating as the draws accumulate. The readout also gives the sample minimum-variance portfolio as its own benchmark, and what the bridge would achieve if it were handed the true covariance, which is lowest at γ = 1 by the paper's Proposition 2; the noisy curve sits above it everywhere.

300
What to look for. With few observations the sample covariance is unreliable and the curve's minimum sits well inside: trusting the estimated cross-group correlation partly beats both ignoring it (γ = 0, NCO) and trusting it fully (γ = 1, full conditioning on the sample knots, which is the sample minimum-variance portfolio only under the gateway model). A minimum at either end of the dial at small T would refute this. Raise T and the minimum drifts toward 1 as the estimate improves. This is the estimation-error trade-off of the paper's Section 7, here without any of its simplifying assumptions: the sample covariance does not satisfy the gateway model, only the truth does.

The portfolios

The weights the bridge holds at the two ends and at the best γ found above, first built from the true covariance and then from the last sample drawn. Bars are grouped by asset; the representatives are the first bar in each group.

What to look for. Built from the truth, the members' weights keep the same proportions to each other within a group at every γ; what the dial changes is how much of each representative the group holds, and the groups' budgets. Built from the sample, the γ = 1 portfolio takes the largest and most erratic positions, which is why it loses out of sample.

The market is drawn from a seeded generator, so the same seed gives the same market. The same algorithm, in Python, is checked against exact arithmetic in the verification script.