Random Variables and Expectation

20 min
0/4 practice checks

A random variable XX assigns a number to each outcome of an experiment — for instance, the number shown on a die, or your winnings in a game. Its probability distribution lists each value with its probability, and those probabilities sum to 1.

The expected value E[X]E[X] is the long-run average — each value weighted by its probability:

E[X]=xP(x).E[X] = \sum x \cdot P(x).

Worked example. For a fair die, E[X]=1+2+3+4+5+66=216=3.5E[X] = \dfrac{1+2+3+4+5+6}{6} = \dfrac{21}{6} = 3.5. You will never roll a 3.5, but over thousands of rolls the average settles there.

The expected value E[X]E[X] of a random variable is best described as:

A fair six-sided die is rolled. What is the expected value of the number shown?

A random variable XX takes value 0 with probability 0.5, value 1 with probability 0.3, and value 2 with probability 0.2. Find E[X]E[X].

A school raffle ticket costs R5. There is a 0.05 probability of winning the R50 prize and a 0.95 probability of winning nothing. What is the expected profit (in rand) from buying one ticket? (A loss is negative.)