🧮 Brain Teaser
Probability
Doubling Your Accuracy
2026-10-28
✏︎

Doubling Your Accuracy

You have two rods with unknown lengths aa and bb. You have a measuring instrument that is unbiased but noisy. Whenever you measure a length ℓ\ell, it reports

ℓ+ε,\ell + \varepsilon,

where E[ε]=0\mathbb{E}[\varepsilon]=0 and Var⁡(ε)=σ2\operatorname{Var}(\varepsilon)=\sigma^2. The size of the error does not depend on ℓ\ell, and errors from different measurements are independent.

You may use the instrument exactly twice. In each use you can measure any single length you can physically form with the rods. For example:

  • one rod alone,
  • the two rods laid end to end, which has length a+ba+b,
  • the two rods laid side by side with left ends aligned, where you measure the overhang, which has length ∣a−b∣|a-b|.

The obvious plan is to measure each rod once. That gives unbiased estimates of aa and bb, each with variance σ2\sigma^2.

  1. Find a scheme that produces unbiased estimates of both aa and bb, each with variance strictly smaller than σ2\sigma^2.
  2. (Bonus) Show that your scheme is optimal. No design using two measurements of signed combinations ±a±b\pm a \pm b, ±a\pm a, ±b\pm b can give either length an unbiased linear estimate with variance below σ2/2\sigma^2/2.
  3. (Bonus) With nn rods and nn measurements, how small can the variance be made?
varianceexperimental designHadamard matrixunbiased estimationweighing design

Answer: Doubling Your Accuracy

Key Idea / Intuition

Measuring rods one at a time is wasteful, because each measurement tells you about only one rod. If every measurement involves both rods, then each rod is effectively measured twice. Adding the sum and the difference recovers each length. The two independent errors then get averaged, which halves the variance. This is the seed of weighing designs and Hadamard designs in the theory of experimental design. The best designs use measurements whose coefficient vectors are orthogonal and have entries ±1\pm1.


Formal Proof / Solution

1. The scheme

Assume without loss of generality that a≥ba \ge b. If not, swap the names; the side-by-side comparison shows which rod sticks out.

  • Measurement 1 (end to end): S=(a+b)+ε1S = (a+b) + \varepsilon_1.
  • Measurement 2 (side by side): D=(a−b)+ε2D = (a-b) + \varepsilon_2.

Define

a^=S+D2,b^=S−D2.\hat a = \frac{S+D}{2}, \qquad \hat b = \frac{S-D}{2}.

Unbiasedness. Since E[εi]=0\mathbb{E}[\varepsilon_i]=0,

E[a^]=(a+b)+(a−b)2=a,E[b^]=(a+b)−(a−b)2=b.\mathbb{E}[\hat a] = \frac{(a+b)+(a-b)}{2} = a, \qquad \mathbb{E}[\hat b] = \frac{(a+b)-(a-b)}{2} = b.

Variance. We have a^−a=12(ε1+ε2)\hat a - a = \tfrac12(\varepsilon_1+\varepsilon_2) and b^−b=12(ε1−ε2)\hat b - b = \tfrac12(\varepsilon_1-\varepsilon_2). The errors are independent, so

Var⁡(a^)=Var⁡(b^)=σ2+σ24=σ22.\operatorname{Var}(\hat a) = \operatorname{Var}(\hat b) = \frac{\sigma^2+\sigma^2}{4} = \frac{\sigma^2}{2}.

The two estimates are also uncorrelated:

Cov⁡(a^,b^)=14(Var⁡ε1−Var⁡ε2)=0.\operatorname{Cov}(\hat a,\hat b) = \tfrac14\big(\operatorname{Var}\varepsilon_1 - \operatorname{Var}\varepsilon_2\big) = 0.

So with the same two measurements, each length is estimated as precisely as if it had been measured twice on its own. The accuracy is "doubled" in the sense that the variance is halved.

2. Optimality (bonus)

Write a general two-measurement design as Y=Xθ+εY = X\theta + \varepsilon, where θ=(a,b)⊤\theta = (a,b)^\top. Here XX is a 2×22\times 2 matrix with entries in {−1,0,1}\{-1,0,1\} and Cov⁡(ε)=σ2I\operatorname{Cov}(\varepsilon)=\sigma^2 I.

Reduction to the matrix X⊤XX^\top X. For both aa and bb to be estimable, XX must be invertible. The unique linear unbiased estimator is then θ^=X−1Y\hat\theta = X^{-1}Y. This is the same as least squares, so

Cov⁡(θ^)=σ2(X⊤X)−1.\operatorname{Cov}(\hat\theta) = \sigma^2 (X^\top X)^{-1}.

A lower bound on the diagonal. Let M=X⊤XM = X^\top X, which is symmetric positive definite. For such a matrix,

(M−1)ii  ≥  1Mii.(M^{-1})_{ii} \;\ge\; \frac{1}{M_{ii}}.

To see this, apply Cauchy–Schwarz to ei⊤ei=(M1/2ei)⊤(M−1/2ei)e_i^\top e_i = (M^{1/2}e_i)^\top(M^{-1/2}e_i):

1=(ei⊤ei)2≤(ei⊤Mei)(ei⊤M−1ei).1 = (e_i^\top e_i)^2 \le (e_i^\top M e_i)(e_i^\top M^{-1} e_i).

Bounding MiiM_{ii}. The entry Mii=∑kxki2M_{ii} = \sum_k x_{ki}^2 is a sum of two terms, each at most 11. So Mii≤2M_{ii} \le 2, and therefore

Var⁡(θ^i)=σ2(M−1)ii≥σ22.\operatorname{Var}(\hat\theta_i) = \sigma^2 (M^{-1})_{ii} \ge \frac{\sigma^2}{2}.

When equality holds. Equality requires two things:

  • every entry of XX is ±1\pm1, so that Mii=2M_{ii}=2;
  • MM is diagonal, so that Cauchy–Schwarz is tight.

That is exactly the sum/difference design. ■\blacksquare

3. nn rods, nn measurements (bonus)

The same argument shows that Var⁡(θ^i)≥σ2/n\operatorname{Var}(\hat\theta_i) \ge \sigma^2/n. Equality holds if and only if XX has entries ±1\pm1 and X⊤X=nIX^\top X = nI, which means XX is a Hadamard matrix. In that case

θ^=1nX⊤Y,Var⁡(θ^i)=σ2n.\hat\theta = \tfrac1n X^\top Y, \qquad \operatorname{Var}(\hat\theta_i) = \frac{\sigma^2}{n}.

So nn measurements give each of the nn objects the precision of nn separate measurements. That is an nn-fold gain over measuring one at a time. This is possible whenever a Hadamard matrix of order nn exists (for example, n=2kn = 2^k).

In a physical setting, "++" means placing a rod on one side of a two-pan balance and "−-" means placing it on the other side. This is Hotelling's and Yates' chemical balance weighing problem.


Why it's interesting

  • Field: Probability / statistics (design of experiments).
  • The surprise: you cannot get more measurements, but you can make each measurement carry information about every unknown. The noise then averages out across the measurements.
  • Connections: the same idea underlies Hadamard spectroscopy, orthogonal designs in experimental design, and the general principle that orthogonal regressors minimize OLS variance.
  • Difficulty: 2/5.
  • Source: Mosteller, Fifty Challenging Problems in Probability with Solutions, problem "Doubling Your Accuracy." The optimality argument and the Hadamard generalization are standard extensions.

Source: Frederick Mosteller, Fifty Challenging Problems in Probability with Solutions — 'Doubling Your Accuracy'

Type: ProbabilitySource: Frederick Mosteller, Fifty Challenging Problems in Probability with Solutions — 'Doubling Your Accuracy'Edit on GitHub ↗