I learned very early the difference between knowing the name of something and knowing something.
Richard FeynmanSimulating Geometric Brownian Motion
13 April 2024
I work through a simple Python implementation of geometric Brownian motion and check it against the theoretical model.
1Scaling Factors for Hidden Markov Models
13 August 2022
Inference for hidden Markov models (HMMs) is numerically unstable. A standard approach to resolving this instability is to use scaling factors. I discuss this idea in detail.
2A Python Implementation of the Multivariate Skew Normal
29 December 2020
I needed a Python implementation of the multivariate skew normal. I wrote one based on SciPy's multivariate distributions module.
3For a project, I needed to compute the log PDF of a vector for multiple pairs of mean and variance parameters. I discuss a fast Python implementation.
4A Python Demonstration that Mutual Information Is Symmetric
11 November 2020
I provide a numerical demonstration that the mutual information of two random variables, the observations and latent variables in a Gaussian mixture model, is symmetric.
509 February 2020
Normalizing vectors of log probabilities is a common task in statistical modeling, but it can result in under- or overflow when exponentiating large values. I discuss the log-sum-exp trick for resolving this issue.
6A Python Implementation of the Multivariate t-distribution
20 January 2020
I needed a fast and numerically stable Python implementation of the multivariate t-distribution. I wrote one based on SciPy's multivariate distributions module.
7Naively computing the probability density function for the multivariate normal can be slow and numerically unstable. I work through SciPy's implementation.
8A Practical Implementation of Gaussian Process Regression
12 September 2019
I discuss Rasmussen and Williams's Algorithm 2.1 for an efficient implementation of Gaussian process regression.
9Floating Point Precision with Log Likelihoods
18 January 2019
Computing the log likelihood is a common task in probabilistic machine learning, but it can easily under- or overflow. I discuss one such issue and its resolution.
10