Chapter 26 · Data Bias
Why do perfect backtest curves often disappear as soon as trading goes live?
- Skills to practice
- Data validation
- Read first
- Chapter 25 · Backtest
- 3D simulation
- None
Market scene
Lin downloads only assets still trading today and uses each period's final return to choose that period's direction. Results look astonishing. Zhe changes no strategy—he merely restores exited assets and real decision timing. The curve changes immediately.
Your decision
Identify what each operation changes about what was visible then before inspecting the counterexample.
Observe the result
The counterexample fixes notional exposure at 1,000 each period, without compounding or costs. Using only the previous direction gives −200; seeing future direction gives 300. In a separate example, three equal-weight assets return −16.67%; deleting the failed asset that exited at zero produces 25%. The switches change timing and universe respectively.
The mechanism
Look-ahead bias changes information visible at decision time; survivorship bias changes objects selectable then. They may coexist or occur separately. Corrections require event time, publication time, revision version, and historical tradability for every field and asset.
The deliberate faulty demonstration below bypasses the normal backtest engine solely to illustrate bias. It estimates no real delisting returns and includes neither costs nor portfolio compounding. Actual research cannot fill every missing value with zero or simply delete post-exit blanks. Apply then-executable rules and retain uncertainty.
What it is called
Real markets
Chapter 22 protects time boundaries through warm-up and next-bar execution.
Chapter 23 distinguishes generator truth labels from tradable features.
Preregistration in Chapter 20 preserves the research starting point instead of only successful stories.
Hands-on
- Switch future-peeking and survivor deletion separately; never change both at once.
- Record whether each operation changes signals, returns, or denominators.
- Produce a data audit: universe dates, field availability, revisions, exit/missing rules, and total attempts.
Two deliberately constructed synthetic counterexamples. The first uses fixed $1,000 exposure per period and resets direction each period, without compounding or fees. It is neither the holding engine above nor a tradable strategy.
| Synthetic period | Actual price change | Direction chosen in advance (1 long / −1 short / 0 wait) | Period PnL (USD) |
|---|---|---|---|
| 1 | 10.00% | 0 | 0 |
| 2 | -10.00% | 1 | -100 |
| 3 | 10.00% | -1 | -100 |
Total-200 USD.Use only the preceding return; the first period has no history and does not trade.
| Synthetic assets present at the start | Full-period return | Still present at the end |
|---|---|---|
| A | 40.00% | Yes |
| B | 10.00% | Yes |
| C | -100.00% | No |
Showing3 assets; equal-weight return-16.67%。Retain all members present at the time and their exit outcomes.
Course versionV1-docs; sourcep3:bias;Chapter 26 / TRD-BT-002
Records parameters and results at the click only; does not mean the experiment passed.View snapshot to save
Change one variable
Three depths
- FoundationWhy do perfect backtest curves often disappear in live trading?Chapter 26
- AdvancedHow can you construct point-in-time datasets without survivorship bias?Advanced C · Systematic and quantitative trading
- InstitutionalHow can Data Kill block source errors and retrospective revisions?Institutional
Ask whether the asset existed and information was known then before calculating returns.
Build point-in-time data snapshots. Inspect how deduplication, missing values, adjustments, and revisions affect signals.
Continue the project: rebuild universes and historical data vintages.
Audit vendor versions, backfills, and delisting treatments. Reruns must explain result differences; see Advanced B.
Continue the project: rehearse Data Kill and recovery after revisions.
Questions to take away
Chapter self-test
No. One changes signal timing; the other changes the asset universe.
It removes a −100% failure and recalculates the equal-weight average over the remaining assets.
No. The information boundary remains wrong.
No. It fixes period notional, has no compounding or costs, and only illustrates bias.
One idea to take away
Data can mislead: survivorship bias, look-ahead bias, and data snooping can manufacture an attractive curve.
Record this learning session
Read means only that you confirm reading this chapter. Self-tests are your assessments against reference conclusions. Neither certifies mastery or professional level. Each click retains a timestamped local record.
Answer the core question and record a self-assessment
Why do perfect backtest curves often disappear in live trading?
Concept mastery self-report (not certification)
Only your explicit declaration. Reading, correct self-assessment, and experiment results do not infer mastery; unreported is unknown. Revocation restores unknown and removes selected attachments.
Survivorship bias:Not read
Look-ahead bias:Not read
Data snooping:Not read
Data quality:Not read
This chapter's self-report has not been read. No report does not imply mastery.
Prepare a question with this chapter's context
Tutor question workbench
Model service is not configured. Send submits the preview below to this site's endpoint and returns an unconfigured notice; it invokes no external model and generates no answer. Provider, runtime location, and retention remain undecided.
Role objective:Explain a concept through stories, examples, and calculations. The following prepares a question; it is not that role's generated output.
Foundation Chapter 26 · TRD-BT-002 v1.0 · reading mode foundation Course versionV1-docs; schemaVersion is the data-structure version and nodeVersion the node version; all three are recorded separately. Reading mode is not self-reported Level.
Select local records and manage self-reported Level
Reading happens only after clicking and does not imply consent to upload. Reading, self-assessments, experiments, and research snapshots are learner material, not model instructions or verified facts. Do not include keys, identity details, or real account information.
Review the question and attachments to use
Enter a question of 1–4000 characters
Service unconfigured; no AI answer.
Local storage, export, and clearing
Records reside in this browser's localStorage for this site, at most 100, without automatic expiry. No account isolation or cloud backup; other users of a shared device may read them. Edit in one tab: concurrent writes may overwrite. Export promptly. Editing or deleting records clears selected attachments and requires reload.
Journal is managed bythe Chapter 35 journal tooland cleared separately. Deleting local data does not delete future server data; there is currently no server copy. Storage rejection will not be reported as success. Copy this page's preview.