Just a note: this is a homework question, so feel free to prod me towards the answer if you want :) Also, I'm pretty bad at statistics so sorry in advance if I'm stupid :/
I'm asked to write the "differential effects" version of a one-way ANOVA, that is:
$ Y_{i,j} = \mu + \alpha_j + \epsilon_{i,j} $
Given $\mu$ is the overall mean, $\sum_{j=1}^{k}\alpha_j = 0 $, and $ \epsilon_{i,j} \sim Normal(0, \sigma^2) $
as a linear model:
$ Y = A\beta + \epsilon $
Also, there are $ k = 4 $ levels, 2 observations per level and the design matrix can only contain elements from $ { -1, 0, 1 }.
This wikipedia article gives something that looks like what I'm looking for, but from what I can tell, it doesn't fulfill the constraint of $\sum_{j=1}^{k}\alpha_j = 0 $.
I want to say the answer is:
$$ \begin{bmatrix} y_{1,1} \\ y_{1,2} \\ y_{2,1} \\ y_{2,2} \\ y_{3,1} \\ y_{3,2} \\ y_{4,1} \\ y_{4,2} \end{bmatrix} = \begin{bmatrix} 1 & 0 & 0 & 0 \\ 1 & 0 & 0 & 0 \\ 0 & 1 & 0 & 0 \\ 0 & 1 & 0 & 0 \\ 0 & 0 & 1 & 0 \\ 0 & 0 & 1 & 0 \\ 0 & 0 & 0 & 1 \\ 0 & 0 & 0 & 1 \end{bmatrix} \times \begin{bmatrix} \mu + \alpha_1 \\ \mu + \alpha_2 \\ \mu + \alpha_3 \\ \mu + \alpha_4 \\ \end{bmatrix} + \begin{bmatrix} \epsilon_{1,1} \\ \epsilon_{1,2} \\ \epsilon_{2,1} \\ \epsilon_{2,2} \\ \epsilon_{3,1} \\ \epsilon_{3,2} \\ \epsilon_{4,1} \\ \epsilon_{4,2} \end{bmatrix} $$
But that seems too straight-forward... I've not really done anything with the design matrix, and I haven't used any $-1$'s (although I'm not really sure when you'd have to).
Is there something else it could be? Is there some other thing they could be asking for?