KatInterview

Pooling Two Sensors and Correlation in a Lattice Walk

Statistics & ExperimentsModel answer
MediumModel answerStatistics & ExperimentsestimationBLUEinverse-variance weighting

Last updated

Find the minimum-variance linear unbiased way to pool readings from two sensors, then compute the correlation of coordinates, and of their absolute values, for a walk on the square lattice.

Part 1: Pooling readings from two sensors

A room has a fixed but unknown true temperature $\theta$.

1a. One sensor. Sensor A gives $n$ i.i.d. readings $X_1,\dots,X_n$ with $\mathbb E[X_i]=\theta$ and $\mathrm{Var}(X_i)=\sigma_1^2$.

  • Propose an estimator of $\theta$ and give its variance.
  • Argue why it is a sensible, or optimal, choice.

1b. Two sensors. Sensor B gives $m$ i.i.d. readings $Y_1,\dots,Y_m$ with $\mathbb E[Y_j]=\theta$ and $\mathrm{Var}(Y_j)=\sigma_2^2$. Every $X_i$ is independent of every $Y_j$. You may assume $\sigma_1^2$ and $\sigma_2^2$ are known.

  • Among all linear unbiased estimators built from all $n+m$ readings, find the one with the smallest variance.
  • Give the optimal weights and the resulting variance.
  • Say what you would do if the variances were unknown.

Part 2: A walk on the square lattice

A walker starts at the origin $(0,0)$. At every step it moves one unit up, down, left or right, each with probability $1/4$, independently of earlier steps. Let $(X_n, Y_n)$ be its position after $n$ steps.

2a. Compute $\mathrm{Corr}(X_n, Y_n)$.

2b. Study $\mathrm{Corr}(|X_n|, |Y_n|)$.

  • Give a correct exact expression, even if it is not a neat closed form.
  • Determine the sign of the correlation.
  • Determine its behaviour as $n\to\infty$.
  • Check your answer on small $n$.

Hints

Hint 1

For any linear estimator, write the coefficients as weights. Unbiasedness forces them to sum to 1. Then minimize the sum of weight^2 times variance under that constraint.

Hint 2

For two sensors, first reduce each sensor to its sample mean, with variances sigma1^2/n and sigma2^2/m. Then pick the mixing weight w to minimize w^2 v1 + (1-w)^2 v2.

Hint 3

For 2a, look at a single step: can the horizontal and vertical displacements both be nonzero at the same time? Then use independence of steps to add covariances.

Hint 4

For 2b, condition on H, the number of horizontal steps (Binomial(n, 1/2)). Given H, the two coordinates are independent 1D walks of lengths H and n-H. The covariance then comes only from how E|S_k| depends on k.