The ensemble Kalman filter (EnKF) is a
recursive filter In signal processing, a recursive filter is a type of filter which re-uses one or more of its outputs as an input. This feedback typically results in an unending impulse response (commonly referred to as ''infinite impulse response'' (IIR)), chara ...
suitable for problems with a large number of variables, such as
discretization
In applied mathematics, discretization is the process of transferring continuous functions, models, variables, and equations into discrete counterparts. This process is usually carried out as a first step toward making them suitable for numeri ...
s of
partial differential equation
In mathematics, a partial differential equation (PDE) is an equation which imposes relations between the various partial derivatives of a multivariable function.
The function is often thought of as an "unknown" to be solved for, similarly to ...
s in geophysical models. The EnKF originated as a version of the
Kalman filter
For statistics and control theory, Kalman filtering, also known as linear quadratic estimation (LQE), is an algorithm that uses a series of measurements observed over time, including statistical noise and other inaccuracies, and produces estima ...
for large problems (essentially, the
covariance matrix
In probability theory and statistics, a covariance matrix (also known as auto-covariance matrix, dispersion matrix, variance matrix, or variance–covariance matrix) is a square matrix giving the covariance between each pair of elements o ...
is replaced by the
sample covariance
The sample mean (or "empirical mean") and the sample covariance are statistics computed from a sample of data on one or more random variables.
The sample mean is the average value (or mean value) of a sample of numbers taken from a larger po ...
), and it is now an important
data assimilation
Data assimilation is a mathematical discipline that seeks to optimally combine theory (usually in the form of a numerical model) with observations. There may be a number of different goals sought – for example, to determine the optimal state es ...
component of
ensemble forecasting
Ensemble forecasting is a method used in or within numerical weather prediction. Instead of making a single forecast of the most likely weather, a set (or ensemble) of forecasts is produced. This set of forecasts aims to give an indication of the ...
. EnKF is related to the
particle filter
Particle filters, or sequential Monte Carlo methods, are a set of Monte Carlo algorithms used to solve filtering problems arising in signal processing and Bayesian statistical inference. The filtering problem consists of estimating the int ...
(in this context, a particle is the same thing as an ensemble member) but the EnKF makes the assumption that all probability distributions involved are
Gaussian
Carl Friedrich Gauss (1777–1855) is the eponym of all of the topics listed below.
There are over 100 topics all named after this German mathematician and scientist, all in the fields of mathematics, physics, and astronomy. The English eponymo ...
; when it is applicable, it is much more efficient than the
particle filter
Particle filters, or sequential Monte Carlo methods, are a set of Monte Carlo algorithms used to solve filtering problems arising in signal processing and Bayesian statistical inference. The filtering problem consists of estimating the int ...
.
Introduction
The ensemble Kalman filter (EnKF) is a
Monte Carlo
Monte Carlo (; ; french: Monte-Carlo , or colloquially ''Monte-Carl'' ; lij, Munte Carlu ; ) is officially an administrative area of the Principality of Monaco, specifically the ward of Monte Carlo/Spélugues, where the Monte Carlo Casino i ...
implementation of the
Bayesian update problem: given a
probability density function
In probability theory, a probability density function (PDF), or density of a continuous random variable, is a function whose value at any given sample (or point) in the sample space (the set of possible values taken by the random variable) c ...
(PDF) of the state of the modeled system (the ''
prior'', called often the forecast in geosciences) and the data likelihood,
Bayes' theorem
In probability theory and statistics, Bayes' theorem (alternatively Bayes' law or Bayes' rule), named after Thomas Bayes, describes the probability of an event, based on prior knowledge of conditions that might be related to the event. For exa ...
is used to obtain the PDF after the data likelihood has been taken into account (the ''
posterior'', often called the analysis). This is called a Bayesian update. The Bayesian update is combined with advancing the model in time, incorporating new data from time to time. The original
Kalman filter
For statistics and control theory, Kalman filtering, also known as linear quadratic estimation (LQE), is an algorithm that uses a series of measurements observed over time, including statistical noise and other inaccuracies, and produces estima ...
, introduced in 1960,
assumes that all PDFs are
Gaussian
Carl Friedrich Gauss (1777–1855) is the eponym of all of the topics listed below.
There are over 100 topics all named after this German mathematician and scientist, all in the fields of mathematics, physics, and astronomy. The English eponymo ...
(the Gaussian assumption) and provides algebraic formulas for the change of the
mean
There are several kinds of mean in mathematics, especially in statistics. Each mean serves to summarize a given group of data, often to better understand the overall value ( magnitude and sign) of a given data set.
For a data set, the '' ari ...
and the
covariance matrix
In probability theory and statistics, a covariance matrix (also known as auto-covariance matrix, dispersion matrix, variance matrix, or variance–covariance matrix) is a square matrix giving the covariance between each pair of elements o ...
by the Bayesian update, as well as a formula for advancing the mean and covariance in time provided the system is linear. However, maintaining the covariance matrix is not feasible computationally for high-dimensional systems. For this reason, EnKFs were developed.
EnKFs represent the distribution of the system state using a collection of state vectors, called an
ensemble, and replace the covariance matrix by the
sample covariance
The sample mean (or "empirical mean") and the sample covariance are statistics computed from a sample of data on one or more random variables.
The sample mean is the average value (or mean value) of a sample of numbers taken from a larger po ...
computed from the ensemble. The ensemble is operated with as if it were a
random sample
In statistics, quality assurance, and survey methodology, sampling is the selection of a subset (a statistical sample) of individuals from within a statistical population to estimate characteristics of the whole population. Statisticians attem ...
, but the ensemble members are really not
independent
Independent or Independents may refer to:
Arts, entertainment, and media Artist groups
* Independents (artist group), a group of modernist painters based in the New Hope, Pennsylvania, area of the United States during the early 1930s
* Independe ...
, as they all share the EnKF. One advantage of EnKFs is that advancing the PDF in time is achieved by simply advancing each member of the ensemble.
[For a survey of EnKF and related data assimilation techniques, see ]
Derivation
Kalman filter
Let
denote the
-dimensional
state vector of a model, and assume that it has
Gaussian probability distribution with mean
and covariance
, i.e., its PDF is
:
Here and below,
means proportional; a PDF is always scaled so that its integral over the whole space is one. This
, called the ''
prior'', was evolved in time by running the model and now is to be updated to account for new data. It is natural to assume that the error distribution of the data is known; data have to come with an error estimate, otherwise they are meaningless. Here, the data
is assumed to have Gaussian PDF with covariance
and mean
, where
is the so-called
observation matrix. The covariance matrix
describes the estimate of the error of the data; if the random errors in the entries of the data vector
are independent,
is diagonal and its diagonal entries are the squares of the
standard deviation (“error size”) of the error of the corresponding entries of the data vector
. The value
is what the value of the data would be for the state
in the absence of data errors. Then the probability density
of the data
conditional of the system state
, called the
data likelihood, is
:
The PDF of the state and the
data likelihood are combined to give the new probability density of the system state
conditional on the value of the data
(the ''
posterior'') by the
Bayes theorem
In probability theory and statistics, Bayes' theorem (alternatively Bayes' law or Bayes' rule), named after Thomas Bayes, describes the probability of an event, based on prior knowledge of conditions that might be related to the event. For ex ...
,
:
The data
is fixed once it is received, so denote the posterior state by
instead of
and the posterior PDF by
. It can be shown by algebraic manipulations
that the posterior PDF is also Gaussian,
:
with the posterior mean
and covariance
given by the Kalman update formulas
:
where
:
is the so-called
Kalman gain matrix.
Ensemble Kalman Filter
The EnKF is a Monte Carlo approximation of the Kalman filter, which avoids evolving the covariance matrix of the PDF of the state vector
. Instead, the PDF is represented by an ensemble
:
is an
matrix whose columns are the ensemble members, and it is called the ''prior ensemble''. Ideally, ensemble members would form a
sample from the prior distribution. However, the ensemble members are not in general
independent
Independent or Independents may refer to:
Arts, entertainment, and media Artist groups
* Independents (artist group), a group of modernist painters based in the New Hope, Pennsylvania, area of the United States during the early 1930s
* Independe ...
except in the initial ensemble, since every EnKF step ties them together. They are deemed to be approximately independent, and all calculations proceed as if they actually were independent.
Replicate the data
into an
matrix
:
so that each column
consists of the data vector
plus a random vector from the
-dimensional normal distribution
. If, in addition, the columns of
are a sample from the
prior probability
In Bayesian statistical inference, a prior probability distribution, often simply called the prior, of an uncertain quantity is the probability distribution that would express one's beliefs about this quantity before some evidence is taken into ...
distribution, then the columns of
:
form a sample from the
posterior probability
The posterior probability is a type of conditional probability that results from updating the prior probability with information summarized by the likelihood via an application of Bayes' rule. From an epistemological perspective, the posterior p ...
distribution. To see this in the scalar case with
: Let
, and
Then
:
.
The first sum is the posterior mean, and the second sum, in view of the independence, has a variance
:
,
which is the posterior variance.
The EnKF is now obtained simply by replacing the state covariance
in Kalman gain matrix
by the sample covariance
computed from the ensemble members (called the ''ensemble covariance''),
that is:
Implementation
Basic formulation
Here we follow.
Suppose the ensemble matrix
and the data matrix
are as above. The ensemble mean and the covariance are
:
where
:
and
denotes the matrix of all ones of the indicated size.
The posterior ensemble
is then given by
:
where the perturbed data matrix
is as above.
Note that since
is a covariance matrix, it is always
positive semidefinite and usually
positive definite In mathematics, positive definiteness is a property of any object to which a bilinear form or a sesquilinear form may be naturally associated, which is positive-definite. See, in particular:
* Positive-definite bilinear form
* Positive-definite ...
, so the inverse above exists and the formula can be implemented by the
Cholesky decomposition
In linear algebra, the Cholesky decomposition or Cholesky factorization (pronounced ) is a decomposition of a Hermitian, positive-definite matrix into the product of a lower triangular matrix and its conjugate transpose, which is useful for effi ...
.
In,
is replaced by the sample covariance
where
and the inverse is replaced by a
pseudoinverse
In mathematics, and in particular, algebra, a generalized inverse (or, g-inverse) of an element ''x'' is an element ''y'' that has some properties of an inverse element but not necessarily all of them. The purpose of constructing a generalized in ...
, computed using the
singular-value decomposition
In linear algebra, the singular value decomposition (SVD) is a factorization of a real or complex matrix. It generalizes the eigendecomposition of a square normal matrix with an orthonormal eigenbasis to any \ m \times n\ matrix. It is r ...
(SVD) .
Since these formulas are matrix operations with dominant
Level 3 operations,
they are suitable for efficient implementation using software packages such as
LAPACK
LAPACK ("Linear Algebra Package") is a standard software library for numerical linear algebra. It provides routines for solving systems of linear equations and linear least squares, eigenvalue problems, and singular value decomposition. It al ...
(on serial and
shared memory
In computer science, shared memory is memory that may be simultaneously accessed by multiple programs with an intent to provide communication among them or avoid redundant copies. Shared memory is an efficient means of passing data between progr ...
computers) and
ScaLAPACK The ScaLAPACK (or Scalable LAPACK) library includes a subset of LAPACK routines redesigned for distributed memory MIMD parallel computers. It is currently written in a Single-Program-Multiple-Data style using explicit message passing for interproce ...
(on
distributed memory
In computer science, distributed memory refers to a multiprocessor computer system in which each processor has its own private memory. Computational tasks can only operate on local data, and if remote data are required, the computational task m ...
computers).
Instead of computing the
inverse of a matrix and multiplying by it, it is much better (several times cheaper and also more accurate) to compute the
Cholesky decomposition
In linear algebra, the Cholesky decomposition or Cholesky factorization (pronounced ) is a decomposition of a Hermitian, positive-definite matrix into the product of a lower triangular matrix and its conjugate transpose, which is useful for effi ...
of the matrix and treat the multiplication by the inverse as solution of a linear system with many simultaneous right-hand sides.
Observation matrix-free implementation
Since we have replaced the covariance matrix with ensemble covariance, this leads to a simpler formula where ensemble observations are directly used without explicitly specifying the matrix
. More specifically, define a function
of the form
:
The function
is called the ''
observation function'' or, in the
inverse problem
An inverse problem in science is the process of calculating from a set of observations the causal factors that produced them: for example, calculating an image in X-ray computed tomography, source reconstruction in acoustics, or calculating th ...
s context, the ''
forward operator''. The value of
is what the value of the data would be for the state
assuming the measurement is exact. Then the posterior ensemble can be rewritten as
:
where
:
and
:
with
:
Consequently, the ensemble update can be computed by evaluating the observation function
on each ensemble member once and the matrix
does not need to be known explicitly. This formula holds also
for an observation function
with a fixed offset
, which also does not need to be known explicitly. The above formula has been commonly used for a nonlinear observation function
, such as the position of a
hurricane
A tropical cyclone is a rapidly rotating storm system characterized by a low-pressure center, a closed low-level atmospheric circulation, strong winds, and a spiral arrangement of thunderstorms that produce heavy rain and squalls. Depe ...
vortex
In fluid dynamics, a vortex ( : vortices or vortexes) is a region in a fluid in which the flow revolves around an axis line, which may be straight or curved. Vortices form in stirred fluids, and may be observed in smoke rings, whirlpools in t ...
.
In that case, the observation function is essentially approximated by a linear function from its values at ensemble members.
Implementation for a large number of data points
For a large number
of data points, the multiplication by
becomes a bottleneck. The following alternative formula is advantageous when the number of data points
is large (such as when assimilating gridded or pixel data) and the data error
covariance matrix
In probability theory and statistics, a covariance matrix (also known as auto-covariance matrix, dispersion matrix, variance matrix, or variance–covariance matrix) is a square matrix giving the covariance between each pair of elements o ...
is diagonal (which is the case when the data errors are uncorrelated), or cheap to decompose (such as banded due to limited covariance distance). Using the
Sherman–Morrison–Woodbury formula
In mathematics (specifically linear algebra), the Woodbury matrix identity, named after Max A. Woodbury, says that the inverse of a rank-''k'' correction of some matrix can be computed by doing a rank-''k'' correction to the inverse of the origina ...
:
with
:
gives
:
which requires only the solution of systems with the matrix
(assumed to be cheap) and of a system of size
with
right-hand sides. See
for operation counts.
Further extensions
The EnKF version described here involves randomization of data. For filters without randomization of data, see.
Since the ensemble covariance is
rank deficient
In linear algebra, the rank of a matrix is the dimension of the vector space generated (or spanned) by its columns. p. 48, § 1.16 This corresponds to the maximal number of linearly independent columns of . This, in turn, is identical to the dime ...
(there are many more state variables, typically millions, than the ensemble members, typically less than a hundred), it has large terms for pairs of points that are spatially distant. Since in reality the values of physical fields at distant locations are not that much
correlated
In statistics, correlation or dependence is any statistical relationship, whether causal or not, between two random variables or bivariate data. Although in the broadest sense, "correlation" may indicate any type of association, in statisti ...
, the covariance matrix is tapered off artificially based on the distance, which gives rise to
localized EnKF algorithms.
These methods modify the covariance matrix used in the computations and, consequently, the posterior ensemble is no longer made only of linear combinations of the prior ensemble.
For nonlinear problems, EnKF can create posterior ensemble with non-physical states. This can be alleviated by
regularization
Regularization may refer to:
* Regularization (linguistics)
* Regularization (mathematics)
* Regularization (physics)
* Regularization (solid modeling)
* Regularization Law, an Israeli law intended to retroactively legalize settlements
See also ...
, such as
penalization of states with large spatial
gradient
In vector calculus, the gradient of a scalar-valued differentiable function of several variables is the vector field (or vector-valued function) \nabla f whose value at a point p is the "direction and rate of fastest increase". If the gr ...
s.
For problems with
coherent features, such as
hurricane
A tropical cyclone is a rapidly rotating storm system characterized by a low-pressure center, a closed low-level atmospheric circulation, strong winds, and a spiral arrangement of thunderstorms that produce heavy rain and squalls. Depe ...
s,
thunderstorm
A thunderstorm, also known as an electrical storm or a lightning storm, is a storm characterized by the presence of lightning and its acoustic effect on the Earth's atmosphere, known as thunder. Relatively weak thunderstorms are somet ...
s,
fireline
A firebreak or double track (also called a fire line, fuel break, fireroad and firetrail in Australia) is a gap in vegetation or other combustible material that acts as a barrier to slow or stop the progress of a bushfire or wildfire. A firebre ...
s,
squall line
A squall line, or more accurately a quasi-linear convective system (QLCS), is a line of thunderstorms, often forming along or ahead of a cold front. In the early 20th century, the term was used as a synonym for cold front (which often are accompa ...
s, and
rain fronts, there is a need to adjust the numerical model state by deforming the state in space (its grid) as well as by correcting the state amplitudes additively. In 2007, Ravela et al. introduce the joint position-amplitude adjustment model using ensembles, and systematically derive a sequential approximation which can be applied to both EnKF and other formulations.
Their method does not make the assumption that amplitudes and position errors are independent or jointly Gaussian, as others do. The morphing EnKF employs intermediate states, obtained by techniques borrowed from
image registration
Image registration is the process of transforming different sets of data into one coordinate system. Data may be multiple photographs, data from different sensors, times, depths, or viewpoints. It is used in computer vision, medical imaging, mili ...
and
morphing
Morphing is a special effect in motion pictures and animations that changes (or morphs) one image or shape into another through a seamless transition. Traditionally such a depiction would be achieved through dissolving techniques on film. Sinc ...
, instead of linear combinations of states.
Formally, EnKFs rely on the Gaussian assumption. In practice they can also be used for nonlinear problems, where the Gaussian assumption may not be satisfied. Related filters attempting to relax the Gaussian assumption in EnKF while preserving its advantages include filters that fit the state PDF with multiple Gaussian kernels,
filters that approximate the state PDF by
Gaussian mixture
Carl Friedrich Gauss (1777–1855) is the eponym of all of the topics listed below.
There are over 100 topics all named after this German mathematician and scientist, all in the fields of mathematics, physics, and astronomy. The English epony ...
s,
a variant of the
particle filter
Particle filters, or sequential Monte Carlo methods, are a set of Monte Carlo algorithms used to solve filtering problems arising in signal processing and Bayesian statistical inference. The filtering problem consists of estimating the int ...
with computation of particle weights by
density estimation
In statistics, probability density estimation or simply density estimation is the construction of an estimate, based on observed data, of an unobservable underlying probability density function. The unobservable density function is thought ...
,
and a variant of the particle filter with
thick tailed data PDF to alleviate
particle filter degeneracy.
See also
*
Data assimilation
Data assimilation is a mathematical discipline that seeks to optimally combine theory (usually in the form of a numerical model) with observations. There may be a number of different goals sought – for example, to determine the optimal state es ...
*
Numerical weather prediction#Ensembles
*
Particle filter
Particle filters, or sequential Monte Carlo methods, are a set of Monte Carlo algorithms used to solve filtering problems arising in signal processing and Bayesian statistical inference. The filtering problem consists of estimating the int ...
*
Recursive Bayesian estimation
In probability theory, statistics, and machine learning, recursive Bayesian estimation, also known as a Bayes filter, is a general probabilistic approach for estimating an unknown probability density function (PDF) recursively over time using in ...
References
External links
EnKF webpageTOPAZ, real-time forecasting of the North Atlantic ocean and Arctic sea-ice with the EnKFEnKF-C, a compact framework for data assimilation into large-scale layered geophysical models with the EnKFPDAF–
Parallel Data Assimilation Framework
Parallel is a geometric term of location which may refer to:
Computing
* Parallel algorithm
* Parallel computing
* Parallel metaheuristic
* Parallel (software), a UNIX utility for running programs in parallel
* Parallel Sysplex, a cluster of I ...
– an open-source software for data assimilation providing different variants of the EnKF
{{DEFAULTSORT:Ensemble Kalman Filter
Linear filters
Nonlinear filters
Bayesian statistics
Signal estimation
Monte Carlo methods