Statistical Factor Modeling
Statistical Factor Modeling
By Dr. Adrian Letchford · Dec 9, 2025 · 29 min read
This article explores using data to uncover latent streams of returns, otherwise known as factors. We jump into the world of rotations to make sense of the factors and show how to ensure stability when used for real-world trading.
A Quant's Guide to Covariance Matrix Estimation
A Quant's Guide to Covariance Matrix Estimation
By Dr. Adrian Letchford · Aug 2, 2025 · 12 min read
In this article, we explore three techniques to improve covariance matrix estimation: evaluating estimates independently of backtests, decoupling variance and correlation, and applying shrinkage for more robust outputs.
Replicating Pandas exponentially weighted variance
Replicating Pandas exponentially weighted variance
By Dr. Adrian Letchford · Sep 17, 2024 · 7 min read
Learn why calculating an exponentially weighted variance doesn’t yield a correct estimation of variance.
Wiener-Khinchin theorem and Gaussian processes
Wiener-Khinchin theorem and Gaussian processes
By Dr. Adrian Letchford · Nov 11, 2023 · 3 min read
There’s a magical little theorem that links a power spectral density to the autocovariance function. You can use this to quickly estimate a Gaussian process of a periodic time series.
Intro to Black-Scholes, implied volatility and hedging
Intro to Black-Scholes, implied volatility and hedging
By Dr. Adrian Letchford · Aug 26, 2023 · 18 min read
A break down of how the Black-Scholes option pricing model works, what implied volatility is and how you can use the model to hedge risks.
Square root of a portfolio covariance matrix
Square root of a portfolio covariance matrix
By Dr. Adrian Letchford · Jul 27, 2023 · 4 min read
The square root of your portfolio’s covariance matrix gives you a powerful way of understanding where your portfolio variance is coming from. Here I show how to calculate the square root and provide an interactive example to explore how it works.
Recursive least-squares linear regression
Recursive least-squares linear regression
By Dr. Adrian Letchford · Jul 22, 2023 · 7 min read
Rather than recalculating a least–squares model on each new data point, you can simply update the fitted coefficients. This saves you computational time and allows you to place greater emphasis on recent data.
Moments of the Gaussian distribution
Moments of the Gaussian distribution
By Dr. Adrian Letchford · Apr 1, 2023 · 3 min read
A reference page listing the moments of a Guassian distribution and shows how to derive co-moments.
Estimating the half-life of a time series
Estimating the half-life of a time series
By Dr. Adrian Letchford · Mar 18, 2023 · 1 min read
The half-life of a stationary series can be estimated with a linear regression. These notes show the derivation of the half-life from the regression coefficients.
Why Returns Are Not Gaussian
Why Returns Are Not Gaussian
By Dr. Adrian Letchford · Mar 12, 2023 · 10 min read
Using the method of moments and building a compound distribution you can demonstrate some of the stylized facts of returns.
Fast Gaussian Kernel fit for Support Vector Regression
Fast Gaussian Kernel fit for Support Vector Regression
By Dr. Adrian Letchford · Jan 7, 2016 · 19 min read
Support vector regression models transform input vectors into a high number of dimensions where the regression problem becomes linear. This new space is defined by a kernel function. A major drawback of these models is that they are slow to fit the kernel parameters. Here I develop an algorithm to quickly fit the Gaussian kernel’s bandwidth parameter. This algorithm is fast, robust on some datasets, and has a similar fit to slower and more exhaustive methods.
Choosing the Gaussian Kernel's Bandwidth
Choosing the Gaussian Kernel's Bandwidth
By Dr. Adrian Letchford · Aug 6, 2015 · 27 min read
I created two algorithms that quickly optimise the bandwidth parameter for a Gaussian kernel. These algorithms only operate on the independent variables of a modelling task. This means they can be used regardless of the chosen kernel machine model and modelling task.