backtesting
17 posts · page 1 of 2
- Quant interview toolkit · sequential testing
The backtest looked significant every time we checked it
Repeatedly testing a strategy and stopping at the first lucky result changes the false-alarm rate. Separate independent-search arithmetic from the harder problem of correlated sequential looks.
- Quant interview toolkit · feature engineering
A stock's score changed without the stock changing
Cross-sectional z-scores depend on every name in the comparison universe. A four-stock example shows how a new outlier can flip a trading threshold, and why the universe must be point-in-time.
- Quant interview toolkit · signal horizons
Your signal predicts tomorrow. Should you hold for a week?
A predictive signal can decay while cumulative expected return keeps rising. Build a simple horizon model, separate signal strength from risk and cost, and avoid a common timestamp mistake.
- Quant interview toolkit · performance measurement
Twenty winning trades and a nearly flat portfolio
A series of strong per-trade returns can barely move an investor's account. Follow the capital denominator, idle periods and compounding to compare trade quality with portfolio performance.
- Quant interview toolkit · forecast evaluation
A trading model can be right 60% of the time and still lose money
A six-out-of-ten hit rate sounds persuasive. Work through the payoff table, transaction costs, and the probability threshold that actually makes a signal worth trading.
- Quant interview toolkit · selection bias
Why the cheapest broker in your test may not be cheap
Two brokers with the same true cost can produce an apparently excellent winner. Derive the selection bias from noisy estimates and design a fair follow-up test.
- Quant interview toolkit · changing regimes
When more data makes a forecast worse
A thousand observations can estimate yesterday's regime precisely and tomorrow's probability badly. Work through the bias-variance tradeoff behind a rolling window.
- Quant interview toolkit · streaks and selection
Ten wins in a row may be ordinary in a long trade log
A specified ten-trade win streak is rare under a fair coin. Searching a thousand trades for one is a different experiment; a small state calculation gives its probability.
- Quant techniques · backtesting
Point-in-time data: what did the backtest know?
Build a historical information set using release timestamps, data vintages, and point-in-time universes to avoid look-ahead and survivorship bias.
- Quant techniques · portfolio construction
Portfolio rebalancing: drift, turnover, and trading costs
Calculate pre-trade weights after market moves, distinguish turnover conventions, and model the cost of restoring portfolio targets.