This repository investigates the problem of inferring the parameters of a Stochastic Differential Equation (SDE) given discrete-time observations of a single continuous trajectory. Specifically, the project focuses on deriving, implementing and analyzing estimators for the drift (
The OU process is widely used in physics and biology, and its governing SDE is defined over
The research compares two primary approaches to parameter estimation:
Standard discrete-time approximations of the SDE are heavily dependent on the sampling rate
In real-world applications, data is often provided at a fixed sampling rate, making the limit
Unlike classic estimators, these eigenvalue-based estimators are strongly consistent; they converge to the true parameters almost surely as the number of observations
The codebase is implemented in MATLAB. To reproduce the experiments, run the numbered scripts sequentially:
-
01_stationary_distribution.m: Simulates the OU process using the Euler-Maruyama method. It verifies the ergodicity of the solution by comparing the final-time numerical distribution of$10^4$ realizations against the theoretical stationary density$\rho_{\infty}$ . -
02_classic_estimators.m: Computes the classic estimators for$\alpha$ and$\sigma$ across progressively finer sampling rates$\Delta=2^{-i}$ . It outputs convergence plots demonstrating that the estimation error decreases linearly with$\Delta$ . -
03_eigenvalue_estimator_alpha.m: Evaluates the eigenvalue-based estimator for the drift coefficient$\alpha$ assuming$\sigma$ is known. It empirically proves the estimator's independence from$\Delta$ and verifies that the estimator satisfies the Central Limit Theorem (CLT). -
04_eigenvalue_estimators_joint.m: Solves the complex case where both$\alpha$ and$\sigma$ are unknown. It constructs a two-dimensional non-linear system based on the first two eigenfunctions and solves it iteratively usingfsolveover an increasing number of observations.
For full mathematical proofs—including martingale property checks, stationary covariance calculations, and Taylor expansions of the estimator errors—please see the attached Report_SDE_Inference.pdf.