# VaR Backtesting Excel Model

Test whether your value-at-risk forecasts hold up against real outcomes. The model counts breaches, runs coverage and independence tests and fits a tail to study extreme losses.

- Canonical: https://finamodel.com/templates/market-risk-forecast-backtesting
- Excel download: https://finamodel.com/templates/market-risk-forecast-backtesting.xlsx
- Category: Capital Markets
- Model type: Portfolio
- Difficulty: Advanced
- Audiences: Credit & risk, Investors & analysts, Fund managers, Market risk managers, Model validation analysts, Treasury risk teams, Risk students learning VaR backtests
- Tags: var, backtesting, market-risk, kupiec, expected-shortfall, risk-management

## Overview

A model that backtests one-day value-at-risk (VaR) forecasts. The starting case is a fictional treasury with a year of daily observations, each with a forecast fixed before the outcome and the realized P&L. You can edit the confidence level, a VaR multiplier, the tail threshold and the tail confidence.

A breach occurs when the loss is strictly greater than the scaled forecast. The Kupiec test checks the breach rate against the target, and the Christoffersen test checks whether breaches cluster. An optional Pareto tail fit above a threshold estimates a far quantile and expected shortfall. Other sheets give monthly breach rates, three tail thresholds, a breach log with run length and owner, and a review of four forecast scales over two windows.

At 99% confidence the case shows 15 breaches against 2.6 expected, with coverage and joint p-values near zero, so the decision is to review calibration. The tail fit has only 15 observations, so results depend on the threshold. A checks sheet ties transition counts, breach counts and window totals.

## What's included

- Daily backtest of dated VaR forecasts against realized P&L
- Editable confidence level and VaR multiplier
- Kupiec unconditional coverage test with p-value
- Christoffersen independence test and joint test against a 5% cutoff
- Breach severity, worst loss and average breach loss
- Pareto tail fit with tail quantile and expected shortfall
- Tail threshold stability table at three thresholds
- Breach investigation log with run length, diagnosis and owner
- Monthly breach and excess loss profile
- Scale review of four forecast multiples over a calibration and a validation window
- Checks for transition counts, breach counts and window totals

## Know if your VaR works

Counting breaches is not enough. The coverage and independence tests show whether the breach rate is too high and whether breaches come in clusters.

## Look into the tail

A Pareto fit above a loss threshold estimates far quantiles and expected shortfall. A stability table shows how much the result moves with the threshold.

## From test to action

Each breach is logged with a diagnosis and owner. A scale review shows how a larger multiplier would change breaches and excess loss in a later window.

## Workbook structure

### Summary

Breach counts, test results and tail estimates.

- Observed against expected breaches
- Coverage, independence and joint p-values
- Tail quantile and expected shortfall
- Calibration decision

### Assumptions

Risk controls.

- Confidence and VaR multiplier
- Tail threshold and tail confidence
- Joint test cutoff

### Backtest

Dated forecast outcomes.

- Forecast VaR and realized P&L
- Breach flag and excess loss
- Loss to VaR ratio

### Calibration

Kupiec and Christoffersen tests.

- Breach rate against target
- Likelihood ratios
- Transition counts

### Tail fit

Pareto tail-loss diagnosis.

- Tail flag by day
- Log ratios over threshold
- Excess over VaR

### Investigations

Breach log for every outcome.

- Run length
- Diagnosis
- Owner

### Monthly

Monthly breach and loss profile.

- Expected and actual breaches
- Excess loss
- Conclusion by month

### Stability

Tail threshold sensitivity.

- Three thresholds
- Alpha, quantile and expected shortfall
- Sample warning

### Scale review

Forecast scale by review window.

- Four VaR multiples
- Earlier and later windows
- Breaches and excess loss chart

### Checks

Backtest reconciliations.

- Transition and breach count ties
- Tail count bound
- Window count tie

## Frequently asked questions

### What is VaR backtesting?

VaR backtesting compares each day's value-at-risk forecast with the loss that actually happened. If losses exceed VaR more often than the confidence level implies, the model is too optimistic. Regulators and risk teams use it to validate risk models.

### What do the Kupiec and Christoffersen tests show?

The Kupiec test checks whether the number of breaches matches the target rate. The Christoffersen test checks whether breaches are independent or tend to follow each other. The joint test combines both.

### How reliable is the tail fit?

The Pareto fit uses only losses above a threshold, so the sample is small. In the case there are 15 tail observations, which is weak support. Compare thresholds on the Stability sheet before you rely on the result.

### What does the model not do?

It does not calculate VaR itself; it tests forecasts you enter. Monthly rates are descriptive and are not separate regulatory tests. The case data are fictional.

### Can I load my own data?

Yes. Paste your dated forecasts and P&L on the Backtest sheet in date order and edit the controls on Assumptions. Extend the daily and monthly ranges if you add more records.

## Related templates

- [Credit Stress Testing Framework](https://finamodel.com/templates/stress-testing-model)
- [Chief Risk Officer Dashboard](https://finamodel.com/templates/cro-model)
- [Monte Carlo Cash Risk and Hedge Simulation](https://finamodel.com/templates/finawork-011-stochastic-financial-risk-simulation)
