How to use this calculator
Select a fixed uncertainty-aware smoothing gain for a directly observed random-walk state.
- Enter Random-walk variance per sample, Observation variance. Match the units shown beside each field and review the result together with the assumptions below.
- Read the worked example below to check the expected input format and result.
- Compare another scenario by changing one input at a time. Use Reset to return to the starting values.
Steady state scalar random walk Kalman gain explained
For a random-walk state observed with measurement noise, process variance controls how strongly the estimate follows each new measurement. This steady-state solution reports the correction gain and corrected variance after repeated updates have settled.
Inputs, symbols, and units
Q— Random-walk variance per sample- State process variance added before every observation.
R— Observation variance- Variance of a direct state measurement.
Formula and method
P=(√(Q²+4QR)−Q)/2; K=(P+Q)/(P+Q+R), for xₖ₊₁=xₖ+wₖ and zₖ=xₖ+vₖ.
Solve the stationary covariance balance rather than performing a transient update. The memory measure matches the exponential decay of repeated correction weights.
A worked scenario
Random-walk variance per sample = 0.04; Observation variance = 1.
- Steady measurement gain: 0.180998 ratio
- Corrected state variance: 0.180998 state units²
- Equivalent exponential memory: 5.00831 samples
A random walk adding variance 0.04 per observation is measured with variance one; compare its stationary gain with a simple moving average.
Assumptions and edge cases
Strictly positive Q and R. It does not model velocity, acceleration, measurement delay or biased sensors.
Reading the outputs
Gain is dimensionless; corrected variance is after observation; memory is an e-folding interval in samples.
Frequently asked questions
Why does increasing Q increase the gain?
A less predictable state warrants greater weight on the latest observation.
Is this the startup gain?
No; it is the limit after the variance recursion converges.
Can I convert memory to seconds?
Multiply the sample count by the sampling interval.
How do I use the Steady state scalar random walk Kalman gain calculator?
Enter Random-walk variance per sample, Observation variance. Match the units shown beside each field and review the result together with the assumptions below.
What is a worked example of Steady state scalar random walk Kalman gain?
Random-walk variance per sample = 0.04; Observation variance = 1. Steady measurement gain: 0.180998 ratio Corrected state variance: 0.180998 state units² Equivalent exponential memory: 5.00831 samples A random walk adding variance 0.04 per observation is measured with variance one; compare its stationary gain with a simple moving average.
Background or definition reference: MathWorks Kalman estimation equations.
Read our calculation methodology.