This definition is based on the statistical
expected value, integrating over infinite time. The real-world situation does not allow for such time-series, in which case a statistical
estimator needs to be used in its place. A number of different estimators will be presented and discussed.
Conventions {{bulleted list The relation between the number of fractional-frequency samples and time-error series is fixed in the relationship : N = M + 1. : x_i = x(iT), where
T is the time between measurements. For Allan variance, the time being used has
T set to the observation time
τ. The
time-error sample series let
N denote the number of samples (
x0...
xN−1) in the series. The traditional convention uses index 1 through
N. : \bar{y}_i = \bar{y}(Ti, \tau), which gives :\bar{y}_i = \frac{1}{\tau} \int_0^\tau y(iT + t_v) \, dt_v = \frac{x(iT + \tau) - x(iT)}{\tau}. For the Allan variance assumption of
T being
τ it becomes :\bar{y}_i = \frac{x_{i+1} - x_i}{\tau}. The
average fractional-frequency sample series lets
M denote the number of samples (\bar{y}_0 \ldots \bar{y}_{M-1}) in the series. The traditional convention uses index 1 through
M. As a shorthand,
average fractional frequency is often written without the average bar over it. However, this is formally incorrect, as the
fractional frequency and
average fractional frequency are two different functions. A measurement instrument able to produce frequency estimates with no dead-time will actually deliver a frequency-average time series, which only needs to be converted into
average fractional frequency and may then be used directly. }}
Fixed τ estimators A first simple estimator would be to directly translate the definition into :\sigma_y^2(\tau, M) = \operatorname{AVAR}(\tau, M) = \frac{1}{2(M - 1)} \sum_{i=0}^{M-2}(\bar{y}_{i+1} - \bar{y}_i)^2, or for the time series: :\sigma_y^2(\tau, N) = \operatorname{AVAR}(\tau, N) = \frac{1}{2\tau^2(N - 2)} \sum_{i=0}^{N-3}(x_{i+2} - 2x_{i+1} + x_i)^2. These formulas, however, only provide the calculation for the
τ =
τ0 case. To calculate for a different value of
τ, a new time-series needs to be provided.
Non-overlapped variable τ estimators Taking the time-series and skipping past
n − 1 samples, a new (shorter) time-series would occur with
τ0 as the time between the adjacent samples, for which the Allan variance could be calculated with the simple estimators. These could be modified to introduce the new variable
n such that no new time-series would have to be generated, but rather the original time series could be reused for various values of
n. The estimators become :\sigma_y^2(n\tau_0, M) = \operatorname{AVAR}(n\tau_0, M) = \frac{1}{2\frac{M-1}{n}} \sum_{i=0}^{\frac{M-1}{n} - 1}\left(\bar{y}_{ni+n} - \bar{y}_{ni}\right)^2 with n \le \frac{M - 1}{2}, and for the time series: :\sigma_y^2(n\tau_0, N) = \operatorname{AVAR}(n\tau_0, N) = \frac{1}{2n^2\tau_0^2\left(\frac{N - 1}{n} - 1\right)} \sum_{i=0}^{\frac{N-1}{n} - 2}\left(x_{ni+2n} - 2x_{ni+n} + x_{ni}\right)^2 with n \le \frac{N - 1}{2}. These estimators have a significant drawback in that they will drop a significant amount of sample data, as only 1/
n of the available samples is being used.
Overlapped variable τ estimators A technique presented by J. J. Snyder provided an improved tool, as measurements were overlapped in
n overlapped series out of the original series. The overlapping Allan variance estimator was introduced by Howe, Allan and Barnes. and ETSI standards for comparable measurements such as needed for telecommunication qualification.
Modified Allan variance In order to address the inability to separate white
phase modulation from flicker phase modulation using traditional Allan variance estimators, an algorithmic filtering reduces the bandwidth by
n. This filtering provides a modification to the definition and estimators and it now identifies as a separate class of variance called
modified Allan variance. The modified Allan variance measure is a frequency stability measure, just as is the Allan variance.
Time stability estimators A time stability (σ
x) statistical measure, which is often called the time deviation (TDEV), can be calculated from the modified Allan deviation (MDEV). The TDEV is based on the MDEV instead of the original Allan deviation, because the MDEV can discriminate between white and flicker phase modulation (PM). The following is the time variance estimation based on the modified Allan variance: :\sigma_x^2(\tau) = \frac{\tau^2}{3}\bmod\sigma_y^2(\tau), and similarly for modified Allan deviation to
time deviation: :\sigma_x(\tau) = \frac{\tau}{\sqrt{3}}\bmod\sigma_y(\tau). The TDEV is normalized so that it is equal to the classical deviation for white PM for
time constant τ =
τ0. To understand the normalization scale factor between the statistical measures, the following is the relevant statistical rule: For independent random variables
X and
Y, the variance (σ
z2) of a sum or difference (
z =
x −
y) is the sum square of their variances (σ
z2 = σ
x2 + σ
y2). The variance of the sum or difference (
y =
x2
τ −
xτ) of two independent samples of a
random variable is twice the variance of the random variable (σ
y2 = 2σ
x2). The MDEV is the second difference of independent phase measurements (
x) that have a variance (σ
x2). Since the calculation is the double difference, which requires three independent phase measurements (
x2
τ − 2
xτ +
x), the modified Allan variance (MVAR) is three times the variances of the phase measurements.
Other estimators Further developments have produced improved estimation methods for the same stability measure, the variance/deviation of frequency, but these are known by separate names such as the
Hadamard variance,
modified Hadamard variance, the
total variance,
modified total variance and the
Theo variance. These distinguish themselves in better use of statistics for improved confidence bounds or ability to handle linear frequency drift. ==Confidence intervals and equivalent degrees of freedom==