statistics
34 posts · page 3 of 4
- Quant interview toolkit · quantile forecasts
Which percentile belongs in a latency budget?
Derive the forecast that minimizes asymmetric timing costs, compute pinball loss by hand, and see why coverage alone can miss a costly forecast.
- Quant interview toolkit · order statistics
Five serial numbers and a missing ledger
Estimate a ledger's size from its largest sampled ID, derive the bias correction with empty gaps, and invert an exact counting probability for an upper bound.
- Quant interview toolkit · numerical statistics
A one-pass variance you can merge across machines
Derive Welford's update from a moving mean, merge two shard summaries by hand, and diagnose a zero variance caused by floating-point cancellation.
- Quant techniques · market microstructure
Covariance when assets trade at different times
Use the Hayashi–Yoshida estimator to combine overlapping return intervals without forcing trades onto a common clock.
- Quant techniques · resampling
Bootstrapping time series: why you resample blocks, not days
The ordinary bootstrap assumes your observations are independent. Daily returns of a trend-following or carry strategy often aren’t, and shuffling days throws that dependence away, so error bars come out too narrow. The moving-block bootstrap keeps it. How much the naive version understates, and how to pick a block length.
- Quant techniques · pairs trading
Correlated or cointegrated? Spurious regression and the Engle–Granger test
Regress one random walk on another, unrelated one, and you get a “significant” slope about 90% of the time. Prices that really belong together are cointegrated: some combination of them is stationary. The two-step Engle–Granger test tells the cases apart, if you use the right critical values.
- Quant techniques · portfolio construction
Why your covariance matrix is lying, and how shrinkage fixes it
With 100 stocks and a year of data, the sample covariance matrix makes the minimum-variance portfolio look 23% safer than the best possible and actually be 29% riskier. Marchenko–Pastur explains the noise; Ledoit–Wolf shrinkage cleans most of it up with one formula.
- Quant techniques · risk management
Extreme-value theory for market risk: peaks over threshold
Fit a generalized Pareto tail to losses beyond a high threshold, extrapolate VaR and expected shortfall, and understand the threshold and dependence risks.
- Quant techniques · signal research
Skill times the square root of breadth: the fundamental law
Grinold’s fundamental law says a strategy’s information ratio is about IC × √breadth. A signal that explains 0.04% of return variance can still run at an IR of 1.5 if you apply it to enough independent bets. Here is where the law comes from, and where it breaks.
- Quant techniques · market microstructure
Hawkes processes: why order flow comes in bursts
A self-exciting point process turns clustered trades into a model. Derive its stability condition, branching interpretation, and the limits of using it for market activity.