Legendary Math Warrior

In the game of Hearthstone, wins and losses are reflected by the amount of stars a player obtains.

A player gains a star per win, loses a star per loss, and gains two stars instead of one for a win after the second win (from the third win onwards).

If a player has a consistent 50% win rate , what is the expected net gain/loss in the number of stars in 9722 games?


Assume that the player has never played Hearthstone before, there are no ranks, there is no limit of positive/negative stars and there are no ties.


The answer is 1215.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

2 solutions

Lolly Lau
Jan 7, 2017

Let P P be the probability of winning a game.

Expected star gain per game in the first two games:

1 × P ( w i n ) + ( 1 ) × P ( l o s e ) 1\times P(win)+(-1)\times P(lose)

= P ( 1 P ) =P-(1-P)

= 2 P 1 =2P-1

Expected star gain per game from the third game onwards:

1 × P ( w i n ) + ( 1 ) × P ( l o s e ) + 1 × ( P ( w i n ) ) 3 1\times P(win)+(-1)\times P(lose)+1\times (P(win))^3

= P ( 1 P ) + P 3 =P-(1-P)+P^3

= P 3 + 2 P 1 =P^3+2P-1

Expected star gain for N N games

2 × ( 2 P 1 ) + ( N 2 ) ( P 3 + 2 P 1 ) 2\times(2P-1)+(N-2)(P^3+2P-1)

Expected star gain when N = 9722 N=9722 and P = 1 2 P=\frac{1}{2} :

2 × ( 2 × 1 2 1 ) + ( 9722 2 ) × ( ( 1 2 ) 3 + 2 × 1 2 1 ) 2\times(2\times\frac{1}{2}-1)+(9722-2)\times((\frac{1}{2})^3+2\times\frac{1}{2}-1)

= 1215 =\textbf{1215}

If you reach rank 5, you get one star with consecutive wins.

梦 叶 - 4 years, 5 months ago

Log in to reply

Please spare me from the rank mechanism facepalms

Lolly Lau - 4 years, 5 months ago

The phrasing of the problem "gains two stars instead of one for every consecutive win after the second win" is pretty confusing enough to me. Are you trying to say that "If he wins 5 times in a row, he gets 1+2+2+2 stars?"

Calvin Lin Staff - 4 years, 5 months ago

Log in to reply

Good point; tried amending it a bit but seems weird

Lolly Lau - 4 years, 5 months ago
Eric Kim
Jan 8, 2017

For the first two cases, you have (1/2)(1) + (1/2)(-1) for each game, bevause you have a 50% chance of losing a point and a 50% chance of gaining a point. This turns out to be 0.

For the cases from Game 3 - Game 9722, they have a chance of being a 3rd or more consecutive win.

The probability that the last two games were wins is (1/2)(1/2) = 1/4. Since you get 2 points from a 3rd or more consecutive win, you get (1/4)(1/2)(2) + (1/4)(1/2)(-1) + (3/4)(1/2)(1) + (3/4)(1/2)(-1), which becomes 1/8.

Multiple (9722-3+1) by 1/8, and get 1215.

This is called Linearity of Expectation.

...which actually becomes 3/8 according to your equation.

Lolly Lau - 4 years, 5 months ago

Log in to reply

My bad, I forgot a nevative sign for the point lost

Eric Kim - 4 years, 5 months ago

Log in to reply

Awesome! :)

Lolly Lau - 4 years, 5 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...