For a 3-sided die $(1, 2, 3)$ and random variable $X$ for outcomes, the expected value $E(X)$ is such that $$E(X)=\frac{1}{3}\times 1 + \frac{1}{3}\times 2 + \frac{1}{3}\times 3$$ This is ok.
But when the outcomes are not quantities I have a problem e.g. for a coin toss we have heads and tails. How do I calculate the expected value in this case? If $X$ is the random variable representing the outcomes of coin toss then $E(X) = \frac{1}{2}\times ?? + \frac{1}{2}\times ??$
Gracias in advance.