The Allan variance (AVAR), also known as two-sample variance, is a measure of frequency stability in clocks, oscillators and amplifiers. It is named after David W. Allan and expressed mathematically as σy2(τ). The Allan deviation (ADEV), also known as sigma-tau, is the square root of the Allan variance, σy(τ). The M-sample variance is a measure of frequency stability using M samples, time T between measurements and observation time τ. M-sample variance is expressed as
σy2(M,T,τ). The Allan variance is intended to estimate stability due to noise processes and not that of systematic errors or imperfections such as frequency drift or temperature effects. The Allan variance and Allan deviation describe frequency stability. See also the section Interpretation of value below. There are also different adaptations or alterations of Allan variance, notably the modified Allan variance MAVAR or MVAR, the total variance, and the Hadamard variance. There also exist time-stability variants such as time deviation (TDEV) or time variance (TVAR). Allan variance and its variants have proven useful outside the scope of timekeeping and are a set of improved statistical tools to use whenever the noise processes are not unconditionally stable, thus a derivative exists. The general M-sample variance remains important, since it allows dead time in measurements, and bias functions allow conversion into Allan variance values. Nevertheless, for most applications the special case of 2-sample, or "Allan variance" with T=τ is of greatest interest.
Background When investigating the stability of crystal oscillators and atomic clocks, it was found that they did not have a phase noise consisting only of white noise, but also of flicker frequency noise. These noise forms become a challenge for traditional statistical tools such as standard deviation, as the estimator will not converge. The noise is thus said to be divergent. Early efforts in analyzing the stability included both theoretical analysis and practical measurements. An important side consequence of having these types of noise was that, since the various methods of measurements did not agree with each other, the key aspect of repeatability of a measurement could not be achieved. This limits the possibility to compare sources and make meaningful specifications to require from suppliers. Essentially all forms of scientific and commercial uses were then limited to dedicated measurements, which hopefully would capture the need for that application. To address these problems, David Allan introduced the M-sample variance and (indirectly) the two-sample variance. While the two-sample variance did not completely allow all types of noise to be distinguished, it provided a means to meaningfully separate many noise-forms for time-series of phase or frequency measurements between two or more oscillators. Allan provided a method to convert between any M-sample variance to any N-sample variance via the common 2-sample variance, thus making all M-sample variances comparable. The conversion mechanism also proved that M-sample variance does not converge for large M, thus making them less useful. IEEE later identified the 2-sample variance as the preferred measure. An early concern was related to time- and frequency-measurement instruments that had a dead time between measurements. Such a series of measurements did not form a continuous observation of the signal and thus introduced a systematic bias into the measurement. Great care was spent in estimating these biases. The introduction of zero-dead-time counters removed the need, but the bias-analysis tools have proved useful. Another early aspect of concern was related to how the bandwidth of the measurement instrument would influence the measurement, such that it needed to be noted. It was later found that by algorithmically changing the observation τ, only low τ values would be affected, while higher values would be unaffected. The change of τ is done by letting it be an integer multiple n of the measurement timebase τ0:
τ=nτ0. The physics of crystal oscillators were analyzed by D. B. Leeson, and the result is now referred to as Leeson's equation. The feedback in the oscillator will make the white noise and flicker noise of the feedback amplifier and crystal become the power-law noises of f−2 white frequency noise and f−3 flicker frequency noise respectively. These noise forms have the effect that the standard variance estimator does not converge when processing time-error samples. The mechanics of the feedback oscillators was unknown when the work on oscillator stability started, but was presented by Leeson at the same time as the set of statistical tools was made available by David W. Allan. For a more thorough presentation on the Leeson effect, see modern phase-noise literature.
Interpretation of value Allan variance is defined as one half of the time average of the squares of the differences between successive readings of the frequency deviation sampled over the sampling period. The Allan variance depends on the time period used between samples, therefore, it is a function of the sample period, commonly denoted as τ, likewise the distribution being measured, and is displayed as a graph rather than a single number. A low Allan variance is a characteristic of a clock with good stability over the measured period. Allan deviation is widely used for plots (conventionally in log–log format) and presentation of numbers. It is preferred, as it gives the relative amplitude stability, allowing ease of comparison with other sources of errors. An Allan deviation of 1.3×10−9 at observation time 1 s (i.e. τ = 1 s) should be interpreted as there being an instability in frequency between two observations 1 second apart with a relative root mean square (RMS) value of 1.3×10−9. For a 10 MHz clock, this would be equivalent to 13 mHz RMS movement. If the phase stability of an oscillator is needed, then the time deviation variants should be consulted and used. One may convert the Allan variance and other time-domain variances into frequency-domain measures of time (phase) and frequency stability.
Formulations
… excerpt ends here. Continue reading the full article.



![Allan variance: Diagram of Allan deviation as a function of averaging time, showing the 5 typical regimes.[3]
1. white/flicker phase-modulation noise (PM): At the highest frequency, phase noise dominates. This corresponds to σ(τ)∝τ−1. However, White PM has S[f]=f3 but Flicker PM has S[f]=f2. The Allan variance plot does not distinguish them. It requires modified Allan variance plot to distinguish them.
2. White frequency-modulation noise (FM): at a lower frequency, white noise in frequency dominates. This corresponds to σ(τ)∝τ−1/2,S[f]=f0
3. Flicker FM: σ(τ)∝τ0,S[f]∝f−1. This is also called "pink noise".
4. Random Walk FM: σ(τ)∝τ+1/2,S[f]∝f−2. This is also called "brown noise" or "brownian noise". In this regime, the frequency of the system executes a random walk. In other words, df/dt becomes a white noise.
5. Frequency drift: σ(τ)∝τ+1,S[f]∝f−3. In this regime, the frequency of the system executes a pink noise walk. In other words, df/dt becomes a pink noise.](https://thumb.wikimedia.org/wikipedia/commons/thumb/3/32/5_regimes_of_Allan_variance_as_a_function_of_averaging_time.png/500px-5_regimes_of_Allan_variance_as_a_function_of_averaging_time.png?utm_source=en.wikipedia.org&utm_campaign=parser&utm_content=thumbnail)