MarketDeck

THE MARKETDECK BRIEF · FIELDNOTES 15 · ORIGINAL DATA

Can a random portfolio beat the Nifty? We ran 20,000 of them

Educational. Historical simulations are not advice; past results do not indicate future results.

Original MarketDeck data: 20,000 random 30-stock portfolios against the NIFTY 50, the limits that flatter them, and why a return means little until it is compared with chance.

By MarketDeck · 7 min read · Published · Updated

INTERACTIVE FIELD GUIDE Sources linked · Widgets labelled when data is simulated

Editorial illustration · not market data

IN ONE MINUTE

01Random 30-stock portfolios: +46.7% to +113.8% (middle 90%), Oct 2023 to Aug 2026.

02The comparison flatters them: equal weight, today’s list, dividends.

03A return means little until it is compared with chance.

Can a random portfolio beat the Nifty?

Yes: over the window we measured, every random portfolio in the middle 90% beat the NIFTY 50 price index, and the typical one beat it by a wide margin. We drew 20,000 portfolios of 30 stocks each, chosen completely at random from one list of 430 companies on the 2026 Nifty 500 list, and measured them from 3 October 2023 to 21 August 2026. That is a recent list applied to the past, so survivorship bias flatters these figures, which are historical samples and not recommendations. In the middle 90% of cases they returned between +46.7% and +113.8%. The median was +75.7%. Over the same dates the NIFTY 50 price index rose +24.10%. [S1]

Before you read anything into that, read the rest of this issue. The comparison is not fair to the NIFTY 50, for reasons we explain below, and the window is only one stretch of a strong market. The point of the experiment is not that random picking works. It is that a return, on its own, tells you very little until you know what chance would have produced.

What did the 20,000 portfolios show?

They showed a wide spread of results from pure chance, centred well above the NIFTY 50. The chart below marks the published figures on an illustrative curve through the five published percentiles; throwing a dart draws a simulated return from that curve, not one of the 20,000 portfolios. The markers show the NIFTY 50, the result of holding all 430 companies in equal amounts, and the median random portfolio.

Illustrative curve through the five published percentiles

Five published percentiles of 20,000 random 30-stock portfolios, 3 Oct 2023 to 21 Aug 2026

The random portfolios were built from today’s companies (the 2026 Nifty 500 list) and measured on dividend-adjusted prices, while the NIFTY 50 figure is a price index without dividends, so part of the gap between them is dividends.

What this shows Real figures from a MarketDeck investigation of 20,000 random equal-weight 30-stock portfolios from 430 companies, 3 October 2023 to 21 August 2026: the 5th percentile was +46.7%, the 25th +62.8%, the median +75.7%, the 75th +90.5% and the 95th +113.8%. Holding all 430 equally returned +77.47%; the NIFTY 50 price index returned +24.10%, below the 5th percentile. Only these figures are measured. The bars are an illustrative curve through the five published percentiles, including both tails, and each thrown dart is drawn from that curve, not from the 20,000 portfolios.

The figures, all over the same window, are these: [S1]

MarketDeck investigation §6 and §4.5 · window 3 Oct 2023 to 21 Aug 2026 · 2026 Nifty 500 list (survivorship bias)
MeasureReturn, 3 Oct 2023 to 21 Aug 2026Per year
Random 30-stock portfolio, 5th percentile+46.7%14.2%
Random 30-stock portfolio, median+75.7%21.6%
Random 30-stock portfolio, 95th percentile+113.8%30.2%
All 430 companies, equal weight, held throughout+77.47%22.02%
Median single company+50.13%15.14%
NIFTY 50 (price index, dividends not included)+24.10%7.78%

Two things stand out. First, the spread is huge: two people picking 30 stocks at random from the same list could have ended almost 70 percentage points apart, with neither showing any skill. Second, the median random portfolio and the equal-weight universe ended very close together. Random picking, on average, simply gave you the list.

Does the number of stocks change the spread?

Yes: the fewer stocks in a random portfolio, the wider the range of outcomes, and the more a single result can mislead. The same investigation repeated the experiment at different portfolio sizes: [S1]

MarketDeck investigation §6 · random equal-weight portfolios of each size · same window and list
Stocks per portfolio5th percentileMedian95th percentileGap between 5th and 95th
10+28.2%+71.0%+146.0%117.8 points
20+40.4%+74.9%+123.4%83.1 points
30+46.7%+75.7%+113.8%67.1 points
50+53.6%+76.5%+104.6%51.0 points
100+61.0%+77.1%+94.6%33.7 points

A 10-stock screen that returned 140% over this window would sound remarkable. Yet random 10-stock portfolios from this list reached +146.0% at the 95th percentile. Small portfolios produce dramatic numbers by chance alone, which is why a short list of picks with a great past return deserves extra suspicion.

Why did random portfolios beat the NIFTY 50 by so much?

Mostly because the comparison is unfair to the index, not because random picking is clever. Four differences explain the gap, and each one pushes the random portfolios up:

  • Equal weight against size weight. Each random portfolio held its stocks in equal amounts. The NIFTY 50 weights by size, so a few very large companies dominate it. When smaller companies rise faster than the largest ones, equal weighting wins. The gap between the equal-weight list (+77.47%) and the NIFTY 50 (+24.10%) is consistent with that, though the other three points below contribute too.
  • A broader list. The 430 companies come from the wider Nifty 500 list, which includes many mid-sized and smaller companies. The NIFTY 50 holds only the largest.
  • Survivorship bias. The list is the Nifty 500 as it stood in 2026, applied back to 2023. Companies that joined after strong rises are in it; companies that fell out after doing badly are not. That flatters every random portfolio, and its size cannot be measured from this data because the companies that left are simply missing. Our issue on survivorship and look-ahead bias explains how this works.
  • Dividends. The NIFTY 50 figure is a price index, so it leaves out dividends. The portfolio figures were measured in August and September 2026 on the prices stored at the time, which the investigation then described as adjusted for dividends; they have not been re-measured since that adjustment was removed. So part of the gap is simply dividends counted on one side and not the other.

The investigation's own conclusion was that almost all of the headline number came from the list and the period, not from any choice of stocks. [S1]

How was this measured?

We used MarketDeck's own stored prices and a simple experiment, measured in late August and early September 2026 and recorded in an internal research note last revised on 16 November 2026. For each of 20,000 trials, 30 companies were drawn at random from the 430 companies on the 2026 Nifty 500 list that had a closing price on both 3 October 2023 and 21 August 2026. Each portfolio gave its stocks equal weight, and its return over the 2.88-year window was recorded. The same was done for portfolios of 10, 20, 50 and 100 stocks. [S1]

The limits, stated plainly:

  1. Today's list. The universe is a recent index list applied to the past, so survivorship bias lifts every figure.
  2. Price index comparison. The NIFTY 50 figure excludes dividends; the portfolio figures were measured on dividend-adjusted prices.
  3. One window. Under three years of mostly rising prices. A falling or sideways period would give a very different picture.
  4. No costs. The figures are simple returns before trading costs and taxes.
  5. The curve in the widget. Only the five published percentiles are measured values. The bars, between them and in both tails, are an illustrative curve through the five published percentiles, not measured data, and each thrown dart comes from that curve.

None of these figures is a MarketDeck strategy result, and none says anything about what will happen next.

What is the lesson for testing an idea?

The lesson is that a return means little until you compare it with what chance would have produced from the same list, over the same dates, with the same rules. If a screen returned 80% over this window, it did about as well as a random portfolio. If it returned 30%, it did worse than nearly all random portfolios, even though it beat the NIFTY 50.

That comparison is what the MarketDeck Research Desk calls the luck check. When you test a rule, the Desk builds 1,000 random portfolios by default from the same list, on the same schedule, with the same number of holdings and the same costs, and shows where your rule sits among them as a percentile, before any other figure. Because the random portfolios share the rule's list and window, they carry the same survivorship bias and the same market regime, so the comparison is fairer than any comparison with an index. [S2]

You can run any of the starter ideas and read the luck check yourself, or ask in plain words after you connect Claude to MarketDeck. Our guides to backtesting a stock strategy without coding and testing momentum in India put this into practice, and the Monte Carlo simulation guide explains why one path is never enough.

What else do readers ask?

These are short answers to the questions readers ask most often about this topic.

Do random portfolios beat the Nifty?

In the window we measured, almost all random equal-weight 30-stock portfolios from one 430-company list beat the NIFTY 50 price index. The portfolios used today’s companies and dividend-adjusted prices, while the NIFTY 50 figure leaves out dividends, so part of the gap is dividends. Equal weighting, a broader list and survivorship bias account for more of it. None of it shows skill, and it may not hold in other periods.

Why compare a strategy with random portfolios?

Because a strong market lifts almost every stock list. Comparing with random portfolios from the same list and dates shows whether the strategy did better than chance.

What is survivorship bias in this experiment?

The list of companies is the 2026 Nifty 500 applied back to 2023, so companies that left the index after doing badly are missing. That pushes every random portfolio's return up.

Is the NIFTY 50 figure a total return?

No. It is the price index, which leaves out dividends. The random portfolios were measured on dividend-adjusted prices, so part of the gap between the two is dividends.

THE EVIDENCE DESK

Sources and scope

Third-party facts are linked to the page we opened. Widgets marked “Illustrative, simulated data” use made-up inputs; real figures name their source and window.

  1. S1 MarketDeck internal research note: screen backtesting investigation, §6 and §4.5 (not published) ↗

    stockproof repository, docs/screen_backtesting_investigation.md, last revised 16 Nov 2026 (commit 4ad048a). Figures copied exactly; measured late Aug to early Sep 2026 on prices then described as dividend-adjusted; not re-measured. The link points to this issue’s method section because the note itself is internal. Opened 2026-11-27.

  2. S2 MarketDeck Research Desk guide ↗

    MarketDeck’s own product page (PR #265). Luck-check defaults (1,000 random portfolios, same list, schedule, holdings and costs), daily run units and access as described there and in the Desk’s own server instructions on 27 Nov 2026. Opened 2026-11-27.

How this issue was made

This is AI-assisted educational writing published by MarketDeck. Sources were opened and widget arithmetic tested during preparation. No named human expert review or professional credential is claimed. Read our editorial standards and limitations.