Correlation Regime Dynamics

Why diversification collapses in a crisis.

Why these surfaces exist, and the one trick behind all five: Rendering an options Greeks surface in 3D in the browser

How to read this

Each row and column identifies an asset. The cell where they meet measures how closely that pair moves together. The default heatmap draws the lower triangle of the matrix with a fixed color scale from minus one to one. Its ordering groups related assets and stays fixed while you scrub, so a changing color represents a changing relationship rather than a row moving to a different position. In real mode the labels are sector ETF tickers; the textbook example uses numbered assets.

Use Heatmap or 3D bars to change the display. In the bar view, height represents the absolute value of correlation, and you can orbit the field. Both views show the same selected frame. The status readout gives the average absolute correlation between different assets, excluding the self-comparisons on the diagonal. Its calm, stress, or crisis label comes from that matrix, including when historical data is selected.

The time slider chooses a frame directly. Play advances through the sequence and Pause stops it; moving the slider also stops playback. In textbook mode, Assets changes the number of simulated assets, Transition length changes the number of frames in the calm-to-crisis sequence, and Resample generates another seeded example. These controls rebuild the illustrative factor model. They are hidden in real mode because the historical matrices contain the observed sector relationships.

Live sectors is available when the published sector-ETF correlation file is present and becomes the default source. Its rolling windows advance monthly. The data stamp uses the latest window date, while the selected frame shows its own date and the caption states the window length when supplied. Textbook mode remains available through the source toggle and supplies the example when the file is absent. Playback moves through those existing frames; it is not a stream of new market observations.

The synthetic transition illustrates correlations converging as the model moves toward crisis. It does not turn the picture into a forecast. For the story behind this view, read Rendering an options Greeks surface in 3D in the browser, which also introduces the drawdown and option surfaces. This tool is educational, not investment advice.

Next up