PhysSandbox
Classical MechanicsWaves & SoundElectricity & MagnetismOptics & LightGravity & OrbitsLabs
🌙Astronomy & The Sky🌡️Thermodynamics🌍Biophysics, Fluids & Geoscience📐Math Visualization🔧Engineering🧪Chemistry

Related simulators

Continue with similar topics in this category — or all 85 in Math Visualization.

View category →
NewUniversity / research

Kalman Filter (1-D)

Launch Simulator

Recursive optimal estimation: noisy measurements, hidden truth, predict + update with Q and R; random-walk or constant-velocity model with ±2σ band and innovations.

NewUniversity / research

PCA / SVD Geometry

Launch Simulator

Covariance ellipse and SVD view of dimensionality reduction: principal components, explained variance, and rank-1 reconstruction error.

NewUniversity / research

Gaussian Process Regression

Launch Simulator

Interactive GP regression with RBF and Matérn kernels: tune length scale/noise, add observations by clicking, view posterior mean with uncertainty bands, and sample at max posterior variance.

NewUniversity / research

Gaussian Mixture EM Algorithm

Launch Simulator

Expectation-maximization for a two-component Gaussian mixture: responsibilities, E/M steps, likelihood, and covariance ellipses.

NewSchool

Markov Chain (Weather)

Launch Simulator

Sun/Rain two-state chain: P matrix, stationary π, empirical vs theory.

NewUniversity / research

PLL (Phase-Locked Loop)

Launch Simulator

Discrete-time analog-style PLL: multiplier PD e = K_d sin(φ_ref − φ_VCO), PI loop filter, VCO ω = ω_fr + K_v u; step ω_ref to explore lock, capture, and steady-state phase error.

PhysSandbox

Interactive physics, chemistry, and engineering simulators for students, teachers, and curious minds.

Physics

  • Classical Mechanics
  • Waves & Sound
  • Electricity & Magnetism

Science

  • Optics & Light
  • Gravity & Orbits
  • Astronomy & The Sky

More

  • Thermodynamics
  • Biophysics, Fluids & Geoscience
  • Math Visualization
  • Engineering
  • Chemistry

© 2026 PhysSandbox. Free interactive science simulators.

PrivacyTermsContact
Home/Math Visualization/Kalman Filter 2D Tracking

Kalman Filter 2D Tracking

4-state constant-velocity tracker: noisy (x,y) measurements, process acceleration noise Q, measurement variance R, and a live ≈2σ covariance ellipse.

2D constant-velocity Kalman

-0.5
-0.3

State [x,y,vₓ,vᵧ]. Process noise is white acceleration with variance σₐ²; measurements are noisy positions with variance R. Too-small Q trusts the model; too-small R trusts the dots.

Shortcuts

  • •Space — pause / resume · R — reset run (new noise with same seed until you reseed)

Measured values

RMSE estimate0.000m
RMSE measurement0.000m
Noise reduction0.0%
|innovation|0.000m
Estimated speed0.00m/s
tr(P_pos)0.000m²

About this model

A constant-velocity Kalman filter estimates planar position and velocity from noisy (x, y) measurements. Process noise is modeled as white acceleration, so the discrete Q matrix couples position and velocity uncertainty. The live amber ellipse is the ≈2σ contour of the position block of P; comparing estimate RMSE with raw measurement RMSE shows how Q and R trade lag against jitter.

Who it's for: Estimation, robotics, control, signal processing, aerospace tracking, and applied probability courses.

Key terms

  • Kalman filter
  • Covariance ellipse
  • Process noise Q
  • Measurement noise R
  • Constant-velocity model
  • Innovation

How it works

A 4-state constant-velocity Kalman filter tracks a moving target in the plane from noisy position measurements. The amber ellipse is the filter’s ≈2σ position uncertainty from the covariance matrix P; tune process acceleration noise Q and measurement variance R to see lag versus jitter.

Key equations

x = [x, y, vₓ, vᵧ]ᵀ · F constant-velocity · z = [x, y]ᵀ + v
Predict: x̂⁻ = F x̂, P⁻ = F P Fᵀ + Q
Update: K = P⁻ Hᵀ (H P⁻ Hᵀ + R)⁻¹, x̂ = x̂⁻ + K(z − H x̂⁻)

Frequently asked questions

Why is the state four-dimensional?
The filter tracks x, y and the velocities vₓ, vᵧ. Position-only sensors still inform velocity through the constant-velocity dynamics and the Kalman update.
What happens if R is much smaller than Q?
The filter trusts measurements and the estimate hugs the noisy dots, so the ellipse shrinks but the track can look jittery. Large R does the opposite: smoother tracks with more lag.