Let x_{s,t} be the 1 × k vector of explanatory variables for observation s such that
X_t = [x_{1,t} x_{2,t} ... x_{n,t}]' = [x_{11,t} x_{12,t} ... x_{1k,t}; x_{21,t} x_{22,t} ... x_{2k,t}; ...; x_{n1,t} x_{n2,t} ... x_{nk,t}],
so that for s = 1, ..., n
x_{s,t} = [x_{s1,t} x_{s2,t} ... x_{sk,t}],
and
y_t = [y_{1,t} y_{2,t} ... y_{n,t}]',
where s = 1, 2, ..., n. Show that the OLS estimator β̂ can be written as:
β̂ = (∑_{s=1}^{n} x'_{s,t} x_{s,t})^{-1} (∑_{s=1}^{n} x'_{s,t} y_{s,t}).