Portfolio risk (PORT, MARS)
PORT (also MARS) measures your portfolio's risk against a benchmark: how much it swings, its worst fall, a bad-day loss estimate, which holdings move together, and what a crash or a rate jump would do to it.
- 5 min
- 3 questions
- Lesson 2 of 8
Why you would care
Up 18% in two months, the market 3%: brilliant, or lucky and dangerous? Return alone does not say; the risk behind it does.
The idea from scratch
Chapter 1's risk words (volatility, drawdown, beta, correlation) now apply to the whole portfolio. New ones:
- Benchmark: what you compare yourself with, often an index fund like SPY.
- Active return: your return minus the benchmark's.
- Tracking error: how far your returns wander from the benchmark's, as a yearly volatility.
- VaR 95% (value at risk): "1-day VaR 95% = 1.3%" means that on 95 days out of 100 the loss should stay under 1.3%.
- Expected shortfall: the average loss on the worst 5% of days. Never smaller than VaR.
- Stress test: "what if" math. If the index falls 10%, 10-year rates rise 1 point or the VIX (the market's fear gauge) jumps 10 points, what happens to this portfolio?
- Historical stress scenario: a past selloff replayed on today's holdings, each moving as its own price did then.
See it in Gloom

Open ittype PORT (or MARS). p switches portfolio; h / l switch views.
Current-weight basket 18.44%vsSPY 2.73%: what today's holdings, at today's weights, returned over 60 days. Not your real return: you may have bought along the way.60D active return 15.71%: 18.44 - 2.73, the gap over the benchmark.60D annualized volatility 18.10%,60D max drawdown -5.27%: swing size and worst fall.1D VaR 95% (60D) 1.30%and1D expected shortfall 1.83%: the bad-day and worst-days estimates.60D tracking error 12.25%: this portfolio drifts far from SPY.PCTL 1Y: where each value sits in its past year, 0 to 100. The return, at 99, is unusually high.
Other views: Factors (betas to market drivers), Holdings, Correlation and Stress (below), and Performance, Attribution and Greeks, which need your account data. Enter on a metric opens its history and method.
Which holdings move together, and past selloffs

- Correlation pairs every holding, largest first.
AAPLandMSFTat0.44tended to move together (green);NVDAandKOat-0.43moved opposite (red), which steadies the whole.Enteron a cell opens that pair inGR. - Stress keeps the what-if shifts and replays four past selloffs on today's holdings and weights, price only, from the last close before each shock to SPY's lowest close.
The replays for the same illustrative portfolio:
| Selloff and window | SPY | Portfolio |
|---|---|---|
| Covid crash 2020, 19 Feb to 23 Mar | -34.1% | -35.30% |
| Rate shock 2022, 3 Jan to 12 Oct | -25.4% | -21.04% |
| Carry unwind 2024, 31 Jul to 5 Aug | -6.1% | -6.17% |
| Tariff drop 2025, 2 Apr to 8 Apr | -12.1% | -13.17% |
Sectors against the S&P 500
In the shell, gloom fn PORT Book --view sectors compares each sector's share of your book with its share of the S&P 500, from the holdings of IVV, a fund that tracks it. Active pp is the gap in percentage points. For the same illustrative portfolio:
Sector Book % IVV % Active pp
Information Technology 58.54 35.51 23.03
Energy 13.20 3.54 9.66
Consumer Staples 13.04 5.22 7.82
Financials 15.22 12.78 2.44
Materials 0.00 1.80 -1.80
...
Health Care 0.00 10.51 -10.51Funds you hold count as unclassified.
Practice and recap
Try it3 tasks
- In the first screenshot, does an 18% gain in two months come with low risk? (No: 18% volatility, a strong run with real risk.)
- A 50,000-dollar portfolio has a 1-day VaR 95% of 2%. Under what loss should it stay on 19 days out of 20? (1,000 dollars.)
- In the matrix, which pair steadies the portfolio most? (NVDA and KO, at -0.43.)
Common mistakes3 mistakes
- Reading VaR as the maximum loss. The worst days can be far worse.
- Judging return without volatility or drawdown beside it.
- Reading a replayed selloff as a forecast. The next one will hit different stocks.
Check yourself3 questions
- What does active return measure?
- VaR 95% is 1.5% and expected shortfall is 2.4%. What does 2.4% mean?
- What is a stress test, and what does a historical one add?
Answers
- Your return minus the benchmark's return.
- On the worst 5% of days, the average loss is 2.4%.
- The portfolio's change if the index, rates or volatility moved by a set amount. A historical one replays a real past selloff on today's holdings.
Words in this lesson6 words
- active return
- Your return minus the benchmark's.
- tracking error
- How far your returns wander from the benchmark's.
- VaR (value at risk)
- The loss you should stay under on 95% of days.
- expected shortfall
- The average loss on the days worse than VaR.
- stress test
- The portfolio's change under a chosen shock.
- historical stress scenario
- A past selloff replayed on today's holdings.
Educational material about reading market data, not investment advice.