strateva.

Articles

Survivorship bias and the universe you picked with hindsight

In this article

You want to test a stock strategy. You download prices for the S&P 500 members, or your favourite index, go back fifteen years and run the backtest. It looks good.

There's a problem you can't see in the code: those are the companies in the index today. The ones that went bust, were taken over or fell far enough to drop out aren't on your list. Your backtest started the race already knowing who would finish.

That's survivorship bias. This article explains where it comes from, how much it can inflate a result and what to do about it.

What it is, in one sentence

Survivorship bias appears when the set of assets you test (the universe) is chosen with information you didn't have on the backtest date. The classic case: using only the ones that still exist today.

No bad intent is needed. Some free data sources only carry assets that trade now; the ones that stopped trading simply aren't there.

An experiment with no edge at all

To see the effect on its own, we ran our own illustrative simulation (script sim_supervivencia.py, seed 20261116; full parameters at the end):

  • 500 made-up stocks over about 10 years, moving completely at random. None has an edge: on average they neither gain nor lose.
  • If a stock falls 80%, we treat it as gone (bankrupt or delisted). Being generous, we assume it's sold at that price rather than at zero.
  • Portfolio A buys all 500 at the start, in equal amounts, and holds them. That's what you could actually have done.
  • Portfolio B buys only the ones still alive at the end. That's what you do when you pick the universe from today's list.

Average result over 200 runs:

Annual return (CAGR)
A: all stocks, including those that vanished0.01% (essentially zero)
B: survivors only4.24%

In this simulation, on average 39% of the stocks vanish. That's high because the made-up stocks are very volatile, but the mechanism is the same with milder numbers: 4.24 points a year that don't exist, produced purely by removing the losers. Portfolio B came out positive in every single run (between 2.80% and 5.93% a year in the middle 90%), even though no stock had an edge.

Why no other test fixes it

Survivorship bias lives in the input data, not in the strategy. So:

  • Walk-forward doesn't fix it. If the stocks were picked because they're today's winners, every test window inherits that information. See our article on walk-forward.
  • A benchmark built from the same universe doesn't fully fix it either: it inflates the strategy and the reference alike. Comparing the two reduces the problem but doesn't remove it (more on that below), and it can't tell you how much you'd have made.
  • More years of history make it worse: the further back you go with today's list, the more vanished companies you're missing.

Less obvious versions

  • Picking the universe by how it did. "The 20 biggest tech stocks", "the best performers of the last ten years", "the top 20 cryptocurrencies". If the list is today's, the filter already contains the result.
  • ETFs that exist today. Testing a sector-ETF rotation with only the funds still open leaves out those closed for lack of interest, sometimes after doing badly.
  • Spot crypto. Some coins that were once among the largest later lost almost all their value or stopped trading. A backtest on today's large coins repeats the problem.
  • FX. The risk is lower here, because the major pairs are stable, but it shows up if you keep only the pairs that "move nicely" today.
  • Index entry dates. A company that joined the index in 2020 shouldn't be in your 2012 universe, even if it's a member today.

Both our cases state it

Our own published cases carry this bias, and we say so:

  • RF100 uses a fixed universe of 20 US and European stocks. Its documentation states that it deliberately keeps survivorship and universe-selection bias, with no delisted companies and no historical index membership.
  • EWMA63 starts from 200 US stocks that exist today. Its report lists this as an open limitation: it inflates the buy-and-hold reference by construction. That's why the conclusion of that case rests on a comparison with a control built from the same stocks, not on the absolute return. Even so, that comparison isn't entirely clean either, for the reason below.

What you can't do with a universe like that is present the return as "what you would have made". Comparing two ideas on the same universe is less biased, but it isn't a clean comparison: survivorship bias doesn't hit every rule equally. A rule that buys the stocks that have fallen most (mean reversion), for example, benefits especially from a universe with no bankruptcies, because the falls that ended in bankruptcy aren't there. Compare that rule with one that buys the biggest risers and part of the difference may come from the universe, not the idea. The honest framing is that the absolute level is inflated and the difference between rules may be too.

Picking the stocks that exist today already looks like a strategyBuying and holding the 200 stocks of today’s EWMA63 universe multiplies capital by 36.8; SPY, by 9.2. Only 120 of the 200 were already listed in 2010. The gap is not survivorship alone: equal weights and the choice of universe count too.
×1×2×5×10×202012201620202024
  • Today’s 200 stocks ×36.8
  • SPY ×9.2

Source: monthly returns from the public EWMA63 repository, net of 10 bps (197 months, 2010–2026).

How to reduce it

  • Use data that includes delisted companies, with their last price and reason for leaving. Some providers offer this.
  • Use point-in-time index membership: at each date, only the companies that were in the index then.
  • Define the universe with a rule you could have applied at the time, such as "the 100 largest by market cap at each month-end", not "today's 100 largest".
  • If you can't do any of that, say so, and don't present the absolute return as representative. Compare within the same universe, knowing that this reduces the bias but doesn't remove it.

What to ask when someone shows you a backtest

  • How were the assets chosen, and as of what date?
  • Does the data include companies or coins that stopped trading?
  • Is the index membership as of each date, or today's?
  • Does the market comparison use the same universe?

If nobody can answer the first question, assume the universe is today's.

Where it fits in a validation

Our validation can assess where the asset universe comes from and grade the survivorship-bias risk according to the declared source. When the universe is today's, the report says so and limits what can be concluded, instead of taking the absolute return at face value.

These checks are part of a quantitative validation. Strateva validates stock, ETF, spot crypto and spot FX strategies, always unleveraged and without margin. We do not take work on CFDs, futures, perpetuals or options.

To check whether it fits, email stan@strateva.ai with the market (stocks, ETFs, crypto or FX, spot only), frequency and how you currently choose the assets in your strategy. Please don't send private code or passwords in a first message.


Educational and research content. Not investment advice. The simulation is our own and illustrative (script sim_supervivencia.py): 500 made-up stocks with normal daily simple returns of mean 0 and standard deviation 2.5%, 2,520 sessions (about 10 years), removal on falling to 20% of the starting price (sold at that price), no costs or dividends, 200 runs, seed 20261116 (numpy default_rng). CAGR = final value^(1/10) − 1. RF100 facts come from its public repository and EWMA63 facts from its published report.

Related cases

RF100 — Can a Random Forest beat simple momentum?EWMA63 — Does beta selection add value beyond de-risking?

All articles

CONTACT

Tell me about your strategy. I will say whether it fits within 48 business hours.

Tell me what you want checked, the asset, the frequency and what you have: rules, a report or code. I will tell you whether it fits and which plan it would be.

What to include in your email

  • Market, instruments and frequency (Spot only).
  • What you want checked, and the period.
  • Language and approximate code size, without pasting the code.
  • What data you have, and whether you need an NDA.

Do not send private code, keys or passwords.

stan@strateva.ai

Reply within 48 h (business days). No private material in the first message. No obligation to commission work.

Who replies

I am Filip Stanciu. I have an MSc in Quantitative Finance from the University of Alcalá, a degree in Finance from the Complutense University of Madrid, and a MiFID II certificate. I have worked in quantitative research for an asset manager, validating stock and ETF strategies. I read and reply to every email myself.

I am not a certification body and I am not a large team. I am one person, and I say so.

Nicolae Filip Stanciu