💰 Money Vichara · Interactive Learning Tool

Portfolio Rebalancing Simulator

Shannon's Demon
Discover how disciplined rebalancing can generate returns from pure volatility — even when both assets have zero expected return. Explore Claude Shannon's quiet miracle, simulated with Indian market logic.
📐 Shannon's Demon 🎲 Monte Carlo Logic 🇮🇳 Indian Market Assumptions 📖 Interactive Learning
📖
What is Shannon's Demon?
The theory, the math, and why it matters for every investor — click to expand
The Origin

Claude Shannon (1916–2001), the father of information theory, proposed a deceptively simple thought experiment in the 1960s: Can you make money from a stock that has zero expected return?

The answer, which shocked many mathematicians, was yes — through the simple act of rebalancing. Shannon's Demon is not magic, not arbitrage, and not prediction. It is the compounding benefit of repeatedly selling high and buying low, enforced mechanically by maintaining a fixed allocation.

The Classic Setup
Imagine a stock that doubles every good year (+100%) and halves every bad year (−50%). Over two years — one up, one down — the stock returns exactly to its starting price. Net gain: zero. Yet a rebalanced portfolio of 50% stock + 50% cash grows by 12.5% over the same two years.
Year 1 (Up +100%): Stock doubles → Sell some stock, restore 50/50 split
Year 2 (Down −50%): Stock halves → Buy some stock, restore 50/50 split

Result: You sold stock at a high price and bought it back at a low price.
The portfolio grew. The stock went nowhere.
Why It Works: Volatility Harvesting

The key is the asymmetry between arithmetic and geometric returns. A stock that goes +100% and then −50% has an arithmetic average return of +25% per year — yet its geometric (actual compounded) return is 0%.

Rebalancing captures the arithmetic mean while diversification prevents you from suffering the geometric mean of a single volatile asset. This "gap" between arithmetic and geometric returns is called the volatility drag — and rebalancing harvests it.

🎯 The Rebalancing Bonus The extra return generated by disciplined rebalancing over a buy-and-hold (no rebalancing) strategy. It is the quantifiable reward for emotional control.
📊 Volatility Harvesting Shannon's Demon works better when volatility is higher. A more volatile asset creates larger price swings — more opportunities to sell high and buy low.
How to Use This Simulator
  • 1Set your starting portfolio and the number of years to simulate.
  • 2Configure Asset A (the volatile stock): how much does it gain in an up year and lose in a down year? The default (+100%/−50%) is the classic Shannon's Demon setup — zero net return for the stock itself.
  • 3Configure Asset B (stable cash): you can set it to 0% for a pure demonstration, or add a small return (like 4–6%) to simulate a liquid fund or FD.
  • 4Choose the target split — 50/50 is optimal in the pure Shannon case, but you can experiment. Try 60/40 or 70/30 and observe the difference.
  • 5Select a simulation mode: Fixed sequence, random coin flip, or worst-case (down first). Run multiple times in random mode to see statistical patterns emerge.
  • 6Press Run Simulation and compare the rebalanced portfolio vs buy-and-hold. Watch the rebalancing bonus and individual events in the log.
Important Caveats & Real-World Limits

Shannon's Demon is an idealized concept. In real markets, several factors reduce the bonus:

⚠️ Transaction Costs Each rebalance incurs brokerage, STT, and exit loads. Frequent rebalancing can erode the bonus. Annual rebalancing usually captures most of the benefit at lowest cost.
📈 Trending Markets In strongly trending bull markets (like Nifty 2020–2024), not rebalancing often wins short-term. Shannon's Demon shines over long cycles of ups and downs.
💸 Taxes Rebalancing by selling triggers capital gains tax. In India, LTCG (10% above ₹1L) and STCG (15%) can reduce the net bonus significantly. SIP-based rebalancing avoids selling.
🔗 Correlation Matters Shannon's Demon works best when the two assets are uncorrelated or negatively correlated. Equity + Gold in India has historically shown low correlation — ideal for this strategy.
Shannon's Demon in the Indian Context

Indian equity markets (Nifty 50) have historically delivered about 12% CAGR with ~22% annual volatility. Debt (gilt/short-duration funds) deliver ~7% with ~5% volatility. Gold delivers ~9% with ~18% volatility.

A classic 60/40 Equity-Debt portfolio rebalanced annually has historically outperformed a static drift portfolio by 0.5–1.5% per year in Indian markets — this is the rebalancing bonus in practice. Small numbers compound into enormous differences over 20–30 year horizons.

The simulator uses these Indian market assumptions (12%/22% for equity, 7%/5% for debt) in its Monte Carlo random mode, so your results reflect realistic Indian market behaviour.

🧪
Shannon's Demon — Live Sandbox
Configure two assets and watch the rebalancing bonus emerge from pure volatility. Both assets can have zero expected return — yet rebalancing generates profit.
📈 Asset A — Volatile Stock
100%
50%
Default: +100% / −50% → geometric mean return = 0%
💵 Asset B — Stable Cash
0%
50% / 50%
Pure Shannon's Demon: 0% cash return, 50/50 split