Skip to main content
Thrive is live on Product Hunt.Check us out (opens in a new tab)

Tail risk

VaR and CVaR calculator the loss in the tail

Empirical value at risk and conditional value at risk from the closes you paste. VaR is the loss you only breach on the bad days. CVaR is the average loss on those days.

Closes

One column per asset, oldest first. The sample is already filled. First close 64203.60.

BTC

95% VaR 3.3%

On the days past the 95% line, the average loss was 4.4%. The gap above VaR is 1.1%.

95% VaR
3.3%

Empirical one-period loss

95% CVaR
4.4%

Average loss beyond VaR

Tail gap
1.1%

CVaR minus VaR

Closes
90

Sample behind the quantile

  • Each row is daily, 365 periods a year. Annualized figures use 365 periods.
  • 90 closes in the series. Computed by Thrive's portfolio engine. Rounded to the digit shown.
  • Empirical estimator. Not a normal formula, and not a multi-day regulatory VaR.

VaR is a line. CVaR is the hole past it.

A 95% one-period VaR of 4% means about one period in twenty lost more than 4%. It does not say whether those losses were 4.1% or 20%.

CVaR, also called expected shortfall, averages the losses beyond that line. For crypto, the gap between VaR and CVaR is the number that matters. The tail is fatter than a bell curve.

How this page runs it

Both figures are empirical, from the portfolio values you send, not from a normal formula. You pick 90%, 95%, or 99%. The engine returns the loss as a fraction of value.

This is a historical one-period loss, not a 10-day regulatory VaR. Scale it yourself if you need a longer horizon, and do not pretend the square-root-of-time rule holds in a crash.

How to run it

  1. Paste closes.
  2. Pick a confidence level. 95% is the usual desk default.
  3. Read VaR and CVaR as losses, so both print as positive percents.
  4. If CVaR is far above VaR, size off CVaR.

FAQ

People also ask

VaR is a quantile of the loss distribution. CVaR is the mean loss on the days that breach that quantile. CVaR is always at least as large as VaR.

Crypto returns are skewed and fat-tailed. A normal VaR understates the days that actually showed up in the series. The empirical estimator uses those days.

It is a fraction of portfolio value over one period. Multiply by the account you care about. A 5% CVaR on a $20,000 book is $1,000 on the average bad day at that confidence.

At 95%, a 90-close window has only a handful of tail days. Treat the number as a description of this window, not a law. Longer series make the tail less jumpy.

Size the tail you can survive.

VaR on a chart is a statistic. VaR on your account is a stop you either have or do not. Thrive keeps the size next to the fills.