IMU Noise Models and Allan Variance
Current capture rigs measure their IMU noise per unit. RoboCap, a six-camera, dual-IMU hat with its IMUs at 200 Hz, states that in its factory calibration “IMU noise models are identified by Allan-variance analysis” before the cameras and IMUs are solved together (Ali et al., 2026). Other rigs and their IMUs are listed on the IMU sensors page.
This page goes one level below the IMU calibration guide, which introduces the Allan deviation, its −½ and +½ slopes and the recording lengths Kalibr and allan_variance_ros ask for. The four noise fields of Kalibr’s imu.yaml, their units, the continuous-to-discrete conversion, datasheet conversions and the advice to inflate static values are on the Kalibr file reference. Here: how the Allan variance is computed, every noise term it can show, how much to trust the estimate, worked numbers from published recordings, and what goes wrong.
Terms used on this page
Section titled “Terms used on this page”For the field guide’s terms in one place, grouped by topic, see the glossary.
| Term | Meaning |
|---|---|
| Averaging time τ (cluster time T) | The length of the window (cluster) the still IMU’s output is averaged over: τ = n·τ₀ for n samples at interval τ₀. |
| Allan variance σ²(τ), Allan deviation σ(τ) | Half the mean squared difference between the averages of two adjacent windows; the deviation is its square root, plotted against τ on log-log axes. |
| Angle random walk (ARW), velocity random walk (VRW) | The datasheet names for gyroscope and accelerometer white noise, because integrated white noise becomes a random walk in angle or velocity. Coefficient N (or Q in Hou’s notation). |
| Bias instability | The low-frequency (flicker, 1/f) wander of the bias, seen as the flat bottom of the curve. Coefficient B. |
| Rate random walk (RRW), accelerometer random walk | A bias that wanders as a random walk. Kalibr’s *_random_walk fields. Coefficient K. |
| Quantization noise | The error from digitising the output. Coefficient Q_z. |
| Drift rate ramp | A steady linear trend in the output. Coefficient R. A deterministic error, not a random one. |
How the Allan variance is computed
Section titled “How the Allan variance is computed”Take a long recording of a still IMU, one axis at a time. The TUM VI paper (Schubert et al., 2018), Appendix A, defines the average of n consecutive samples starting at sample i as ḡᵢ = (1/n) Σ gⱼ, for j = i to i + n − 1, and the Allan variance as half the expected squared difference between one cluster’s average and the next:
σ²(nτ₀) = ½ ⟨(ḡᵢ₊ₙ − ḡᵢ)²⟩
There are two ways to estimate it from M samples:
- Overlapping. Use every possible starting sample. TUM VI’s estimator sums the squared differences over all M − 2n + 1 start positions and divides by 2(M − 2n + 1). Hou’s thesis gives the same form, with N − 2n terms (Hou, 2004).
- Non-overlapping. Cut the record into consecutive bins of length τ, average each, and use the differences between neighbouring bins. This is the recipe in Woodman’s introduction to inertial navigation, which adds: “There must be enough data for at least 9 bins (otherwise the results obtained begin to lose their significance)” (Woodman, 2007).
Because the variance uses differences between neighbouring averages, any constant in the signal cancels: the fixed bias, and gravity on an accelerometer axis. That is why a still IMU in any orientation can be used.
Each value of τ needs its own pass over the data. Hou, citing Allan (1987), takes cluster sizes that are powers of two, n = 1, 2, 4, 8 and so on, which spaces the points evenly on the log axis.
Why each noise process has its own slope
Section titled “Why each noise process has its own slope”Hou derives the link between the Allan variance and the power spectral density S(f) of the rate noise:
σ²(τ) = 4 ∫₀^∞ S(f) · sin⁴(πfτ) / (πfτ)² df
So the Allan variance is the noise power passed through a filter whose passband moves with τ. Short τ looks at high frequencies, long τ at low ones, and each noise process, having a different spectrum, dominates a different stretch of the plot. The relation only runs one way: Hou notes that “there is no general inversion formula because there is no one-to-one relation”. Two different spectra can give the same curve.
The five noise terms and how to read them
Section titled “The five noise terms and how to read them”These come from IEEE Std 952-1997, the test standard for fibre-optic gyros that the Kalibr wiki cites for its noise model (IEEE, 1998), as derived in Hou’s thesis. Hou is a co-author of the later journal paper, El-Sheimy, Hou and Niu (2008).
| Term | Allan deviation σ(τ) | Log-log slope | Read the coefficient | Kalibr field |
|---|---|---|---|---|
| Quantization noise, Q_z | √3 · Q_z / τ | −1 | on the slope line at τ = √3 s | none |
| Angle / velocity random walk, N | N / √τ | −½ | on the slope line at τ = 1 s | *_noise_density |
| Bias instability, B | tends to √(2 ln 2 / π) · B ≈ 0.664 B for τ much longer than 1/f₀ | 0 | the flat region, divided by 0.664 | none |
| Rate random walk, K | K · √(τ / 3) | +½ | on the slope line at τ = 3 s | *_random_walk |
| Drift rate ramp, R | R · τ / √2 | +1 | on the slope line at τ = √2 s | none |
f₀ is the cut-off frequency of the bias-instability spectrum. Each reading point is simply where the formula’s τ factor equals 1: √3/τ, 1/√τ, √(τ/3) and τ/√2 are all 1 there. Recomputing the constant: √(2 ln 2 / π) = 0.6643.
The +½ case can be checked without trusting anyone’s algebra. TUM VI’s appendix models the random walk as a sum of independent steps, so that ⟨εᵢεⱼ⟩ = min(i, j)·σ², and reports, after “computer algebra software”, σ²(nτ₀) = σ²·(1/(6n) + n/3). Summing the min(i, j) terms exactly for n = 1, 2, 5 and 10 gives 1/2, 3/4, 17/10 and 67/20, which match the formula. Keeping only the n/3 term gives σ_b · √(τ/3), hence the reading at τ = 3 s.
Three cautions from the same sources:
- Kalibr models only two of the five. White noise and a random-walk bias. The wiki gives its reason for reading white noise at 1 s: “This is only true since the noise power in most inertial sensors is dominated by “white noise” at a frequency of approximately 1Hz.” It also explains why datasheets rarely give the random walk: “in practice, the bias does not truly behave like a “random walk” for longer integration times.”
- A slope does not name a process. Hou: “there are other noise terms with different spectral characteristics, such as flicker angle noise and white angle noise, that lead to the same” τ dependence as quantization noise, and adds that flicker acceleration noise, with a 1/f³ spectrum, can look like a rate ramp. Sinusoidal and exponentially correlated (Markov) noise also exist and are not in the table.
- The ramp is not noise. Hou calls it one of the “systematic (deterministic) errors”. Any slow trend in the record, such as a bias still settling, will push the right end of the plot towards a slope of +1.
Bias instability: two conventions
Section titled “Bias instability: two conventions”Tools and datasheets do not agree on what number to call bias instability.
- The curve minimum. Woodman: “The numerical value is the minimum value on the Allan Deviation curve.” allan_variance_ros does the same: its
analysis.pyprints the curve’s minimum (np.amin) as “Bias Instability” (commit1d54b60, January 2025). - The coefficient B. By the IEEE 952 derivation, the flat region sits at 0.664 B, so B is the minimum divided by 0.664, about 1.5 times larger.
Woodman also describes how datasheets quote it: a bias stability measurement covers “a specified period of time, typically around 100 seconds, in fixed conditions (usually including constant temperature)”, as a 1σ value in °/h, or °/s for less accurate parts. Before comparing your measured minimum with a datasheet’s bias stability, find out which convention the datasheet uses. The Kalibr wiki notes that the in-run bias stability, combined with the white noise, can give “reasonable values” for the random walk, but gives no formula.
How long to record: confidence against record length
Section titled “How long to record: confidence against record length”The Allan deviation at long τ rests on few clusters, so it is uncertain. Hou, following IEEE 952, gives the percentage error of the estimate as
σ(δ) = 1 / √(2 · (N/n − 1))
where N is the number of samples in the record and n the number per cluster. N/n is the record length divided by τ, so the sample rate drops out. Hou’s own example: with 20,000 points, clusters of 5,000 give “approximately 40%” and clusters of 100 “about 5%”. Recomputed: 40.8% and 5.0%.
Applied to common record lengths (computed with the formula above):
| Record length | τ = 1 s | τ = 100 s | τ = 1,000 s | τ = 3,000 s | τ = 6,000 s |
|---|---|---|---|---|---|
| 3 h (allan_variance_ros minimum) | 0.7% | 6.8% | 22.6% | 43.9% | 79.1% |
| 15 h (Kalibr’s lower figure) | 0.3% | 3.0% | 9.7% | 17.1% | 25.0% |
| 24 h (Kalibr’s upper figure) | 0.2% | 2.4% | 7.7% | 13.4% | 19.3% |
111 h (TUM VI imu-static) |
0.1% | 1.1% | 3.5% | 6.1% | 8.7% |
The white noise at τ = 1 s is well determined by any of these. The random walk is not. TUM VI fitted its +½ line between 1,000 and 6,000 s; on a 3-hour record the points at the top of that range are uncertain by almost 80%. Woodman’s nine-bin rule says the same thing in a different way: nine bins of 6,000 s is 15 hours. Hou’s formula counts independent clusters. To the best of our knowledge, an overlapping estimator does somewhat better than these figures at the same record length, so treat the table as conservative.
Worked numbers from published recordings
Section titled “Worked numbers from published recordings”| Recording | Sensor and log | White noise | Bias instability | Random walk |
|---|---|---|---|---|
| TUM VI, Schubert et al., 2018 | Bosch BMI160, 200 Hz, “111 hours standing still” | gyro 8.0 × 10⁻⁵ rad/s/√Hz; accel 1.4 × 10⁻³ m/s²/√Hz | not reported | gyro 2.2 × 10⁻⁶ rad/s²/√Hz; accel 8.6 × 10⁻⁵ m/s³/√Hz |
| TUM-VIE, Klenk et al., 2021 | Bosch BMI160 on a different rig, 200 Hz; same fit ranges as TUM VI | gyro 8.4503 × 10⁻⁵; accel 0.0012 | not reported | gyro 1.1961 × 10⁻⁶; accel 2.2856 × 10⁻⁵ |
| Woodman, 2007 | Xsens Mtx, 100 Hz, 12-hour log | gyro ARW 4.6 to 4.8 °/√h, which is 1.34 to 1.40 × 10⁻³ rad/s/√Hz | gyro 32 to 43 °/h (curve minimum, at 270 to 620 s) | not reported |
| allan_variance_ros README | “3 hour log of Realsense D435i IMU” | gyro ARW 0.00787 to 0.00987 °/√s per axis | gyro 0.00049 to 0.00136 °/s (curve minimum) | gyro RRW 0.00007 to 0.00028 °/s/√s per axis |
TUM-VIE prints its values without units; they follow TUM VI’s method and units. TUM VI also compares its result with the datasheet: “The white noise parameters are similar to typical values provided by the manufacturer”, 1.2 × 10⁻⁴ rad/s/√Hz for the gyro and 1.8 × 10⁻³ m/s²/√Hz for the accelerometer. The measured values are 1.5 and 1.3 times lower. The IMU sensors page compares datasheet and measured values across parts.
From per-axis values to Kalibr’s single value. The allan_variance_ros README prints per-axis results and then the imu.yaml it writes. Averaging the three gyro axes, (0.00787 + 0.00987 + 0.00839) / 3 = 0.00871 °/√s, and multiplying by π/180 gives 1.520 × 10⁻⁴ rad/s/√Hz, the README’s gyroscope_noise_density: 0.00015198973532354657. The same averaging reproduces the accelerometer noise density (0.00631 against 0.006308) and both random walks (gyro 2.68 × 10⁻⁶ against 2.66 × 10⁻⁶, from the rounded per-axis values). So the README’s example file holds the mean of the three axes, converted from degrees to radians for the gyro. That example predates a change to the script: since commit 7a3a461 (October 2022), “Use worst axis instead of average and support overlapping bins”, scripts/analysis.py writes the largest axis, for example worst_accel_white_noise = np.amax([accel_wn_intercept_x, accel_wn_intercept_y, accel_wn_intercept_z]). A current run therefore gives the worst axis, not the mean. The per-axis spread is wide: the D435i’s Y accelerometer has three times the velocity random walk of its X axis (0.01079 against 0.00333 m/s/√s), which a single averaged value hides.
Temperature and the limits of a static plot
Section titled “Temperature and the limits of a static plot”An Allan plot describes a still sensor at one temperature. The Kalibr wiki: the model “is derived from a sensor which does not undergo motion, and at constant temperature. Hence scale factor errors and bias variation caused by temperature changes, for example, are not accounted for.” Woodman adds that temperature-driven bias movements “are not included in bias stability measurements which are taken under fixed conditions”, and that “The relationship between bias and temperature is often highly nonlinear for MEMs sensors.”
What the sources suggest doing about it:
- Log the temperature with the data. TUM VI does: “IMU temperature is recorded, facilitating temperature-dependent noise models”, stored in the second entry of
orientation_covariancein its IMU messages. - Keep the recording still and the clock clean. allan_variance_ros: “Place your IMU on some damped surface and record your IMU data to a rosbag. You must record at least 3 hours of data. The longer the sequence, the more accurate the results.” It recommends reorganising the messages by timestamp first (
cookbag.py). Both rules follow from how the Allan variance is computed. It is computed from whatever the sensor outputs, so real motion in the log, such as vibration from a fan, a machine or footsteps, is counted as sensor noise; the damped surface keeps it out. And it averages runs of consecutive samples, so the samples must be in the order they were taken. To the best of our knowledge, a ROS bag stores each message under the time it was received, so messages that arrive late or in bursts can be stored out of sampling order;cookbag.pyrewrites each one at its own header timestamp. - Let it warm up. To the best of our knowledge, it is best to start the log once the rig has reached its working temperature, or cut the warm-up from the start, because a bias that is still settling is a trend, and a trend shows up as a slope towards +1 rather than as noise.
Failure cases
Section titled “Failure cases”| What you see | Likely cause | Source |
|---|---|---|
| The right branch does not follow +½ | unmodelled effects; TUM VI suggests temperature | TUM VI: “The assumed slope of 1/2 does not fit perfectly, which might be due to unmodeled effects such as temperature dependence.” |
| One axis disagrees with the others | that axis has a different long-term behaviour | TUM VI fitted the gyro +½ line on the y and z axes only |
| The right end of the curve is ragged | too few clusters at long τ | Hou’s percentage-error formula, table above |
| Slope −1 at the shortest τ | quantization noise | Hou found it “the dominant noise for short cluster times” in one of the IMUs he tested |
| Slope approaching +1 at long τ | a drift rate ramp, or a trend such as warm-up | Hou: the drift rate ramp “has a slope of +1” |
| Bias instability 1.5 times off a datasheet or another tool | minimum versus the 0.664 convention | above |
| allan_variance_ros random walk looks high | in analysis.py (commit 1d54b60) the +½ line is fitted over the whole curve, not just the rising branch; the white-noise line uses τ up to 10 s |
check the fitted lines on the plots it draws against the curve |
| Odd bumps at short τ | timestamps out of order or bursty | allan_variance_ros recommends cookbag.py; see the Kalibr workflow |
| Data was subsampled to a lower rate | the √rate scaling no longer holds | see continuous and discrete time |
From the plot to the estimator
Section titled “From the plot to the estimator”The white-noise coefficient goes into Kalibr’s *_noise_density fields and the rate random walk into *_random_walk; the Kalibr file reference covers the fields and units. In a visual-inertial estimator these numbers set the weights. Forster et al. state that the discrete noise covariance “is a function of the sampling rate”, Cov(η_d) = (1/Δt) · Cov(η), and that in their optimiser “the inverse noise covariance is used to weight the terms” (Forster et al., 2017).
Static values are optimistic, so practitioners raise them. TUM VI ran its VIO benchmarks with “Noise parameters are set to inflated values from the Allan plots”, “to account for unmodeled noise and vibrations”, and TUM-VIE did the same. Neither paper gives the factor. The Kalibr wiki’s own advice, a factor of 10 or more for the cheapest sensors, is on the Kalibr file reference. RoboCap publishes fleet-wide values that are not from a static plot: its Table 1 calls them “fleet-level estimates from per-device continuous-time calibration”.
Prompts you can give an AI
Section titled “Prompts you can give an AI”Read an Allan deviation table
Section titled “Read an Allan deviation table”Here is the Allan deviation of my still IMU, one row per tau, columnstau [s], gx, gy, gz [rad/s], ax, ay, az [m/s^2]. Record length: [hours].Sample rate: [Hz].
[paste table]
For each axis:1. Fit a line of fixed slope -1/2 to the white-noise region and give its value at tau = 1 s (noise density). Say which tau range you used.2. Fit a line of fixed slope +1/2 only to the rising branch and give its value at tau = 3 s (random walk). Say which tau range you used.3. Give the curve minimum and the minimum divided by 0.664, and say which is the IEEE 952 bias instability coefficient.4. Flag any region with slope -1 (quantization) or +1 (ramp or trend).5. Give the percentage error 1/sqrt(2*(T_record/tau - 1)) at the longest tau of each fit, and the three-axis means.Sources
Section titled “Sources”- Schubert, D., Goll, T., Demmel, N., Usenko, V., Stückler, J. and Cremers, D. (2018). The TUM VI Benchmark for Evaluating Visual-Inertial Odometry. IEEE/RSJ IROS.
- Klenk, S., Chui, J., Demmel, N. and Cremers, D. (2021). TUM-VIE: The TUM Stereo Visual-Inertial Event Dataset. IEEE/RSJ IROS.
- Hou, H. (2004). Modeling Inertial Sensors Errors Using Allan Variance. MSc thesis, UCGE Reports 20201, University of Calgary.
- El-Sheimy, N., Hou, H. and Niu, X. (2008). Analysis and modeling of inertial sensors using Allan variance. IEEE Transactions on Instrumentation and Measurement, 57(1).
- IEEE (1998). IEEE Std 952-1997: IEEE Standard Specification Format Guide and Test Procedure for Single-Axis Interferometric Fiber Optic Gyros.
- Woodman, O. J. (2007). An introduction to inertial navigation. Technical Report UCAM-CL-TR-696, University of Cambridge Computer Laboratory.
- Forster, C., Carlone, L., Dellaert, F. and Scaramuzza, D. (2017). On-Manifold Preintegration for Real-Time Visual-Inertial Odometry. IEEE Transactions on Robotics.
- Ali, Q. et al. (2026). RoboCap: A New Platform for Egocentric Robot Learning. arXiv:2610.07217.
- Kalibr wiki: IMU Noise Model, ETH Zurich ASL.
- Buchanan, R. allan_variance_ros, Oxford Robotics Institute (README and
scripts/analysis.py, commit1d54b60).