Market data is a time series: values attached to timestamps, in order, with gaps for weekends and holidays. pandas is the standard Python tool for it, and most of a quant researcher's day is spent turning prices into returns, returns into rolling statistics, and statistics into signals. This lesson covers the operations that matter most and the one mistake that turns an honest backtest into fiction.
| Term | Meaning |
|---|---|
| index | The timestamps a Series or DataFrame is labelled with |
| return | The proportional change |
| rolling window | A statistic computed over the last observations, recomputed each day |
| EWMA | Exponentially weighted moving average: recent data weighted more |
| resample | Change frequency, for example daily prices to weekly prices |
| look-ahead bias | Using information that wasn't available at the time of the decision |
The rest of this lesson needs lifetime access
It will be part of lifetime access, which is coming soon: every lesson in all four tracks, including lessons added later, for one payment.
See pricing
Already have access? Sign in

