ArticleslgStudy

mathematics

ODE filter

ODE filter is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand ODE filter rather than just read about it. In short: ODE filters are a class of probabilistic numerical methods for solving ordinary differential equations (ODEs) that frame the problem of finding a solution to an initial value problem as a Bayesian inference task. Solutions are modeled as probability distributions that also account for the discretization error introduced through the numerical approximation.

ODE filter — main illustration
ODE filter — illustration

Key takeaways

  • ODE filter belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect ODE filter to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of ODE filter from memory before moving on to harder problems.

Reference excerpt

ODE filters are a class of probabilistic numerical methods for solving ordinary differential equations (ODEs) that frame the problem of finding a solution to an initial value problem as a Bayesian inference task. Solutions are modeled as probability distributions that also account for the discretization error introduced through the numerical approximation. This probabilistic treatment provides an computation-aware alternative to classical numerical ODE-solvers, which typically only provide point-wise error bounds. It further enables sampling of joint trajectories from the posterior, as well as quantifying uncertainty about the underlying ODE itself. ODE filters offer a flexible framework for incorporating additional information, such as measurements or conservation laws. The general ODE filtering procedure consists of two steps: The first is the definition of a Prior distribution, for the ODE solution, in the form of a stochastic processes, more specifically, as Gauss–Markov processes. Discretization results in nonlinear Gaussian state space models. Second, use a general Bayesian filtering and smoothing algorithm, from the field of recursive Bayesian estimation, to find numerical solutions to the ODE. The naming convention of ODE filters typically reflects the underlying filtering algorithm: For instance, combining the particle filter with this framework yields the particle ODE filter. Since smoothers are extensions of filters, the literature often refers to both under the umbrella term "ODE filters".

Theory

Problem setup Consider a first-order ordinary differential equation (ODE) initial value problem (IVP) of the form

y ˙ ( t ) = f ( y ( t ) , t ) , t ∈ [ 0 , T ] , y ( 0 ) = y 0 ∈ R d . {\displaystyle {\dot {y}}(t)=f(y(t),t),\quad t\in [0,T],\quad y(0)=y_{0}\in \mathbb {R} ^{d}.}

The vector field f : R d × [ 0 , T ] → R d {\textstyle f:\mathbb {R} ^{d}\times [0,T]\rightarrow \mathbb {R} ^{d}} is assumed to be Lipschitz-continuous such that a unique global solution to this ODE-IVP exists according to the Pickard-Lindelöf theorem:. Classical Numerical ODE Solvers, are algorithms that compute approximate solutions y ^ ( t ) ≈ y ( t ) {\textstyle {\hat {y}}(t)\approx y(t)} on a discrete mesh { t n } n = 0 N , 0 = t 0 < ⋯ < t N = T , n ∈ N {\textstyle \{t_{n}\}_{n=0}^{N},\quad 0=t_{0}<\cdots <t_{N}=T,\quad n\in \mathbb {N} } . Probabilistic ODE Solvers additionally estimate the uncertainty introduced through the discretization. ODE Filters are a type of probabilistic ODE solvers, that adopt a Bayesian Inference framework to compute a posterior

p ( y ( t ) ∣ y ( 0 ) , { y ˙ ( t n ) = f ( y ( t n ) , t n ) } n = 0 N ) . {\displaystyle p\left(y(t)\mid y(0),\{{\dot {y}}(t_{n})=f(y(t_{n}),t_{n})\}_{n=0}^{N}\right).}

This is done in two steps. First, prior data and likelihood is defined by modeling solutions to the ODE as a Gauss-Markov process. Second, the posterior is computed with Bayesian filtering and smoothing algorithms.

Step 1: Gauss-Markov process

Prior The prior is specified by a linear time invariant (LTI) stochastic differential equation (SDE) of the form

X ( 0 ) ∼ N ( μ 0 , Σ 0 ) {\displaystyle X(0)\sim {\mathcal {N}}(\mu _{0},\Sigma _{0})}

d X ( t ) = F X ( t ) d t + L d B t . {\displaystyle \mathrm {d} X(t)=FX(t)\mathrm {d} t+L\mathrm {d} B_{t}.}

It describes a stochastic process ("the system"):

… excerpt ends here. Continue reading the full article.

Illustrations

ODE filter: Visualization of the filtering procedure for the logistic ordinary differential equation. The first column shows the prior, which is a two-times-integrated Wiener process. The last row shows the residual, which is equal to the measurement operator (i.e., x(t) − f(x(t))). The second column shows the prior after being initialized by the initial condition. The third row shows the posterior distribution obtained by running an extended Kalman filter of order one for the ODE. All subplots display the mean (solid, thick line) and the 95% confidence interval (shaded area), as well as ten samples from the corresponding distribution (solid lines). The dashed black line shows the ground truth solution of the logistic ODE. The blue dots represent the observed measurements.
Visualization of the filtering procedure for the logistic ordinary differential equation. The first column shows the prior, which is a two-times-integrated Wiener process. The last row shows the residual, which is equal to the measurement operator (i.e., x(t) − f(x(t))). The second column shows the prior after being initialized by the initial condition. The third row shows the posterior distribution obtained by running an extended Kalman filter of order one for the ODE. All subplots display the mean (solid, thick line) and the 95% confidence interval (shaded area), as well as ten samples from the corresponding distribution (solid lines). The dashed black line shows the ground truth solution of the logistic ODE. The blue dots represent the observed measurements.
ODE filter: Visualisation of the ODE filtering and smoothing procedure for the logistic ordinary differential equation using a two-times integrated Wiener process prior and an extended Kalman filter of order one. First, iterative forward filtering (brown) with forward prediction (black), then iterative smoothing (rose), and finally sampling from the full posterior distribution. The thick line shows the mean, with the shaded area showing the 95% confidence interval. The blue dots represent the observed data and the dashed line represents the ground truth.
Visualisation of the ODE filtering and smoothing procedure for the logistic ordinary differential equation using a two-times integrated Wiener process prior and an extended Kalman filter of order one. First, iterative forward filtering (brown) with forward prediction (black), then iterative smoothing (rose), and finally sampling from the full posterior distribution. The thick line shows the mean, with the shaded area showing the 95% confidence interval. The blue dots represent the observed data and the dashed line represents the ground truth.

Worked examples

Example 1 — a first encounter with ODE filter

Start with the simplest possible case. Write down what ODE filter claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to ODE filter before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about ODE filter ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of ODE filter

In research
ODE filter appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses ODE filter in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
ODE filter is common in secondary-school and first-year university syllabi. It links to neighbouring topics Ordinary differential equations, so understanding it makes those chapters shorter.
In everyday life
Look for ODE filter outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.

Affiliate

Preply — study more efficiently by working with a personal tutor. 50% off.

How to study ODE filter in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what ODE filter means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain ODE filter out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is ODE filter in simple terms?

ODE filters are a class of probabilistic numerical methods for solving ordinary differential equations (ODEs) that frame the problem of finding a solution to an initial value problem as a Bayesian inference task. Solutions are modeled as probability distributions that also account for the discretiz…

Why does ODE filter matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study ODE filter?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on ODE filter.

Tags

  • Ordinary differential equations

Keep exploring