I have to calculate the variance:
$\mathsf{Var}(aX + bY + cZ + d)$
I know that a,b,c,d are positive and that $X, Y$ and $Z$ have a common uniform distribution on $\big\{(x,y,z) \in \{0,3\}^3: x + y + z\text{ is a twofold}\big\}$.
The question is to calculate $\mathsf{Var}(aX + bY + cZ + d)$
I used the common rules to calculate the variance but I don't see why the solution must be
${\mathsf{Var}(aX + bY + cZ + d) } = {a^2\mathsf{Var}(X) + b^2\mathsf{Var}(Y) + c^2\mathsf{Var}(X) \\+ ab\mathsf{Cov}(X,Y) + ac\mathsf{Cov}(X,Z) + bc\mathsf{Cov}(Y,Z)}$
Can anyone help me with this? I assume that X, Y, and Z are numbers and dependent.
Your expression isn't quite right. There should be $2$'s in front of every covariance term. It might help to first derive the following expression for two random variables:
Var($aX + bY$) = $a^2$Var($X$) + $b^2$Var($Y$) + $2ab$Cov($X,Y$)
As a start,
Var($aX + bY$) = $\mathbb{E}[(aX + bY - a\mu_X - b\mu_Y)^2] \\ = \mathbb{E}[(aX - a\mu_X)^2] + \mathbb{E}[(bY - b\mu_Y)^2] + 2\mathbb{E}[(aX - a\mu_X)(bY - b\mu_Y)]$