Skip to content
Projects / Phase 4.2 · Capstones

Volatility forecasting and risk-limit calibration

Next-day variance forecasts for BTCUSDT, with ETHUSDT as external validation, built from Binance 1- and 5-minute bars (2022-01 to 2026-08). The forecasts feed a replayed daily risk-limit service for a hypothetical long BTC position: USD 1m 97.5% ES budget, USD 30m cap, costs assumed at 10 bp.

Background

Trading desks and funds often set position limits from a forecast of tomorrow’s volatility. When markets get rougher the permitted exposure shrinks, so the expected tail loss stays inside a fixed budget. Realised volatility built from intraday prices gives a sharper read than daily closes, and the HAR model, a regression on daily, weekly and monthly realised variance, is a standard way to forecast it against the older GARCH benchmark.

Bitcoin is a hard test for any risk model. It trades around the clock, jumps on news, and has had multi-day crashes such as Terra/LUNA and FTX. A limit that looks well calibrated on average can still fail on those days, which is why value at risk and expected shortfall forecasts are backtested before anyone relies on them.

Why build it

This quant project in Python is aimed at market risk analyst and investment risk quant roles, which public job descriptions frame as independent risk challenge, stress testing and explaining breaches to portfolio managers. It asks a head of market risk to approve two linked choices: the next-day volatility forecast, and the rule that turns it into a daily exposure limit for a BTC position.

The learner compares forecasting models on Binance minute bars, checks the winner on ETH without re-tuning, and replays a year of morning limit decisions with exception reviews and a data-outage drill. The report is as plain about where the approach failed as about where it worked.

Headline result

A next-day volatility forecast and exposure-limit rule. HARQ on 5-minute realised variance had the lowest forecast loss in the replay year, sized through filtered historical simulation. The report shows where it fails: jump days, multi-leg crashes, and a hysteresis band that left risk above budget on 190 of 365 days.

Figures

  • Mean QLIKE forecast loss of five variance models for BTC development, BTC replay year and ETH replay year
    HARQ, a realised-variance regression, cut replay-year forecast loss (QLIKE) to 0.290 against 0.330 for GARCH, 12% lower; the ranking held on ETH.
  • BTCUSDT daily realised volatility from 5-minute bars against GARCH and HARQ next-day forecasts, 2023–2026, replay year shaded
    Model failure clusters in jumps: in the FTX week and the August 2024 carry unwind, realised variance averaged 2–3 times the GARCH forecast.
  • Permitted long BTC exposure and daily loss for fixed, EWMA-normal and realised-variance limit policies against the USD 1m budget
    The realised-variance limit had 4 days with losses above the USD 1m budget, against 12 for fixed exposure and 11 for a simple EWMA limit.
  • BTC exposure around an injected three-day data outage in March 2026, with fallback rules on and switched off
    With fallback rules on, the desk suspended and rebuilt at USD 11.9m; switched off, reported risk on the same position was understated by roughly half.

Data used

  • Binance BTCUSDT one-minute bars, 2022–2026 (2.45m bars, checksum-verified)
  • Binance ETHUSDT five-minute bars for validation

Topics covered

  • Volatility forecasting with realised volatility
  • HAR and GARCH models
  • Value at risk (VaR) and expected shortfall
  • Backtesting VaR
  • Risk limits and exposure sizing
  • Crypto market risk
  • Binance BTC and ETH minute data
  • Market risk analyst project

Members open the full write-up, notebook, tested code and data in the project reader.