Understand performance metrics (CAGR, max DD)
What Are We Measuring?
When you backtest a trading strategy, you get a sequence of portfolio values over time: . Raw numbers like "portfolio went from ₹100,000 to ₹250,000" are meaningless without context:
- How long did it take?
- Did it grow smoothly or with terrifying drops?
Performance metrics standardize results so you can compare strategies, benchmark against indices, and assess risk-adjusted returns.
CAGR (Compound Annual Growth Rate)
Derivation from First Principles
Start with the compound interest formula. If you invest at a constant annual rate for years:
We know (starting capital), (ending capital), and (years). Solve for :
Take the -th root:
Therefore:
Why subtract 1? Because includes the original capital; subtracting 1 isolates the rate of return.
Why the exponent ? We're reversing the compounding process—taking the geometric mean.

Worked Example 1: Simple CAGR Calculation
Setup: Your portfolio grew from ₹1,00,000 to ₹1,80,000 over 3 years.
Step 1: Identify values.
Step 2: Apply formula.
Why this step? We need the ratio of ending to starting value—that's the total growth multiplier.
Step 3: Calculate.
Result: CAGR = 21.64% per year.
Interpretation: Even though the portfolio didn't grow exactly 21.64% every year (maybe +30%, +10%, +25%), the equivalent smooth annual rate is 21.64%.
Worked Example 2: Fractional Years
Setup: A strategy runs for 520 days (not a neat number of years). Portfolio: ₹50,000 → ₹68,000.
Step 1: Convert days to years.
Why this step? CAGR is an annual rate, so time must be in years.
Step 2: Apply formula.
Result: CAGR ≈ 23.76%.
Maximum Drawdown (Max DD)
Why It Matters
CAGR can be seductive—"30% annual returns!" sounds amazing. But if achieving that required surviving a 70% drawdown, most retail investors would have exited in panic. Max DD captures emotional pain and capital preservation risk.
Derivation: How to Calculate Max DD
For each point in your equity curve:
-
Running Maximum: Track the highest portfolio value seen so far:
-
Drawdown at : How far below the peak are we now?
Why this formula? Drawdown is a percentage loss from the peak. If peak was ₹100 and current is ₹80, DD = -20%.
-
Maximum Drawdown: The most negative drawdown across all :
(We take because drawdowns are negative.)
Worked Example 3: Computing Max DD Step-by-Step
Setup: Daily portfolio values over 7 days:
| Day | Value (₹) |
|---|---|
| 0 | 100,000 |
| 1 | 105,000 |
| 2 | 110,000 |
| 3 | 102,000 |
| 4 | 98,000 |
| 5 | 108,000 |
| 6 | 106,000 |
Step 1: Compute running peak.
| Day | Value | Peak |
|---|---|---|
| 0 | 100000 | 100000 |
| 1 | 105000 | 105000 |
| 2 | 110000 | 110000 |
| 3 | 102000 | 110000 |
| 4 | 98000 | 110000 |
| 5 | 108000 | 110000 |
| 6 | 106000 | 110000 |
Why track peak? We need to know the highest value up to that point to measure the drop.
Step 2: Compute drawdown at each day.
| Day | Value | Peak | Drawdown |
|---|---|---|---|
| 0 | 100000 | 100000 | 0.00% |
| 1 | 105000 | 105000 | 0.00% |
| 2 | 110000 | 110000 | 0.00% |
| 3 | 102000 | 110000 | -7.27% |
| 4 | 98000 | 110000 | -10.91% |
| 5 | 108000 | 110000 | -1.82% |
| 6 | 106000 | 110000 | -3.64% |
Why this step? Each drawdown shows how far we've fallen from the recent peak.
Step 3: Find maximum drawdown.
Result: Max DD = 10.91% (occurred on Day 4).
Connecting CAGR and Max DD
Recall Explain to a 12-Year-Old
Imagine you're growing a plant. CAGR is like asking: "If my plant grew the same amount every year, what would that yearly growth be?" Even if it grew a lot one year and a little another, CAGR smooths it out to one steady number—like finding the average speed for a race.
Max Drawdown is the scariest moment. Maybe your plant was 12 inches tall, then a storm broke it down to 8 inches. That 4-inch drop (33% of 12) is your "maximum drawdown"—the worst damage before it recovered. Even if the plant later grew to 20 inches, you still remember that scary moment at 8 inches. That's what Max DD tracks—the worst scare you had along the way.
Connections
- 6.2.01-Introduction-to-backtesting — Why we need standardized metrics
- 6.2.08-Equity-curve-analysis — Max DD is derived from equity curves
- 6.3.01-Sharpe-ratio-and-risk-adjusted-returns — CAGR/Max-DD leads to Calmar; Sharpe uses volatility instead
- 7.1.04-Position-sizing-and-Kelly-criterion — Max DD informs how much leverage is safe
- 8.2.02-Psychological-trading-discipline — Surviving Max DD requires mental toughness
#flashcards/stock-market
What does CAGR stand for and what question does it answer?
What is the CAGR formula?
Why do we subtract 1 in the CAGR formula?
A portfolio grows from ₹50,000 to ₹80,000 in 2 years. What is the CAGR?
What does Maximum Drawdown measure?
How do you calculate drawdown at time i?
Why is Maximum Drawdown important beyond CAGR?
What is the Calmar Ratio?
What is wrong with averaging annual returns arithmetically instead of using CAGR?
Portfolio values: ₹100k → ₹120k (peak) → ₹90k → ₹110k. What is Max DD?
If a strategy ran for 730 days, how do you convert this to years for CAGR?
True or False: Max DD = 40% means the portfolio lost 40% overall by the end.
Concept Map
Hinglish (regional understanding)
Intuition Hinglish mein samjho
CAGR aur Maximum Drawdown backtesting ke sabse important performance metrics hain. Agar aap ye nahi samjhe toh strategy compare karna impossible hai.
CAGR matlab "compound annual growth rate"—yeh ek smooth yearly return bata hai jo apka portfolio ka actual growth represent kare. Matlab agar apka paisa 3 saal mein ₹1 lakh se ₹1.8 lakh ho gaya, toh CAGR formula se pta chalega ki equivalent steady annual return kya hai. Formula simple hai: (ending value / starting value)^(1/years) - 1. Yeh geometric mean hai, arithmetic mean nahi—kyunki returns compound hote hain, add nahi hote. Isliye CAGR realistic picture deta hai growth ka.
Maximum Drawdown (Max DD) apko bata hai ki strategy chalate waqt sabse bura pal kya tha. Peak se lowest point tak ka percentage drop—yahi Max DD hai. Agar apka portfolio ₹1.1 lakh tak gaya phir ₹98,000 tak gir gaya, toh Max DD approximately 11% hoga. Yeh emotional pain ko measure karta hai. High CAGR acha lagta hai par agar Max DD 60-70% hai toh koi bhi retail investor dar ke bech dega beech mein. Isliye dono metrics saath mein dekhna zaroori hai—CAGR growth bataye aur Max DD bataye kitna risk lena padega.
Ek achi strategy mein CAGR high hota hai aur Max DD controlled rehta hai. Calmar Ratio (CAGR divided by Max DD) isse quantify karta hai—higher Calmar means better risk-adjusted returns. Jab bhi backtest results dekho, sirf CAGR pe mat jao, Max DD bhi zaroor check karo warna live trading mein ghabra jaoge.