Here is the question, from this video
In a barn, 100 chicks sit peacefully in a circle. Suddenly, each chick randomly pecks the chick immediately to its left or right. What is the expected number of unpecked chicks?
So if the chicks are equally likely to peck left or right, the answer is 25.
If we consider a single chick, the chance it is pecked is $3/4$ and the chance it isn't is $1/4$.
Let the random variable be
$$Z = \begin{cases} 0, & \text{if chick is pecked} \\ 1, & \text{if chick is not pecked} \end{cases}$$
and so for each chick $$E[Z_i] = 0 * P(0) + 1 * P(1)$$ $$= 1/4$$
And by the linearity of expectation, we get 25.
$E[Z_i]$ is basically the probability that chick $i$ is not pecked. By my understanding, $Z$ can map any value to any outcome, it's our choice.
So what if we reversed, and had
$$Z = \begin{cases} 1, & \text{if chick is pecked} \\ 0, & \text{if chick is not pecked} \end{cases}$$
Then $E[Z_i] = 3/ 4$, and our answer would be 75.
Or what if we had
$$Z = \begin{cases} 331, & \text{if chick is pecked} \\ 798, & \text{if chick is not pecked} \end{cases}$$
then $E[Z_i] = 1791/ 4$, and the sum of the expected values would be 44,775. How do we choose the correct values for the random variables, or am I interpreting the results wrong?
I really don't understand the point of random variables. We could have easily deduced the answer 25, by saying that there is a 25% chance a chick is not pecked, and so for 100 chicks, 25 of them will be not be pecked. We really don't even need to talk about expected value either.