ArticleslgStudy

science

Allan variance

Allan variance is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Allan variance rather than just read about it. In short: 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 variance — main illustration
Allan variance — illustration

Key takeaways

  • Allan variance belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Allan variance to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Allan variance from memory before moving on to harder problems.

Reference excerpt

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.

Illustrations

Allan variance: A clock is most easily tested by comparing it with a far more accurate reference clock. During an interval of time τ, as measured by the reference clock, the clock under test advances by τy, where y is the average (relative) clock frequency over that interval. If we measure two consecutive intervals as shown, we can get a value of (y − y′)2—a smaller value indicates a more stable and precise clock. If we repeat this procedure many times, the average value of (y − y′)2 is equal to twice the Allan variance (or Allan deviation squared) for observation time τ.
A clock is most easily tested by comparing it with a far more accurate reference clock. During an interval of time τ, as measured by the reference clock, the clock under test advances by τy, where y is the average (relative) clock frequency over that interval. If we measure two consecutive intervals as shown, we can get a value of (y − y′)2—a smaller value indicates a more stable and precise clock. If we repeat this procedure many times, the average value of (y − y′)2 is equal to twice the Allan variance (or Allan deviation squared) for observation time τ.
Allan variance: Example plot of the Allan deviation of a clock. At very short observation time τ, the Allan deviation is high due to noise. At longer τ, it decreases because the noise averages out. At still longer τ, the Allan deviation starts increasing again, suggesting that the clock frequency is gradually drifting due to temperature changes, aging of components, or other such factors. The error bars increase with τ simply because it is time-consuming to get a lot of data points for large τ.
Example plot of the Allan deviation of a clock. At very short observation time τ, the Allan deviation is high due to noise. At longer τ, it decreases because the noise averages out. At still longer τ, the Allan deviation starts increasing again, suggesting that the clock frequency is gradually drifting due to temperature changes, aging of components, or other such factors. The error bars increase with τ simply because it is time-consuming to get a lot of data points for large τ.
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.
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.

Worked examples

Example 1 — a first encounter with Allan variance

Start with the simplest possible case. Write down what Allan variance claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Allan variance before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Allan variance ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Allan variance

In research
Allan variance appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Allan variance in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Allan variance is common in secondary-school and first-year university syllabi. It links to neighbouring topics Clocks, Measurement, Signal processing metrics, so understanding it makes those chapters shorter.
In everyday life
Look for Allan variance outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Allan variance” →

How to study Allan variance in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Allan variance means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Allan variance out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Allan variance in simple terms?

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.

Why does Allan variance matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Allan variance?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Allan variance.

Tags

  • Clocks
  • Measurement
  • Signal processing metrics

Keep exploring