Use means and covariances to find the affine estimate with the smallest mean-square error. The derivation also shows how to handle redundant observations.
A covariance matrix tells you how measurements vary together. Learn what its diagonal and off-diagonal entries mean and how to estimate the matrix from samples.
Fit a model by minimizing the sum of squared residuals. Learn how the normal equations arise, when the solution is unique, and why QR or SVD is preferable to an explicit inverse.