In this article, we review the famous German Tank Problem which refers to the
estimation of the number of German tanks in production on a monthly basis by
the Allied forces based on observations of the serial numbers of tanks, either
through capture or espionage. The original report discussing the details of
this problem was performed by Ruggles and Brodie, see [1], and Figure 1 for an extract of a table (pg. 89) from the report
depicting estimates for tank production both via statistical and intelligence
means. Additionally, a proof of the estimators suggested to in the Ruggles and
Brodie report was performed by Goodman, see [2].
Figure 1. A table depicting
estimated monthly German tank production via the use of statistics (Serial
Number Estimate) and through American and British intelligence estimates
(Munitions Record) versus the actual monthly production recorded by the German
Speer Ministry.
In mathematical terms, assume that we have an unknown number N of German
tanks being produced on a monthly basis, and that each tank is identified by a
unique serial number. Assume further that the serial numbers can be mapped to
the natural numbers (starting at one) whilst preserving order, where the order
can be interpreted by the order in which they are produced. Assume further
that we have observed k tanks and our aim now is to determine an estimator,
N^, for N which is unknown.
Let X1,…,Xk denote the random variables corresponding to the
serial markings observed on German tanks. We assume that each Xi is
sampled uniformly from {1,…,N}without replacement.
In particular, we have that for any i∈{1,…,k}
P(Xi)=N1.
Something to note is that, while the observations are identically distributed,
they are not independent since we assume no replacement (i.e. serial numbers
are not reused).
For the purpose of calculations below, as the order of the statistics is not
relevant (we do not care in which order the serial numbers were obtained), we
consider the order statistics X(1)<⋯<X(k), which
have a joint density
P(X(1)=x1,…,X(k)=xk)={(kN)10if all xi are distinct and lie within {1,…,N},otherwise.
Now, there are numerous estimators that one could use for N, but one must be
wary of if they are biased and be conscious of their variance.
If the tank number is 50, then we know that N⩾50, therefore a
naïve first estimate could be the maximum observed value.
Let M:=max{X1,…,Xk}=X(k) denote the
random variable corresponding to the maximum observed value, and
N^max=M the estimator for N.
We now wish to determine whether N^max estimator is biased and what
its variance could be, for which we need the density of M. Whilst it is true
that Xk is uniformly distributed, X(k) is the ordered statistic, and
is heavily biased towards larger values, and therefore is not uniformly
distributed - therefore, we need to derive the density of M.
Let m∈{1,…,N}, then the total number of possible
outcomes of our samplings is (kN), and out of these, the total
number of outcomes where the maximum is m is the number of ways of choosing
k−1 numbers below m, i.e. (k−1m−1). Therefore
We know that each Xi is uniformly distributed across {1,…,N}, and with that, for all i∈{1,…,k}
μ:=E(Xi)=2N+1,
giving us the identity N=2μ−1. If we are able to obtain an estimator
for μ, we can also do so for N. Letting Xˉ:=k1(X1+⋯+Xk) denote the sample mean, Xˉ provides an unbiased
estimator of μ, i.e.
E(Xˉ)=μ
and indeed, with that, we are able to obtain the estimator
N^MoM:=2Xˉ−1, for which we have
Denote by x=(x1,…,xk) an observed sample of
serial numbers, and X=(X1,…,Xk). Then for N∈{k,k+1,…}, the likelihood function (representing the
probability of observing this specific sample given a population size N) is
defined as
For brevity, in the following we write L(N) to denote L(N∣x). Now, we want to determine the maximum likelihood - the
likelihood is strictly decreasing (since its reciprocal is strictly
increasing) in N,
L(N)L(N+1)=1−N+1k<1
i.e. L(N+1)<L(N) for any N⩾max{x1,…,xk}. Therefore, the N which maximises the likelihood is max{x1,…,xk}, giving the estimator
A question one can ask themselves is, what is the best estimator to N? Well,
this entirely depends on what is mean’t by best. One common technique that is
used in literature is finding estimators that minimise the mean squared error
(MSE), although other loss functions can also be used, see Chapter 7.3.4 of
[3] for a discussion on the use of alternative
loss functions.
Definition.
The mean squared error of an estimator W of a parameter θ is
MSE(θ):==Vθ(W)+Biasθ(W)2Eθ[(W−θ)2]
where Biasθ(W):=Eθ(W)−θ.
Having defined the MSE, we can now search for an estimator that has the best
MSE across all parameters θ. But this is not always possible, in fact,
one can often find two estimators that outperform each other with respect to
the MSE across different parameter ranges. The reason for this difficulty is
that the space of all estimators is quite large.
To obtain a recommended estimator, many resort to restricting to the space of
unbiased estimators, i.e. those such that Eθ(W)=θ.
In such a scenario, the MSE simply corresponds to the variance of the
estimators, and therefore the estimators we seek are those that have uniformly
smallest variance.
Should I always use an unbiased estimator? No. In many cases, one can make a
large improvement on the variance by forgiving some unbiasedness, and with
that achieve a much better MSE. Although unbiased estimators as ideal, they
are not always the best!
Definition (UMVUE).
An estimator W∗ is the uniform minimum variance
unbiased estimator (UMVUE) of θ if it satisfies Eθ(W∗)=θ for all θ, and for any other estimator W with
Eθ(W)=θ, we have Vθ(W∗)⩽Vθ(W) for all θ.
Finding the UMVUE is not an easy task, it may not exist, and even if it does,
it is difficult to know from first principles how to obtain one. It could be
possible that from the estimators already obtained for a given problem, that
at one of them is the UMVUE, but how can one know unless the inequality can be
proven across all possible estimators.
One way to get around the issue of knowing when to stop is to know first what
is the lowest possible variance one could possible strive to obtain, and then
check if your estimator attains this bound – this is where the Cramér-Rao
inequality comes in.
Theorem (Cramér-Rao Inequality).
Let X1,…,Xn be a sample with
pdf f(x∣θ), sample space X, and parameter
θ, and let W(X)=W(X1,…,Xn) be any
estimator satisfying
Let X1,…,Xn be a sample with pdf f(x∣θ) and let W(X)=W(X1,…,Xn) be an unbiased estimator with
Vθ(W(X))<∞. Then
Vθ(W(X))⩾Iθ(X)1.
The Cramér-Rao inequality is quite remarkable and also quite intuitive - it
tells us that as more information is made available (i.e. as
Iθ increases), we can, in theory, obtain estimators that
have smaller and smaller variances. Although, the attainment is not
guaranteed.
If we have found an estimators that attains this bound, then we know (assuming
that the conditions are met) that our estimator is optimal with respect to the
variance, and is a UMVUE if it is also unbiased. Thankfully, the requirements
for attainment of the Cramér-Rao bound are simple, although again, these
requirements do not provide a means of constructing the optimal estimator.
Corollary (Attainment).
Let X1,…,Xn be a sample with pdf f(x∣θ) and let W(X)=W(X1,…,Xn) be any estimator satisfying the Cramér-Rao conditions. Then W(X) attains the Cramér-Rao lower bound if and only if there
exists a function a(θ) such that
a(θ)[W(x)−θ]=∂θ∂logf(x∣θ)for all θ.
We should note that the key assumption of the Cramér-Rao theorem is the
requirement that we can differentiate under the integral sign, a condition
that needs to be checked and is not always true.
Can we obtain a Cramér-Rao bound for our German tank problem? Unfortunately,
no. For the German tank problem, we have
f(x1,…,xk∣N)=(kN)11{max{x1,…,xk}⩽N},
in particular, the support of our density depends on our parameter N. Due to
this, we cannot simply differentiate under the integral without taking into
consideration the boundary terms of the support. Let SN:={x={x1,…,xk}∣max(x)⩽N} denote the support of f, then, by the Leibniz rule for
differentiating an integral (apply counting measure and proceed usually), for
any estimator W of N
Thankfully, there exists some developed theory for constructing better
unbiased estimators (those with lower variance), and also the UMVUE. Before we
state these results, we need to understand what is a sufficient statistic.
A sufficient statistic for a parameter θ is a statistic that, in a
certain sense, captures all the information about θ contained in the
sample, i.e. if T(X) is a sufficient statistic for θ,
then any inference about θ should depend on the sample X
only through the value of T(X).
Definition (Sufficient Statistic).
A statistic T(X) is a
sufficient statistic for θ if the conditional distribution of the
sample X given the value of T(X) does not
depend on θ.
How can we know if we have a sufficient statistic? For this, there is a simple
result called the Factorisation Theorem, see [3] (Theorem 6.2.6), that allows to us to quickly identify
such statistics.
Theorem (Factorisation Theorem).
Let f(x∣θ) denote the
joint pdf of a sample X. A statistic T(X) is a
sufficient statistic for θ if and only if there exists functions g(t∣θ) and h(x) such that, for all sample points
x and all parameters θ
f(x∣θ)=g(T(x)∣θ)h(x).
Through the concept of sufficiency, we arrive at the remarkable result by
Rao-Blackwell, see [3] (Theorem 7.3.17), which
allows us to improve upon any unbiased estimator if one has access to any
sufficient statistic for θ, no matter how crude. This process of
applying the Rao-Blackwell theorem is called Rao-Blackwellisation.
Theorem (Rao-Blackwell).
Let W be any unbiased estimator of θ,
and T be a sufficient statistic for θ. Define by ϕ(T):=E(W∣T). Then Eθ(ϕ(T))=θ and
Vθ(ϕ(T))⩽Vθ(W) for all
θ, that is ϕ(T) is a uniformly better unbiased estimator of
θ (note, ϕ is not necessarily the UMVUE).
How about if I wanted to construct the UMVUE, and not just improve upon my
estimator? For that, we rely on the concept of completeness and the
Lehmann-Scheffé theorem, see [3]
(Theorem 7.3.19, Theorem 7.3.23, Theorem 7.5.1) which also tells us that any
UMVUE is unique!
Definition (Completeness).
Let f(t∣θ) be a family of densities for a
statistic T(X). The family of probability distributions is
called complete if Eθ(g(T))=0 for all θ implies
Pθ(g(T)=0)=1 for all θ. Equivalently, T(X) is called a complete statistic.
Theorem (Lehmann-Scheffé).
Let T be a complete sufficient statistic for a
parameter θ, and let ϕ(T) be any estimator based only on T such
that E(ϕ(T))=θ. Then ϕ(T) is the unique UMVUE of
θ.
That is, if we are able to find a complete sufficient statistic of our
parameter θ, then by conditioning any estimator on this statistic will
necessarily yield the UMVUE.
Having determined how to obtain the UMVUE, we now move to construct it for the
German tank problem. Recall the estimators that we determined for N, in
particular N^MoM and N^max,
The first question we ask is, can we improve either of these via conditioning,
i.e. via Rao-Blackwellisation? We can if at least one of our estimators is
sufficient.
We start with checking N^MoM. Recalling the
Factorisation Theorem, to show that an estimator is sufficient, it suffices to
determine if we can factorise the density f(x∣N) into
we see that it is not possible to write the indicator 1{max{x1,…,xk}⩽N} solely in
terms of Xˉ, and therefore also not solely in terms of
N^MoM, therefore N^MoM is
not sufficient.
Although, looking at the density, we see that the estimator N^max
is sufficient, as one can write
f(x∣N)=(kN)11{N^max(x)⩽N}
and choosing h≡1 and g(x,N^max)=(kN)11{N^max(x)⩽N} gives us the required factorisation.
So what does this all mean? Although N^MoM is not a
sufficient statistic, it is unbiased (unlike N^max), so we can
condition it with the sufficient statistic N^max to obtain a
uniformly better unbiased estimate than N^MoM.
For brevity, let M=N^max and define ϕ(m):=E(N^MoM∣M=m) for some m∈{k,k+1,…}. Then, as an estimator, ϕ can be written as
In particular, by the Rao-Blackwell theorem, we have obtained the estimator
N^RB:=ϕ(M)=M(kk+1)−1 which provides a uniformly better unbiased estimator than
N^MoM.
Now, the question then is, is N^RB the UMVUE? For
this, we need to check whether the family of densities for the estimator M=N^max is complete.
Let g be any function of M such that E(g(M))=0, then it
suffices to show that P(g(M)=0)=1 for all N. Applying the
definition of the expectation, we see that, under k samples
Since the case is assumed to hold true for N, we have that
m=k∑Ng(m)(k−1m−1)=0
and therefore
0=g(N+1)(k−1N)
and hence g(N+1)=0, i.e. the case holds true also for N+1, which
concludes the inductive proof, i.e. g(M)=0. In particular, we have
E(g(M))=0⇒P(g(M)=0)=1,
i.e. M is also a complete statistic. In particular, that
N^RB:=ϕ(N^max)=M(kk+1)−1 is the UMVUE.
References
Richard Ruggles
and
Henry Brodie
(1947).
An Empirical Approach to Economic Intelligence in World War II.
42
(237)
: 72–91.
doi:10.1080/01621459.1947.10501915link