Gambling game - tokens in bins

Consider a game like this: a coin is flipped; if H then draw a token from Bin 1, if T then from Bin 2.

  • Bin 1 contents: 1 token $1,000, and 9 tokens $1
  • Bin 2 contents: 5 tokens $50, and 5 tokens $1

It costs $50 to enter the game. Should you play it? (A lot of times?) How much would you pay to play?

Solution

(1) Setup:

Let X be a random variable measuring your winnings in the game.

The possible values of X are 1, 50, and 1000.


(2) Find the PDF of X:

For k=1 have PX(1)12910+12510710

For k=50 have PX(50)1251014

For k=1000 have PX(1000)12110120

These add to 1, and PX(x)=0 for all other x.


(3) Find E[X] using the discrete formula:

E[X]=kkPX(k)1PX(1)+50PX(50)+1000PX(1000)1710+5014+100012063.2

Since 63.2>50, if you play it a lot at $50 you will generally make money.


Challenge Q: If you start with $200 and keep playing to infinity, how likely is it that you go broke?

Expected value: rolling dice

Let X be a random variable counting the number of dots given by rolling a single die.

Then:

E[X]116+216++61672

Let S be an RV that counts the dots on a roll of two dice.

The PMF of S:

center Then:

E[S]2136+3236+4336++121367

Notice that 72+72=7.

In general, E[X+Y]=E[X]+E[Y].

Let X be a green die and Y a red die.

From the earlier calculation, E[X]=72 and E[Y]=72.

Since S=X+Y, we derive E[S]=7 by simple addition!

Expected value by finding new PMF

Let X have distribution given by this PMF:

center Find E[|X2|].

Solution

(1) Compute the PMF of |X2|:

PMF arranged by possible value:

P[|X2|=0]P[X=2]=114P[|X2|=1]P[X=1]+P[X=3]=17+314=514P[|X2|=2]P[X=4]=27P[|X2|=3]P[X=5]=27P[|X2|=k]0fork0,1,2,3.

(2) Calculate the expectation:

Using formula for discrete PMF:

E[|X2|]0114+1514+227+3272514

Variance for composite using PMF and simpler formula

Suppose X has this PMF:

k:123
PX(k):1/72/74/7

Find Var[11+X] using the formula Var[Y]=E[Y2]E[Y]2 with Y=11+X.

(Hint: you should find E[Y]=1342 and E[Y2]=13126 along the way.)