Rolling dependency
For each Bitcoin pair, Pearson correlation is calculated over 14, 30, 60 and 90 days, then Fisher transformed to form a stable regression target.
z_t = arctanh(rho_t)This thesis tests whether the changing dependency between Bitcoin and conventional assets can be forecast one day ahead, and whether that forecast can serve as a modest risk input for an investor.
The first layer forecasts tomorrow's 30-day BTC-S&P 500 dependency. The second layer converts the forecast and crypto-market inputs into a stress probability. Move the inputs to inspect the mechanics.
Loading dated market snapshot.
Scenario inputs explain the model mechanics. The dated snapshot above uses the saved calculation rather than a live browser feed.
AR(1) forecasts the Fisher-z transformed dependence. A stress score demonstrates the second-layer logic.
The AR(1) persistence coefficient comes from the thesis demonstrator. The stress score is an explanatory approximation of the researched logistic-regression layer, not a live calibrated model or financial advice.
The project separates a measurable forecasting problem from a deliberately conservative investor-use case. All predictions are generated in temporal order, without training on the future.
For each Bitcoin pair, Pearson correlation is calculated over 14, 30, 60 and 90 days, then Fisher transformed to form a stable regression target.
z_t = arctanh(rho_t)Naive, AR(1), HAR, regularised linear models, tree ensembles and a leakage-safe DCC-GARCH benchmark are re-estimated through time.
z_hat(t+1) = alpha + beta z_tA logistic model combines dependency and crypto features to estimate whether next-day equity returns enter a stress definition below -0.75 trailing standard deviations.
P(stress_t+1 | crypto_t, z_hat_t+1)The strongest result is not that a complex algorithm won. It is that the rolling dependency is highly persistent, so AR(1), Ridge and HAR form a practically indistinguishable top tier.

AR(1) is almost identical at 0.0659. The ranking within this top tier is not economically meaningful.
The target's own history contains most of the forecastable information.
Tree ensembles have higher RMSE than the naive persistence baseline in every experiment.
This is an exploratory maximum among 20 configurations, so it is not evidence for a standalone trading rule.
The investor-facing part of the work does not predict market direction or promise returns. It highlights periods when Bitcoin and broad equities may be moving into a more connected, fragile regime.
A rising BTC-equity dependency suggests that an investor should not assume Bitcoin will diversify an equity-heavy portfolio in a stress event.
An elevated probability can prompt a review of gross exposure, stop levels, liquidity and existing hedges before a scheduled risk review.
The next research step is a portfolio backtest with transaction costs, position sizing and a tail-risk objective. This thesis does not claim that result yet.