Python and data for quants
You build a ten-year backtest on the stocks currently in an index.
AdvancedMultiple choice
You build a ten-year backtest on the stocks currently in an index. What bias have you introduced?
- ALook-ahead bias in the timestamps of the price data
- BSurvivorship bias – the failures are missing
- CSelection bias arising from the choice of start date
- DNo bias, provided the prices are adjusted for splits
The worked solution is in Premium
The answer, the full working and the one idea to take away – for this and all 1,322 questions in the bank. Answer it in practice and your working is marked, with a known mistake named when you make one.
Report an issue with this question
Learn the method
Of the kind reported at
More python and data for quants questions
- A backtest computes pnl = signal * returns, where both are indexed by day. What is wrong?Applied · Free solution
- You need the quote in force at the instant of each trade. Which join?Applied · Free solution
- A $100 stock goes ex-dividend by $2.Applied · Premium
- Prices go 100 → 110 → 99. What is the total log return, to five decimals?Applied · Premium
- Building one-minute bars, part 2 of 3Applied · Premium
- A feature is standardised by subtracting its mean and dividing by its standard…Advanced · Premium