3.4 Expectation

  • Parameters extracted from datasets, such as mean and standard deviation can also be modelled via ideal versions using random variables.

  • Definition: The expectation of a random variable X is E[X]=xX(Ω)xpX(x) .

  • Expectation is the mean of the random variable X.

  • E[X] does not necessarily match with some state, it’s more like a center of mass between all the states of X.

  • Example: Game with reward after flipping a coin 3 times.

  • Reward:

    • 0 usd, if there are 0 or 1 head.
    • 1 usd, if there are 2 heads.
    • 8 usd, if there are 3 heads.
  • Model:

    • X: Number of heads after flipping a fair coin 3 times.
    • Y: Reward obtained from this game.
  • Sample space: HHH, HHT, HTH, THH, THT, TTH, HTT, TTT .

  • Values obtained:

    • pX(0)=1/8,pX(1)=3/8,pX(2)=3/8,pX(3)=1/8
    • pY(0)=pX(0)+pX(1)=4/8
    • pY(1)=pX(2)=3/8
    • pY(8)=pX(3)=1/8
  • Expected reward:

    • E[Y]=04/8+13/8+81/8=11/8 .
    • Therefore, if the cost of the game is greater than 11/8 usd, then, we would lose money (on average).