The Ornstein-Uhlenbeck process is widely used in the stochastic modelling of mean-reverting processes. In the present note, I want to record a derivation I produced for a lecture of the pdf and moments of an Ornstein-Uhlenbeck process exhibiting mean-reversion to zero with a stochastic differential equation (SDE) of the form where and are constants andContinue reading “Ornstein-Uhlenbeck process: derivation and simulation of its pdf and moments”
Author Archives: Dr Christian P. H. Salas
From simple random walk to Wiener process and diffusion equation
For the purposes of a lecture, I wanted a very straightforward mathematical setup leading quickly from a simple random walk to the Wiener process and also to the associated diffusion equation for the Gaussian probability density function (pdf) of the Wiener process. I wanted something simpler than the approach I recorded in a previous postContinue reading “From simple random walk to Wiener process and diffusion equation”
Canonical derivation of the mean and variance of the binomial distribution
The mean and variance of the binomial distribution can be derived most easily using a simple indicator function approach but, in the course of studying a stochastic process involving the binomial distribution, I became interested in deriving the mean and variance from the canonical probability-weighted sum of random variable values. I found it instructive toContinue reading “Canonical derivation of the mean and variance of the binomial distribution”
Using wxdrawdf in MAXIMA to plot a phase portrait with a stable limit cycle
Using standard but slightly laborious methods (involving switching to polar coordinates), the following nonlinear dynamical system can be shown to exhibit an unstable spiral at the origin and a stable limit cycle at : A student contacted me for help after unsuccessfully attempting to plot the phase portrait of this system, showing both the unstableContinue reading “Using wxdrawdf in MAXIMA to plot a phase portrait with a stable limit cycle”
A note on an unusual system of two masses connected by a spring
The usual model of two masses connected by a spring has one of its eigenvalues equal to zero, meaning that the system could be free to move in space rather than being fixed in position. The corresponding eigenvector has components which are equal to each other, meaning that the system would move through space asContinue reading “A note on an unusual system of two masses connected by a spring”
Quadratic B-Spline interpolation of points on a modulus function
I was having a discussion about different approaches for quadratic spline interpolation and I introduced an example involving interpolation of points on a modulus function. This led to a deeper exploration of how altering the knot sequence of a B-Spline interpolation can substantially improve the results. I want to record this here. The question thatContinue reading “Quadratic B-Spline interpolation of points on a modulus function”
Fast Fourier Transform by hand
I record here an experience of manually calculating a Fast Fourier Transform (FFT). Carrying out the computations by hand turned out to be relatively straightforward and quite instructive. A number of different FFT algorithms have been developed and the underlying equations are provided in numerous journal articles and books. I chose to calculate an eight-pointContinue reading “Fast Fourier Transform by hand”
Boolean array indexing and finding multiple zeros of a function at once
The following is a useful coding technique using Boolean array indexing in Python for quickly finding many zeros of a function at once. It avoids having to search for the multiple roots using root-finding functions of various kinds, with inconveniences such as having to identify suitable starting values for the numerical iterations, etc. I willContinue reading “Boolean array indexing and finding multiple zeros of a function at once”
A note on Singular Value Decomposition and Principal Components
Let denote an data matrix, e.g., observations on variables for individuals. In what follows, we assume has been centered at zero, i.e., each element of the original uncentered data matrix has had the mean of its column subtracted from it to form the corresponding element of . If denotes the transpose of , then theContinue reading “A note on Singular Value Decomposition and Principal Components”
Overview of mathematical modelling ideas in single particle quantum mechanics
Quantum mechanical models in three dimensions and involving many particles, etc., use a formalism which is largely based on some key mathematical modelling ideas pertaining to single particle systems. These mathematical modelling ideas are principally designed to tell us what sets of values we are `allowed’ to observe when we measure some aspect of aContinue reading “Overview of mathematical modelling ideas in single particle quantum mechanics”
