Survivorship Bias in Backtests: A Delisting-Aware Point-in-Time Universe in Python (2026)

Survivorship Bias in Backtests: A Delisting-Aware Point-in-Time Universe in Python (2026)
Building the “survivor-only” universe for January 2006 requires knowing which names still exist in December 2025. That is not a data-quality footnote; it is a selection filter that changes the answer. In a Zenodo preprint (Noguer Alonso, Artificial Intelligence Finance Institute, 2026-07-25), keeping only terminal survivors on a dynamic top-500 US large-cap proxy lifts equal-weighted annualized returns from 10.20% to 13.66%, Sharpe from 0.497 to 0.653, and terminal wealth from $6.95 to $12.89 per dollar. This post measures the bias, names where universes fail, and implements a delisting-aware fix in pure Python.
Survivorship Bias Is Arithmetic, Not Anecdote
Survivorship bias in backtests is computable arithmetic, not a cautionary tale, because filtering a dynamic top-500 US large-cap proxy to terminal survivors raises equal-weighted annualized returns from 10.20% to 13.66% and Sharpe from 0.497 to 0.653 over January 2006 to December 2025, according to the Zenodo preprint by Noguer Alonso, Artificial Intelligence Finance Institute (2026-07-25). The same study shows the distortion is mechanical. Our prescription is therefore engineering, not a better story about the survivors: build the universe from a listing table, book exits at the delist date, and compare the two paths.
The practical cost is that a strategy can look profitable because the panel quietly dropped the names that failed. The implementation is four small pieces: a listing table, an as-of membership function, delisting returns booked at exit, and a side-by-side comparison against the survivor-only result.
The Mechanism: Terminal-Constituent Look-Ahead
The mechanism behind survivorship bias is terminal-constituent look-ahead, where past membership is conditioned on end-of-sample survival and the daily equal-weighted bias equals terminal-nonmember exposure multiplied by the return spread between terminal members and nonmembers, annualizing to 3.06 percentage points and remaining invariant across every exit-subgroup screen in the Zenodo preprint. This identity makes the bias a measurable selection artifact rather than a narrative about bad firms.
The same study reports a measured equal-weighted versus value-weighted contrast: equal-weighted Sharpe inflation is 0.155, while value-weighted Sharpe inflation is 0.051, with a 95% interval of 0.118-0.198 from a paired 20-day circular block bootstrap (Zenodo preprint). The deliberate survivor filter leaves 221 of 500 names at the start of 2006 and a median of 314 across the sample on the 1,387-security dynamic top-500 US large-cap proxy spanning January 2006 to December 2025 (Zenodo preprint).
What the 2026 Evidence Measures
Recent 2026 evidence measures survivorship bias as a large, repeatable backtest distortion, including a 13.66% minus 10.20% equal-weighted annualized return gap on a 1,387-security dynamic top-500 US large-cap proxy from January 2006 to December 2025 in the Zenodo preprint. The magnitudes differ by market and weighting, but the direction is consistent across equity universes and LLM evaluation studies.
- US large-cap proxy. The Zenodo preprint (Noguer Alonso, Artificial Intelligence Finance Institute, 2026-07-25) studies a dynamic top-500 US large-cap proxy, January 2006 to December 2025, 1,387 securities, every exit retained, total returns inclusive of delisting effects. The survivor filter leaves 221 of 500 names at the start of 2006 and a median of 314 across the sample. Equal-weighted annualized return rises 10.20% to 13.66%, Sharpe 0.497 to 0.653, and terminal wealth $6.95 to $12.89 per dollar. The 13.66 − 10.20 = 3.46 percentage point headline gap is arithmetic shown here, not a separately quoted statistic.
- Indian small caps. arXiv 2603.19380 (Harjot Singh Ranse, submitted 2026-03-19) examines NIFTY Smallcap 250, 1,437 stocks, 2016-2025. Survivor-only backtesting overstates annual returns by 4.94 percentage points (23.3%) and Sharpe by 0.097 (9.1%). Turnover is 82.5% over the window: delisted 16.1%, graduated 33.1%, demoted 33.2%. Reconstruction from bhavcopy data is 100% accurate for current constituents and estimated 85-90% historically.
- LLM timing strategies. FINSABER (arXiv 2505.07078) finds that most evaluations of LLM timing strategies use narrow timeframes and limited universes, overstating effectiveness through survivorship and data-snooping bias. Systematic backtests over two decades and 100+ symbols show previously reported LLM advantages deteriorate significantly, and the framework includes delisted stocks and open-source equivalents.
- Reporting gap. Evaluating LLMs in Finance Requires Explicit Bias Consideration (arXiv 2602.14233) identifies five recurring biases — look-ahead, survivorship, narrative, objective, cost — and reports that across 164 papers from 2023-2025 no single bias is discussed in more than 28 percent of studies.
When you evaluate Sharpe improvements, treat them the same way you would treat a deflated Sharpe ratio in Python: a higher value is only meaningful after the selection and testing process is accounted for. The same skepticism applies when you detect backtest overfitting in Python, because survivor-conditioned universes can manufacture apparent edge before any model is fit.
The Placebo Test: The Bias Is Mechanical
The placebo test shows survivorship bias is mechanical, not economic, because rerunning the same experiment on a simulated market with no cross-sectional predictability reproduces and overshoots each headline number in the Zenodo preprint. The distortion therefore comes from terminal-rank selection, meaning no economic story about departed firms can rescue a survivor-conditioned backtest result.
This matters for model evaluation. If a simulated market with no cross-sectional predictability can reproduce the inflated return and Sharpe, then the survivor filter alone is sufficient to create the appearance of performance. The burden moves from “explain why the firms left” to “prove the universe was tradable at each decision time.”
Three Places a Universe Goes Wrong: Selection, Exit, Identifier
A backtest universe goes wrong in three concrete places — selection, exit, and identifier — and each failure can inject look-ahead or missing-loss bias, as documented by the point-in-time selection and disclosure in arXiv 2608.27734, delisting-handling conventions in the Ken French Data Library, and permanent identifiers in CRSP US Stock Databases.
Selection. Membership defined from a today snapshot leaks terminal knowledge. Even careful work can leave residual exposure: arXiv 2608.27734 studies 453 liquid US large caps plus SPY (Tiingo, 2015-2026), re-selects the tradeable set point-in-time as the top 200 by trailing 63-day dollar volume every 21 trading days, and removes universe-selection look-ahead. The constituent list is a fixed current list, so survivorship bias is disclosed and bounded; the paper characterizes it as flattering active strategies, making the null conservative. Eight names delist mid-sample, and a fully delisting-inclusive panel requires commercial data. Building point-in-time fundamentals from SEC EDGAR follows the same as-of discipline on the data side.
Exit. Missing delisting returns silently drop losses. The convention is to use the CRSP delisting return when available and otherwise impute a negative return for performance-related codes; acquisitions, mergers and exchange moves usually pay near or above the last traded price. The Ken French Data Library notes that daily files produced in May 2015 or thereafter drop a stock immediately after its CRSP delist date, while earlier daily files held it until end-of-June reconstitution, and files from May 2015 also exclude a stock once it has no price for more than 200 consecutive trading days.
Identifier. Ticker reuse and name changes break time joins. CRSP US Stock Databases cover daily and monthly market data and corporate actions for more than 36,000 active and inactive securities, and permanent identifiers PERMNO and PERMCO “allow for clean and accurate back testing”. CRSP is a commercial subscription product. Vintage discipline also matters: Does Training on Future Data Pay? Look-Ahead Bias in Forecasting with Pretrained Models (arXiv 2609.20554) states that a forecast comparison must hold the data vintage fixed.
Probe: The SEC’s Current-Ticker File Is a Survivor-Conditioned Snapshot
The SEC’s current-ticker file is a survivor-conditioned snapshot because our 2026-11-25 probe of the public endpoint at company_tickers.json, described in the SEC EDGAR API documentation, returned HTTP 200, 796,151 bytes, and 10,400 tickers containing NVDA and AAPL but zero occurrences of SIVB, FRC, and TWTR. The file represents who is registered today, not who traded in 2021.
The missing tickers are instructive: SVB Financial, First Republic, and Twitter were all delisted in 2022-2023. Their absence is exactly the selection failure described above. Present these numbers as of our 2026-11-25 run; the file updates. This is the same point-in-time caution that applies when assembling point-in-time fundamentals from SEC EDGAR.
curl -sS -D - -o company_tickers.json \
-H "User-Agent: QuantBrainAI research (contact@quantbrainai.net)" \
https://www.sec.gov/files/company_tickers.json
import json
import urllib.request
url = "https://www.sec.gov/files/company_tickers.json"
req = urllib.request.Request(
url, headers={"User-Agent": "QuantBrainAI research (contact@quantbrainai.net)"}
)
with urllib.request.urlopen(req, timeout=30) as resp:
body = resp.read()
status = resp.status
data = json.loads(body)
tickers = {row["ticker"] for row in data.values()}
print(f"status={status} bytes={len(body)} tickers={len(tickers)}")
for t in ["NVDA", "AAPL", "SIVB", "FRC", "TWTR"]:
print(f"{t}: {t in tickers}")
Expected output from our 2026-11-25 run:
status=200 bytes=796151 tickers=10400
NVDA: True
AAPL: True
SIVB: False
FRC: False
TWTR: False
For reference, yfinance is an unofficial open-source wrapper around Yahoo Finance data; this post makes no coverage claims about what it serves.
The Fix in Pure Python: Listings, As-Of Membership, Exit Booking
The fix for survivorship bias in pure Python is a four-part engineering pattern — a listing/delisting table, an as-of membership function, delisting-return booking at exit, and a survivor-versus-aware comparison — that implements the point-in-time universe discipline prescribed by arXiv 2602.14233. The code below uses only the standard library so it runs in any Python environment.
The boundary conventions are explicit: a security is a member from listed_from inclusive through the day before delisted_on exclusive; the delisting return is booked on the delist date; and weights redistribute at the next step. This is the same leakage-control mindset used in walk-forward analysis methodology.
from dataclasses import dataclass
from datetime import date
from typing import Optional
@dataclass(frozen=True)
class Listing:
sid: str
ticker: str
listed_from: date
delisted_on: Optional[date] # None = active
exit_reason: Optional[str] # None | "bankruptcy" | "acquisition"
delist_return: Optional[float]
LISTINGS = [
Listing("S1", "AAA", date(2018, 1, 1), None, None, None),
Listing("S2", "BBB", date(2018, 1, 1), None, None, None),
Listing("S3", "CCC", date(2018, 1, 1), None, None, None),
Listing("S4", "DDD", date(2018, 1, 1), None, None, None),
Listing("S5", "BRK", date(2018, 1, 1), date(2020, 7, 1), "bankruptcy", -1.00),
Listing("S6", "ACQ", date(2018, 1, 1), date(2022, 6, 1), "acquisition", 0.25),
]
def universe_as_of(listings, as_of):
return [
row.sid
for row in listings
if row.listed_from <= as_of and (row.delisted_on is None or as_of < row.delisted_on)
]
# Boundary asserts
assert "S5" in universe_as_of(LISTINGS, date(2020, 6, 30))
assert "S5" not in universe_as_of(LISTINGS, date(2020, 7, 1))
assert "S6" in universe_as_of(LISTINGS, date(2022, 5, 31))
assert "S1" not in universe_as_of(LISTINGS, date(2017, 12, 31))
print(universe_as_of(LISTINGS, date(2020, 7, 1)))
Expected output:
['S1', 'S2', 'S3', 'S4', 'S6']
The Arithmetic Demo: Survivor-Only vs Delisting-Aware
The arithmetic demo shows that survivor-only versus delisting-aware universe construction materially changes results, with the survivor-only path producing terminal wealth 1.4576 and the delisting-aware path producing 1.1288, an overstatement of +29.13% of terminal wealth, in this illustrative arithmetic, not a market result. The gap is caused only by selection and exit handling, not by a different signal.
The per-name annual returns are arbitrary illustrative inputs; only the recorded outputs below are quoted. The survivor-only path keeps only terminal survivors, mirroring the Zenodo filter. The aware path books the bankruptcy exit at -100% and the acquisition at +25%.
| Year | Survivor-only | Delisting-aware |
|---|---|---|
| 2019 | +6.00% | +6.00% |
| 2020 | +4.33% | -21.75% |
| 2021 | +13.00% | +13.00% |
| 2022 | +7.50% | +11.00% |
| 2023 | +8.50% | +8.50% |
| Terminal wealth | 1.4576 | 1.1288 |
| Overstatement | +29.13% of terminal wealth |
from dataclasses import dataclass
from datetime import date
from typing import Optional
@dataclass(frozen=True)
class Listing:
sid: str
listed_from: date
delisted_on: Optional[date]
delist_return: Optional[float]
LISTINGS = [
Listing("S1", date(2018, 1, 1), None, None),
Listing("S2", date(2018, 1, 1), None, None),
Listing("S3", date(2018, 1, 1), None, None),
Listing("S4", date(2018, 1, 1), None, None),
Listing("S5", date(2018, 1, 1), date(2020, 7, 1), -1.00), # bankruptcy
Listing("S6", date(2018, 1, 1), date(2022, 6, 1), 0.25), # acquisition
]
# Illustrative arithmetic inputs, not market results.
RETURNS = {
2019: {"S1": 0.0600, "S2": 0.0600, "S3": 0.0600, "S4": 0.0600, "S5": 0.0600, "S6": 0.0600},
2020: {"S1": 0.0433, "S2": 0.0433, "S3": 0.0433, "S4": 0.0433, "S5": -1.0000, "S6": -0.4782},
2021: {"S1": 0.1300, "S2": 0.1300, "S3": 0.1300, "S4": 0.1300, "S6": 0.1300},
2022: {"S1": 0.0750, "S2": 0.0750, "S3": 0.0750, "S4": 0.0750, "S6": 0.2500},
2023: {"S1": 0.0850, "S2": 0.0850, "S3": 0.0850, "S4": 0.0850},
}
def universe_as_of(listings, as_of):
return [r.sid for r in listings if r.listed_from <= as_of and (r.delisted_on is None or as_of < r.delisted_on)]
def run(years, listings, mode):
terminal = {r.sid for r in listings if r.delisted_on is None}
wealth = 1.0
out = []
for year in years:
as_of = date(year, 1, 1)
members = universe_as_of(listings, as_of)
if mode == "survivor_only":
members = [sid for sid in members if sid in terminal]
year_ret = sum(RETURNS[year][sid] for sid in members) / len(members)
else:
booked = []
for sid in members:
row = next(r for r in listings if r.sid == sid)
if row.delisted_on is not None and row.delisted_on.year == year:
booked.append(row.delist_return)
else:
booked.append(RETURNS[year][sid])
year_ret = sum(booked) / len(booked)
wealth *= (1.0 + year_ret)
out.append((year, year_ret, wealth))
return out
years = [2019, 2020, 2021, 2022, 2023]
surv = run(years, LISTINGS, "survivor_only")
aware = run(years, LISTINGS, "delisting_aware")
print("Year Survivor-only Delisting-aware")
for (y, rs, _), (_, ra, _) in zip(surv, aware):
print(f"{y} {rs:+.2%} {ra:+.2%}")
print(f"Terminal wealth {surv[-1][2]:.4f} {aware[-1][2]:.4f}")
over = surv[-1][2] / aware[-1][2] - 1.0
print(f"Overstatement {over:+.2%} of terminal wealth")
Expected output (illustrative arithmetic, not a market result):
Year Survivor-only Delisting-aware
2019 +6.00% +6.00%
2020 +4.33% -21.75%
2021 +13.00% +13.00%
2022 +7.50% +11.00%
2023 +8.50% +8.50%
Terminal wealth 1.4576 1.1288
Overstatement +29.13% of terminal wealth
Validation Checklist: Audit the Universe Before the Backtest
A validation checklist can audit survivorship bias before a backtest by enforcing a time-indexed tradable universe, booking exits, and reporting delisting outcomes separately, following the Structural Validity Framework prescriptions in arXiv 2602.14233. The goal is to make universe construction auditable before any performance claim is trusted.
- Listings completeness. Every security that ever traded in scope is in the listings table, including inactive names. CRSP US Stock Databases provide more than 36,000 active and inactive securities with PERMNO and PERMCO for this purpose.
- As-of membership. The membership function passes boundary tests: included before delist, excluded on/after delist, excluded before listing.
- Exit booking. Delisting returns are booked at exit. Use the CRSP delisting return when available; otherwise impute a negative return for performance-related codes, consistent with the convention described alongside the Ken French Data Library notes.
- Identifiers and vintage. Identifiers are stable across the sample, and data vintage is held fixed when scoring, as required by arXiv 2609.20554.
- Two-path rerun. Rerun survivor-only versus delisting-aware on the same panel and report the gap.
- Structural Validity Framework prescriptions. Define a time-indexed tradable universe
U_tfor each decision timet, report the fraction of observations from entities that delist within the sample, and report outcome distributions separately for surviving and non-surviving entities (arXiv 2602.14233). - Disclosure when incomplete. If the panel cannot be fully delisting-inclusive, disclose and bound the residual bias. arXiv 2608.27734 provides a concrete model: 453 liquid US large caps plus SPY (Tiingo, 2015-2026), point-in-time top-200 re-selection every 21 trading days by trailing 63-day dollar volume, eight mid-sample delistings, and the statement that a fully delisting-inclusive panel requires commercial data.
Run this audit before model selection, and pair it with leakage controls such as purged k-fold cross-validation in Python, combinatorial purged CV for leak-free backtests, and walk-forward analysis methodology. For further bias-mitigation reading, see the Awesome-Financial-LLM-Bias-Mitigation list.
The Bottom Line
The bottom line is that survivorship bias is measured, mechanical, and removable with a delisting-aware universe, while survivor-conditioned results should be treated as upper bounds, as shown by the 10.20% to 13.66% equal-weighted annualized return gap in the Zenodo preprint. The honest numbers are the delisting-aware ones; when data is incomplete, disclose and bound the residual bias.
Key Takeaways
- A filter keeping only end-2025 members lifts equal-weighted annualized returns from 10.20% to 13.66% and Sharpe from 0.497 to 0.653 on a 1,387-security dynamic top-500 US large-cap proxy.
- The distortion is mechanical: on a simulated market with no cross-sectional predictability, the same experiment reproduces and overshoots each headline number.
- In NIFTY Smallcap 250 (1,437 stocks, 2016-2025), survivor-only backtests overstate annual returns by 4.94 pp (23.3%) and Sharpe by 0.097 (9.1%), against 82.5% index turnover.
- Universes fail in three places — selection, exit, identifier; the SEC’s current-ticker file (10,400 tickers in our 2026-11-25 pull; zero occurrences of SIVB, FRC, TWTR) is itself survivor-conditioned.
- The fix is four artifacts: a listing/delisting table, an as-of membership function, delisting returns booked at exit, and a survivor-vs-aware comparison; in our illustrative six-name demo, the survivor-only path overstates terminal wealth by 29.13%.
- Report what you cannot remove: define
U_tper decision time, report the delisting fraction, and split outcome distributions for surviving vs non-surviving entities.
When a fully delisting-inclusive panel is out of reach, disclose the limitation and state which way it cuts. As characterized in arXiv 2608.27734, residual survivorship bias flatters active strategies, making the null conservative. The placebo result means economic storytelling cannot rescue a survivor-conditioned backtest.
How This Guide Was Built
This guide was built from published research, official documentation, and one ticker-file probe we ran; we did not run a production backtest and we did not buy CRSP data. The evidence base includes peer-reviewed and preprint sources such as the Zenodo preprint, arXiv 2603.19380, arXiv 2505.07078, arXiv 2602.14233, arXiv 2608.27734, and arXiv 2609.20554.
Official documentation referenced in this article includes the SEC EDGAR API documentation, the SEC current-ticker file, the Ken French Data Library, and CRSP US Stock Databases. The only first-person measurement is the public SEC endpoint probe run on 2026-11-25, plus the labeled illustrative arithmetic demo.
FAQ
How much does survivorship bias inflate backtest returns?
Survivorship bias inflation depends on universe and weighting, but measured examples are large: the Zenodo preprint shows an equal-weighted annualized return gap of 13.66% versus 10.20%, plus a separate exact identity whose annualization is 3.06 percentage points, with Sharpe inflation 0.155 equal-weighted and 0.051 value-weighted. arXiv 2603.19380 reports +4.94 percentage points (23.3%) return and +0.097 (9.1%) Sharpe overstatement for NIFTY Smallcap 250.
Can I fix survivorship bias with free data?
Free data can reduce some risk, but full delisting-inclusive coverage is harder. Our 2026-11-25 probe shows the SEC current-ticker file is survivor-conditioned. arXiv 2603.19380 reconstructed NIFTY from bhavcopy data with 100% accuracy for current constituents and estimated 85-90% historically. arXiv 2608.27734 states a fully delisting-inclusive US panel requires commercial data, and CRSP is a commercial subscription product.
What return should I book when a stock is delisted?
When a stock is delisted, use the CRSP delisting return when available; otherwise impute a negative return for performance-related codes, while acquisitions, mergers, and exchange moves usually pay near or above the last traded price. This convention is consistent with the delisting-handling context around CRSP and the Ken French Data Library. This post quotes no specific average delisting return because none is provided by its sources.
Is survivorship bias the same as look-ahead bias?
Survivorship bias is not the same as look-ahead bias: survivorship is a cross-sectional selection leak about who is in the panel, while look-ahead bias is a temporal leak about what is knowable at time t. Both appear among the five recurring biases in arXiv 2602.14233, and vintage discipline requires holding the data vintage fixed when scoring forecasts per arXiv 2609.20554.
How do I audit an existing backtest quickly?
A quick survivorship audit checks whether the panel contains only terminal survivors, compares delisting counts against the listings table, and reruns the strategy survivor-only versus delisting-aware. Report the delisting fraction and split outcome distributions for surviving and non-surviving entities as prescribed by arXiv 2602.14233. If the edge collapses when exits are booked, the result is consistent with the mechanical placebo pattern in the Zenodo preprint.
← Back to all posts

