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

More from Math Visualization

Other simulators in this category — or see all 85.

View category →
NewUniversity / research

Lattice Boltzmann D2Q9 Flow

Launch Simulator

Interactive D2Q9 BGK solver: lid-driven cavity or flow past a cylinder, vorticity colors, Reynolds-number control, and bounce-back walls.

NewUniversity / research

Finite-Volume Advection-Diffusion 2D

Launch Simulator

Conservative scalar transport on a 2D grid: face fluxes, upwind vs central interpolation, Peclet number, CFL, and numerical diffusion.

NewUniversity / research

Conjugate Gradient Solver

Launch Simulator

SPD system Ax=b as quadratic minimization: contour geometry, CG vs steepest descent path, residual norm, and condition number.

NewUniversity / research

Power Iteration Eigenvalue Convergence

Launch Simulator

Visualize dominant eigenvector convergence: spectral gap ratio, Rayleigh quotient, eigen residual, and normalized power iterates on the unit circle.

NewUniversity / research

Newton-Raphson Basins in 2D Systems

Launch Simulator

Map Newton basins for nonlinear F(x,y)=0 systems: initial-guess sensitivity, iteration counts, root attraction, and singular-Jacobian failures.

NewUniversity / research

Monte Carlo Integration & Variance Reduction

Launch Simulator

Compare plain Monte Carlo, importance sampling, and stratified sampling for ∫f(x)dx, with convergence curves, standard error, and the 1/√N rate.

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.