(a) Consider the general linear model Y=Xθ+ε where X is a known n×p matrix, θ is an unknown p×1 vector of parameters, and ε is an n×1 vector of independent N(0,σ2) random variables with unknown variances σ2. Show that, provided the matrix X is of rank p, the least squares estimate of θ is
θ^=(XTX)−1XTY
Let
ε^=Y−Xθ^
What is the distribution of ε^Tε^ ? Write down, in terms of ε^Tε^, an unbiased estimator of σ2.
(b) Four points on the ground form the vertices of a plane quadrilateral with interior angles θ1,θ2,θ3,θ4, so that θ1+θ2+θ3+θ4=2π. Aerial observations Z1,Z2,Z3,Z4 are made of these angles, where the observations are subject to independent errors distributed as N(0,σ2) random variables.
(i) Represent the preceding model as a general linear model with observations (Z1,Z2,Z3,Z4−2π) and unknown parameters (θ1,θ2,θ3).
(ii) Find the least squares estimates θ^1,θ^2,θ^3.
(iii) Determine an unbiased estimator of σ2. What is its distribution?