In statistics, the Matérn covariance (named after the Swedish forestry statistician Bertil Matérn) is a covariance function used in spatial statistics, geostatistics, machine learning, image analysis, and other applications of multivariate statistical analysis on metric spaces. It is commonly used to define the statistical covariance between measurements made at two points that are d units distant from each other. Since the covariance only depends on distances between points, it is stationary. If the distance is Euclidean distance, the Matérn covariance is also isotropic.
The Matérn covariance between two points separated by d distance units is given by 
where is the gamma function, is the modified Bessel function of the second kind, and ρ and ν are non-negative parameters of the covariance.
A Gaussian process with Matérn covariance has sample paths that are times differentiable.
Simplification for specific values of ν
Simplification for ν half integer
When , the Matérn covariance can be written as a product of an exponential and a polynomial of order :
- for : ,
- for : ,
- for : .
The Gaussian case in the limit of infinite ν
As , the Matérn covariance converges to the squared exponential covariance function
Taylor series at zero and spectral moments
The behavior for can be obtained by the following Taylor series:
When defined, the following spectral moments can be derived from the Taylor series:
- ^ Minasny, B.; McBratney, A. B. (2005). "The Matérn function as a general model for soil variograms". Geoderma. 128 (3–4): 192–207. doi:10.1016/j.geoderma.2005.04.003.
- ^ Rasmussen, Carl Edward (2006) Gaussian Processes for Machine Learning
- ^ Rasmussen, Carl Edward (2006) Gaussian Processes Covariance Functions and Classification. Presentation at Gaussian Processes in Practice
- ^ Abramowitz and Stegun. Handbook of Mathematical Functions with Formulas, Graphs, and Mathematical Tables. ISBN 0-486-61272-4.