FAQ/matalg - CBU statistics Wiki

Revision 6 as of 2010-03-10 15:19:17

Clear message
location: FAQ / matalg
  • = Matrix algebra derivation of Sums of Squares =

$$Z^{T}$$ =

1,...,1

$$z_text{1}, … ,z_text{N}$$

$$Z^{T}Z =$$

N

$$\sum_text{i}z_text{i}$$

$$\sum_text{i}z_text{i}$$

$$\sum_text{i}z_text{i}^text{2}$$

$$(Z{T}Z){-1} =$$

$$\frac{\sum_{i}z_{i}{2}}{N\sum_text{i}z_{i}{2}} $$

0

0

$$\frac{N}{N\sum_text{i}z_{i}^{2}}$$

which may be more simply as expressed as

$$(Z{T}Z){-1} =$$

$$\frac{1}{N} $$

0

0

$$\frac{1}{\sum_text{i}z_{i}^{2}}$$

$$Z^{T}Y =$$

$$\sum_text{i} y_text{i}$$

$$\sum_text{i}z_text{i}y_text{i}$$

Then the regression terms are obtained using the least squares estimate B = $$(Ztext{T}Z)text{-1}Z^text{T}Y$$. Two terms required: in the regression of the standardised covariate on the difference in a pair of response level means we require the regression estimate of the intercept (W1) and covariate (W1 x covariate).

For the intercept using the above: B = average difference between levels of W1, call this $$\bar{y}$$

For the W1 x covariate interaction B = $$\frac{\sum_text{i}z_text{i}y_text{i}}{\sum_text{i}z_{i}^{2}}$$