Connecting to market data...
5

Level 5 of 7

Portfolio Management

Build and manage portfolios that balance return objectives with risk constraints.

15 hours4 modules

Learning Objectives

  • Apply Modern Portfolio Theory to construct efficient portfolios
  • Determine optimal position sizes using Kelly Criterion and fractional Kelly
  • Implement risk parity strategies for balanced risk allocation
  • Manage drawdowns through systematic risk control mechanisms
  • Design risk budgeting and factor-based allocation frameworks across asset classes
  • Identify and mitigate behavioral biases in systematic trading strategies
1

Modern Portfolio Theory

2.5h · 5 topics

Construct optimal portfolios using Markowitz mean-variance optimization.

Efficient frontierMean-variance optimizationCapital market lineMaximum Sharpe portfolioPortfolio constraints

Modern Portfolio Theory (MPT), introduced by Harry Markowitz in 1952, provides the mathematical foundation for portfolio construction. While MPT has known limitations, understanding it is essential — most subsequent portfolio techniques are either extensions of or reactions to the Markowitz framework.

At its core, MPT solves the optimization problem: find portfolio weights that minimize variance for a target expected return. The input estimates are: expected returns (m), variances (s^2), and covariances (p) between all pairs of assets. The output is a set of portfolio weights defining the efficient frontier — the set of portfolios that dominate all others in risk-return space.

The efficient frontier has two key properties: it is concave (diminishing returns to risk), and every portfolio on it is optimal in the sense that no other portfolio offers higher return for the same risk. The minimum variance portfolio sits at the leftmost point. The maximum Sharpe ratio portfolio sits at the tangent point where the capital market line from the risk-free rate touches the frontier.

In the Indian context, constructing the efficient frontier with Nifty 50 stocks reveals important patterns. IT stocks (TCS, Infosys) tend to cluster with moderate risk and moderate returns. Banking stocks (HDFC Bank, ICICI, SBI) offer higher returns but with higher risk and correlation to each other. Defensive stocks (HUL, Nestle) offer lower risk but also lower expected returns. The efficient frontier using these stocks will typically favor a mix that excludes highly correlated peers — you would not hold both HDFC Bank and ICICI Bank in optimal weights as they offer similar risk-return profiles.

Estimation error is the Achilles' heel of MPT. The optimizer is extremely sensitive to inputs — a small change in expected return estimates can dramatically change portfolio weights. This is why naive diversification (equal weighting) often outperforms optimized portfolios out of sample despite being theoretically suboptimal. This phenomenon is called the Markowitz paradox.

Several approaches address estimation error. The Black-Litterman model starts with market capitalization weights (implied equilibrium returns) and adjusts based on the investor's specific views. Shrinkage estimation pulls extreme covariance estimates toward a structured estimator. Resampled efficiency (Michaud's approach) averages the efficient frontier across many bootstrap samples. Bayesian approaches incorporate prior beliefs about parameters.

Practical MPT implementation for Indian quants: use rolling 3-year windows for covariance estimation (capturing current relationships without being too noisy), apply a shrinkage estimator (50% sample covariance, 50% constant correlation), impose maximum weight constraints of 10% per stock (preventing concentration), and rebalance monthly. Even with these modifications, MPT portfolios should be viewed as a starting point for asset allocation rather than a precise prescription.

The maximum diversification portfolio — which maximizes the ratio of weighted average volatility to portfolio volatility — is a useful alternative to mean-variance optimization that avoids the problematic expected return estimation. This approach is particularly popular for factor-based strategies where the goal is to harvest risk premiums rather than predict returns.

2

Position Sizing

2.5h · 6 topics

Determine optimal position sizes using mathematical frameworks that balance growth and risk.

Kelly CriterionFractional KellyFixed fractional position sizingVolatility-based sizingPortfolio heatConcentration limits

Position sizing answers the crucial question: how much should you bet on each trading opportunity? The math of position sizing is surprisingly powerful — two traders can use the same strategy but achieve completely different results based solely on how they size positions.

The Kelly Criterion, developed by John Kelly at Bell Labs in 1956, provides the theoretical optimal bet size for maximizing long-run growth: f* = (bp - q)/b, where f* is the fraction of capital to bet, p is the probability of winning, q = 1-p is the probability of losing, and b is the odds received (profit per rupee wagered). For a strategy with 60% win rate and 1:1 risk-reward: f* = (1 x 0.6 - 0.4)/1 = 0.2, meaning bet 20% of capital on each trade.

Full Kelly maximizes growth but at a cost: enormous volatility. A typical Kelly strategy experiences drawdowns of 30-70%, which most traders cannot withstand. This is why fractional Kelly — typically 25% (quarter-Kelly) or 50% (half-Kelly) — is the standard in practice. Half-Kelly retains 75% of the growth rate but with half the volatility and much lower drawdowns.

For practical quant trading, fixed fractional position sizing is the standard approach: risk no more than 1-2% of portfolio equity on any single trade. If your stop-loss is 5% below entry, and you want to risk 1% of a Rs 10,00,000 portfolio, the position size = (1% x 10,00,000) / 5% = Rs 2,00,000. This approach naturally adjusts for volatility — wider stops mean smaller positions.

Volatility-based sizing uses the inverse of volatility to determine position size. A common method: position_size = portfolio_equity x risk_per_trade / (entry_price x ATR_multiple). During high volatility (VIX above 20), ATR increases and position sizes shrink. During low volatility, sizes increase. This creates a natural risk management mechanism without manual intervention.

Portfolio heat — the sum of all position sizes as a percentage of portfolio equity — is a critical risk limit. A common rule: maximum portfolio heat of 200% for long-short strategies (100% long, 100% short). For long-only, 100% maximum. Higher heat means more leverage and more risk. Correlation between positions matters — holding 10 positions of 10% each in banking stocks is effectively concentrated more than 50% in banking.

In Indian markets, position sizing must account for specific constraints. The NSE's circuit breaker rules (2-20% price bands depending on stock liquidity) can prevent exit during extreme moves. The minimum lot size for derivatives (75 for Nifty, 25 for Bank Nifty as of 2026) means smaller portfolios may not be able to precisely size futures positions. PL (Profit/Loss) per lot of Nifty futures at Rs 75 per point means a 100-point move changes position value by Rs 7,500 — significant for a Rs 5,00,000 portfolio.

The optimal position sizing framework combines several rules: never risk more than 1% per trade (fixed fractional), reduce size when recent drawdowns exceed 10% (drawdown-based reduction), increase size when the strategy's win rate exceeds a threshold (adaptive Kelly), and never exceed maximum portfolio heat of 150%. This multi-layered approach ensures consistent growth while preventing catastrophic losses.

3

Risk Parity

2.5h · 5 topics

Allocate risk equally across portfolio components instead of capital equally.

Risk budgetingEqual risk contributionLeverage parityInverse volatility weightingRisk factor decomposition

Risk parity represents a fundamental shift in portfolio construction philosophy. Instead of allocating capital equally (naive diversification) or optimizing for expected return (MPT), risk parity focuses on equalizing the risk contribution of each portfolio component. The core insight: in a traditional 60/30/10 portfolio (equity/bonds/gold), equity may account for 90%+ of the total risk despite being only 60% of capital.

Equal risk contribution (ERC) is the most common risk parity implementation. The algorithm finds weights such that each asset's marginal contribution to portfolio risk is equal. Mathematically: weight_i x (Sw)_i = constant for all i, where (Sw)_i is the i-th row of the covariance matrix times the weight vector. This typically results in lower weights for high-volatility assets and higher weights for low-volatility assets.

In practice, risk parity in Indian markets might look very different from traditional allocation. Instead of 60% Nifty/40% G-Secs, a risk parity approach might yield: 25% Nifty, 50% G-Secs, 15% Gold, 10% Cash. Despite the dramatically lower equity allocation, the risk contribution might be approximately equal across all four components. This portfolio would have significantly lower drawdowns than the 60/40 portfolio.

Leverage parity extends the concept: apply moderate leverage to low-risk assets to match the risk contribution of higher-risk assets. If bonds have one-third the volatility of equities, a risk parity fund might use 3:1 leverage on its bond allocation. This creates a portfolio that has the same expected volatility as a 60/40 equity/bond portfolio but with better diversification. This approach is the foundation of Bridgewater's All Weather strategy and is emulated by many Indian multi-asset funds.

Inverse volatility weighting is a simple approximation: weight_i = (1/s_i) / sum(1/s_j). This captures the core risk parity intuition — lower volatility assets get higher weights — without the complexity of full covariance estimation. It works well when correlations are reasonably stable and not too extreme.

Risk factor decomposition reveals that traditional asset class labels mask underlying risk exposures. A portfolio that is 60% Nifty and 40% G-Secs is not simply "60% stocks, 40% bonds" — it has approximately 60% exposure to the equity risk factor, 30% to the interest rate factor, 5% to the currency factor (through FII exposure), and 5% to the volatility factor. Risk parity at the factor level — equalizing contributions of equity, rates, currency, and vol — is more sophisticated than asset-level risk parity.

For Indian quant strategies, risk parity is particularly relevant. The high volatility of Indian equities (15-18% annualized) means they dominate traditional portfolios. Adding gold, which has comparable long-term returns but lower correlation, and high-quality bonds creates a smoother equity curve. During the 2020 COVID crash, a risk parity portfolio with 25% Nifty, 50% bonds, 15% gold, 10% cash would have fallen perhaps 15% versus the Nifty's 40% crash — yet captured most of the subsequent recovery.

Implementation considerations for Indian risk parity: G-Secs may require institutional access for efficient execution; Gold ETFs have expense ratios of 0.5-1%; corporate bonds present credit risk that nullifies the parity logic during stress; and rebalancing frequency (monthly vs quarterly) significantly affects performance due to momentum in risk contributions.

4

Drawdown Management

2.5h · 6 topics

Understand, measure, and control drawdowns — the primary risk for systematic strategies.

Drawdown measurementMax drawdownDrawdown durationRecovery factorEquity curve managementCircuit breakers

Drawdown is the experience of watching your portfolio decline from a peak. It is the most painful aspect of trading and the primary reason strategies fail — not because the math doesn't work, but because traders cannot withstand the psychological pressure of a deep drawdown. Understanding and managing drawdowns is therefore essential for long-term success.

Maximum drawdown (MDD) is the largest peak-to-trough decline. If your portfolio reaches Rs 12,00,000, falls to Rs 8,00,000, then recovers to Rs 15,00,000, the MDD is (12,00,000 - 8,00,000)/12,00,000 = 33.3%. A 33% drawdown requires a 50% gain just to break even — this asymmetry (a 50% loss needs a 100% gain) is the brutal math of drawdowns.

Drawdown duration adds a time dimension. A 20% drawdown that recovers in 2 months is uncomfortable. A 20% drawdown that lasts 18 months is devastating — most strategies and traders abandon ship long before the recovery. Historical drawdown durations for the Nifty 50: the 2008 crisis drawdown lasted approximately 22 months from peak (Jan 2008) to recovery (Oct 2009). The COVID drawdown lasted just 6 months (Feb-Aug 2020). Long-duration drawdowns kill more strategies than deep ones.

The Calmar ratio (CAGR/max drawdown) combines these concepts. A Calmar ratio above 1 is considered good — the strategy earns back its worst drawdown within a year. Above 2 is excellent. Most long-only Indian equity funds have Calmar ratios of 0.3-0.6 due to the frequent 20-30% drawdowns in Indian markets.

Equity curve management is the systematic approach to drawdown control. The core idea: reduce exposure when the strategy is in a drawdown, and increase exposure when it's recovered. A simple rule: if current drawdown exceeds 10%, reduce all position sizes by 20%. If it exceeds 20%, reduce by 50%. This automatically tightens risk precisely when the strategy is performing worst — counterintuitive but mathematically optimal for long-run survival.

Circuit breakers — hard limits on trading — are essential for preventing catastrophic losses. Key circuit breakers: daily maximum loss per day (e.g., 3% of portfolio, stop all trading for the day); weekly maximum loss per week (e.g., 5%, reduce to 50% size for rest of week); monthly maximum loss per month (e.g., 10%, stop trading for rest of month); peak-to-trough maximum drawdown (e.g., 25%, stop all trading until strategy review).

In Indian markets, specific drawdown risks include: gap openings where Nifty gaps 3-5% overnight on global news (making intraday risk management impossible), circuit breaker halts on individual stocks that prevent exit, and the tendency for drawdowns to cluster — several losing months in a row is common rather than exceptional.

The recovery factor = total net profit / max drawdown. If a strategy generates Rs 5,00,000 over its history with an MDD of Rs 2,00,000, the recovery factor is 2.5. Strategies with recovery factors above 3 are attractive; below 1.5 means the strategy's lifetime gains are smaller than its worst peak-to-trough decline, which is psychologically and economically challenging.

For drawdown management in portfolios with multiple strategies, correlation between strategy drawdowns is critical. If all your strategies draw down simultaneously, portfolio-level drawdowns are severe. Diversifying across strategies with low drawdown correlation — for instance, combining a momentum trend strategy with a mean reversion strategy and a carry premium strategy — creates a smoother portfolio equity curve.

Ready to Compete?

Apply what you have learned in the QuantX competition. Submit your strategies, climb the leaderboard, and build your Quanta Score.

Enter Competition