Case studies — Finance
Ten thousand scenarios over a live database, and five sector limits already breached
The holdings, three years of daily returns and the risk limits were read from the fund's own database, not from a file prepared for the question. The stressed book loses 7.0% at 95% confidence, and five of the sector limits in the bank's own table are already breached.
- Source
- PostgreSQL, read-only
- Data
- 18 holdings, 756 days × 18 tickers
- Scenarios
- 10,000, Student-t residuals
- VaR 95 / 99
- SAR 2.14 bn / 2.60 bn
The question
A database named, not a spreadsheet attached
Stress test our fund's listed-equity portfolio. Holdings and three years of daily returns are in the Fund portfolio database. Run 10,000 market scenarios with oil, interest-rate and equity shocks, show which positions lose the most and why, check each sector against its limit in risk_limits, and give me the value at risk at 95 and 99 percent with a short report for the investment committee.
Pointing at a database rather than attaching a file is the difference that matters. The run has to find the schema, pull 13,608 rows of returns through aggregates and CSV exports because they exceed what can be displayed inline, and read the limits from the table that governs them.
What it found
A one-day stressed loss of 7.0% of the book
A factor model on Brent, the US ten-year and MSCI World was fitted per position, then run through 10,000 scenarios with an overlay of oil down 4.5%, rates up 30 bp, world equities down 3.0% and volatility multiplied by 1.6.
The book is SAR 30.7 bn across 18 listed holdings.
Who loses, and why
The largest loss is not the largest position
| Position | cVaR 99 | Weight | Driver |
|---|---|---|---|
| Saudi Aramco | SAR 427 mn | 16.1% | Largest holding and the highest oil beta, 0.54 |
| Lucid | SAR 353 mn | 7.9% | Highest idiosyncratic volatility, 4.8%, and rate beta +5.0 |
| SABIC | SAR 250 mn | 9.0% | Oil beta 0.38 on a large position |
| Al Rajhi Bank | SAR 217 mn | 9.2% | Deepest rate beta, −2.8 |
| NVIDIA | SAR 172 mn | 5.1% | Highest equity beta, 1.61 |
The Al Rajhi line is the one worth reading twice. At 9.2% of the book it is a smaller loss than Lucid at 7.9%, and the loss is driven by the 30 bp rate move rather than the equity shock. That is a rates call sitting inside what looks like a stock position.
Against the fund's own limits
Five value-at-risk breaches and two weight breaches
Consumer discretionary is 4.6 times over, at SAR 370 mn against an 80 mn limit, and over on weight as well at 8.8% against 5%. Essentially all of it is one position.
Financials, SAR 493 mn against 400 mn, with two banks carrying SAR 373 mn of it. Information technology is roughly double its limit and over on weight. Materials is over on oil sensitivity, and utilities is marginal at SAR 121 mn against 120 mn.
Energy is comfortably inside both limits, at SAR 523 mn against 900 mn, which is the counter-intuitive result: the sector everyone watches is not the one in breach.
The breaches are measured against the limits in the fund's own table, not against a threshold the run chose.
What went wrong, and what it will not claim
A units bug caught, and a caveat for the committee
The band thresholds were written in the wrong units: the profit and loss figures are in SAR, and the bands were not. The run found it, said so, and corrected it rather than shipping a table whose colouring was meaningless.
The caveat it attaches to the report is about the shocks, not the arithmetic. Oil down 4.5%, rates up 30 bp and equities down 3% is a plausible severe day, not the worst day in the sample, and the regression betas are a linear approximation fitted over a relatively calm three-year window. The ranking of the losers is robust to that choice. The absolute value-at-risk number is only as good as the scenario it assumes, and the run offers to rerun it against a historical replay.
What was registered
A report for the committee and the tables behind it
The committee pack is stress_report.txt with a dashboard figure, and the
workings are stress_by_position.csv and
stress_sector_limits.csv. Database access throughout was read-only, through
the connector the fund's own credentials were configured for.
Put your own question through it
Arc is in beta. Download the app, connect it to your workspace, and ask it something you would have to defend.