vpFREE2 Forums

Risk of Ruin Before Royal

Steve Jacobs wrote:

I do an exact calculation. The math is quite similar to solving Risk of Ruin
problems, except that you calculate "risk of going broke before hitting a
royal" in place of "risk of going broke before playing forever." One big
difference is that Risk of No Royal is always less than 1.0000 even for
unfavorable games.

I'll use F (for "Failure") for the variable that represents probability of
going broke before hitting a royal (same concept as variable R in RoR
equations). For 9/6 JoB, F = 0.9990516541327410. F^731 = 0.49978876,
so 731 units give slightly better than 50% chance of hitting the royal.

Probability of success (hitting a royal) is (1 - F) = 0.0009483458672590
= 1/1054.467609892 for a bankroll of one unit. For a bankroll of B units,
the probability of success is (1 - F^B).

The difference in our results is large enough that it should be easy to
test by simulation. Of course, it would take a special simulation that
stops with "success" whenever a royal is hit, while stopping with "failure"
whenever the player goes broke. I feel confidant that such a simulation
will back up my number and show that the Poisson Distribution gives a
poor approximation for this calculation (but, of course, I might be wrong).

Both of our methods necessarily assume that lesser payoffs occur in
the expected frequency, so a simulation may be more accurate than
either method.

Since the Poisson Distribution formula has been accepted by
mathematicians for nearly 200 years, I am confident that my method is
accurate enough provided your bankroll is sufficient to play at least
one cycle without hitting a royal. (For this reason, Optimum Video
Poker does not do this calculation for smaller bankrolls.)

I wrote a Risk of Ruin by simulation program several years ago and
ran it for 9/6 JoB, 10/7 DB and FPDW. The results were published in
Video Poker Times and currently in All The Best of Video Poker Times.
Readers may want to compare the results of the Sorokin formula with
those simulations. I'll see if I can find that program. If I can, it
shouldn't be hard to modify it to stop on a royal.

Dan

···

--
Dan Paymar
Author of best selling book, "Video Poker - Optimum Play"
Editor/Publisher of VP newsletter "Video Poker Times"
Developer of VP analysis/trainer software "Optimum Video Poker"
Visit my web site at www.OptimumPlay.com

"Chance favors the prepared mind." -- Louis Pasteur

[Non-text portions of this message have been removed]

[long and somewhat technical]

Steve Jacobs wrote:
>I do an exact calculation.

Dan Paymar wrote:

Since the Poisson Distribution formula has been accepted by
mathematicians for nearly 200 years, I am confident that my method is
accurate enough provided your bankroll is sufficient to play at least
one cycle without hitting a royal.

First, let me jump to the punch line:
neither Dan or Steve is correct in their respective estimates.
But it's not really their fault per-se, but rather that the "questions" fault.

So what actually went wrong? Let's start at the very beginning....

Steve reported two quantities for 9/6 JoB (Max EV strategy):
(a) that starting with a single unit bankroll, a player has a 1/1054.467609892
probability to survive long-enough to hit a royal flush.
(b) He also reported that a bankroll of 731 units is needed in order to have better than a
50% chance of hitting a royal before going broke.

Let's look at each quantities separately:

(a) probability of a player with 1 unit bankroll of a hitting a RF

···

----------------------------------------------------------------------------
----------
The probability of hitting a royal flush in 1 hand is (approx.) : P(RF) = 2.6262e-05
This corresponds to a Royal "cycle" of C = 1/P(RF) = 38077.8 hands. Let's round this to
38079.
Given this Royal cycle, we can compute the likelihood of hitting at least 1 RF in n hands,
using the poisson distribution. Keep in mind that hitting at least 1 RF is means you didn't
hit ZERO RF's (don't forget the 1)

P( at least 1 RF, n hands) = 1 - exp(- n/C) , where exp(a) = ln(2)^a, where ln(2) is the
natural logarithm of 2.

[Let's make sure this formula makes sense: if n = 0, P=0 as it should. Likewise, of
n=infinity, P =1, as it should. Great]

I'll call the probability that a player survives for n hands given a bankroll of B units , [1-
RoR(n,B)]., where RoR is the Risk of Ruin for n hands an a bankroll B. This can be exactly
computed using standard techniques (see Jazbo's web page) and does not require monte
carlo simulation. In general, these RoR curves look something like a sigmoid, with an
asymptote that goes to 100% RoR (0% survivability) for negative EV games.

To find the probability of a player with a 1 unit bankroll hitting at least 1 RF we just
multiply the two factors to yield: [1-RoR(n,B)]*[1-exp(-n/C)]

Now' let's look at the behavior of this result as a function of the number of hands played,
or n.
Interestingly, as n increases the first factor (the survivability) decreases but the second
factor (from the poisson distribution) increases !
But that's not all. When you multiply the two factors, you find some seemingly bizarre
behavior!
For a small number of hands, as you play more, the overall likelihood of hitting that RF
(and not going broke) increases. Then, it starts to level out... and then finally decreases!
Yup, there is maximum value to the product function. Why? Well, the second factor from
the Poisson distribution as a maximum value of 1 (which occurs for n = inf). The first
factor, the surrivability, has an (inverted) s-like shape and continues to (asymptotically)
decrease to zero at a faster rate. So for a very large number of hands, the probability
must decrease as it must for all negative EV games (RoR goes to 100%).

So.. let's put some numbers on this. A player with a 1 unit bankroll has about a 16/1000
chance of reaching 10,000 hands. At 10,000 hands, the likelihood of hitting at least 1 RF
is about 0.23, so the overall probability is then about 0.000375 or about 1/2665 (no
where near 1054). That same player also has a chance of 0.00121495 of reaching 20,000
hands (a priori, not after reaching 10K hands!) and a about 0.4086 chance of hitting at
least 1 RF, and and therefore an overall probability of 0.000496 or 1/2014 or so. Yup,
this is a lower number than for 10K hands, as expected.

Well... what is the answer then? I'm not sure. My feeling is the question is poorly framed,
and I don't yet know the best way to answer it with a "single" number.
One way to fix the problem is to rewrite it as "what is the likelihood of a player with a 1
unit bankroll hitting at least 1 RF **given that the player survives an average number of
hands**?" By modifying the question in this way, the number of hands becomes
computable, and the solution is easily determined using the formula I gave above.

One could also argue that the problem can't be fixed, since a player never has a 100%
likelihood of hitting at least 1 RF, unless one plays an infinite number of hands. But, for
Job, a negative EV, the survivability of an infinite number of hands is 0. Oh well.

Perhaps there are other ways to "fix" this problem.... any comments from the group?

(b) number of units needed in order to have better than a 50% chance of hitting a royal
before going broke
----------------------------------------------------------------------------
----------
We can use the same approach I came up with above, with a modification to handle the
50% number.... or can we (actually no, but I am jumping ahead)

So, how many hands are necessary to have a 50% likelihood of hitting at least 1 RF? That
's easy... simply solve for n in 1-exp(-n/C) = 0.5
The answer is.... n = - c * ln(0.5) . FOr 9/6 JoB, n= 26394 hands (or so). But do we do
with this number? Nothing, it is not relevant (why? it does not include the survivability
factor)!

Ok, let's start again, this time, using the correct formula: we need to find n and B so that

[1-RoR(n,B)]*[1-exp(-n/C)] >=.5

Well, it should be clear to at least some of you that there is more than one answer.
Indeed, there are an infinite number of answers. But, we can modify the question a just a
little to read: what is the *smallest* number of units needed in order to have better than a
50% chance of hitting a royal before going broke?

By trial an error one can home in on an answer:

600 units: 10,000 hands has a Prob of survival of 0.959581 or so.
The prob of a at least 1 RF is 0.23096
Hence the overall probability is about 22% (too small)

1000 units: for 10,000 hands the overall prob is only 23% , still too small (survivability
was 0.999968)
So, either a lot more hands need to be played, or a lot more money needs to be risked.

How many more hands? well at 26394 hands, the probability is 50% that at least 1 RF will
be hit... but the survivability is less than 100% (for even 1000 unit bankroll).
So, surely more than 27,000 hands will need to be played.... time to fire up the old pc
(this will take a while)

drum-roll.....For 1000 units, the max. likihood of achieving at least 1 royal flush occurs at
29848 hands and is....(suspense bulids) 0.456324
[In case you care, that is 83.983% survivability and a 0.543353% chance of hitting at least
1 royal]

So my answer is that more than 1000 units are needed. Unless we modify the question in
some other interesting way....

[long and somewhat technical]

> Steve Jacobs wrote:
> >I do an exact calculation.
>>
>> Dan Paymar wrote:
>
> Since the Poisson Distribution formula has been accepted by
> mathematicians for nearly 200 years, I am confident that my method is
> accurate enough provided your bankroll is sufficient to play at least
> one cycle without hitting a royal.

For some reason, neither my post nor Dan's response were among the
other emails from VPFree that I received today. I think Yahoo's group
server is losing stuff.

Dan, the fact that mathematicians have used the Poisson Distribution for
200 years does not imply that it is correct (much less exact) to apply it
to this particular problem. Having a "sufficient bankroll" has nothing to
do with it. Ask yourself this question: If the Poisson Distribution is so
wonderful for problems of this type, why don't you use it to compute
RoR based on bankroll? Answer: because RoR can be computed
exactly by using a formula that has nothing to do with the Poisson
Distribution. One should strive to use the correct tools for the job
at hand.

I'm kind of sorry I brought it up. My only intent was to help you to
produce more accurate results for your program. If my numbers are
correct, then your bankroll of 984 units gives a 60.7% chance of
hitting a royal. Sounds more like a rough guess than something
that I'd call "accurate enough," but perhaps my standards are
unreasonably high.

First, let me jump to the punch line:
neither Dan or Steve is correct in their respective estimates.

Please see my statement above. My claim is that my number
is not an estimate, it is the exact probability of surviving until
hitting a royal.

But it's not really their fault per-se, but rather that the "questions"
fault.

So what actually went wrong? Let's start at the very beginning....

Steve reported two quantities for 9/6 JoB (Max EV strategy):
(a) that starting with a single unit bankroll, a player has a
1/1054.467609892 probability to survive long-enough to hit a royal flush.
(b) He also reported that a bankroll of 731 units is needed in order to
have better than a 50% chance of hitting a royal before going broke.

These two numbers are entirely consistent with each other.

The probability of starting with 1 unit and going broke without hitting
a royal is 0.999051654, so the probability of going broke when starting
with 731 units is 0.999051654^731 = 0.4997887, giving slightly better
than a 50% chance of hitting a royal.

Let's look at each quantities separately:

(a) probability of a player with 1 unit bankroll of a hitting a RF
---------------------------------------------------------------------------
- ----------
The probability of hitting a royal flush in 1 hand is (approx.) : P(RF) =
2.6262e-05 This corresponds to a Royal "cycle" of C = 1/P(RF) = 38077.8
hands. Let's round this to 38079.

I don't know where you got these numbers. The probability for hitting
a royal on one play of 9/6 JoB is 2.4758268e-05, giving a royal cycle
of 40390.5474519. Your numbers here are off by 6%.

Given this Royal cycle, we can compute the likelihood of hitting at least 1
RF in n hands, using the poisson distribution. Keep in mind that hitting
at least 1 RF is means you didn't hit ZERO RF's (don't forget the 1)

The problem with using the posson distribution is the implicit assumption
that you _will_ play n hands. This precludes any possibility that the
player will be forced to halt play due to losing the bankroll. So, using
the poisson distribution here is not correct.

P( at least 1 RF, n hands) = 1 - exp(- n/C) , where exp(a) =
ln(2)^a, where ln(2) is the natural logarithm of 2.

[Let's make sure this formula makes sense: if n = 0, P=0 as it should.
Likewise, of n=infinity, P =1, as it should. Great]

I'll call the probability that a player survives for n hands given a
bankroll of B units , [1- RoR(n,B)]., where RoR is the Risk of Ruin for n
hands an a bankroll B. This can be exactly computed using standard
techniques (see Jazbo's web page) and does not require monte carlo
simulation. In general, these RoR curves look something like a sigmoid,
with an asymptote that goes to 100% RoR (0% survivability) for negative EV
games.

Such a calculation is incompatible with computing the probability of hitting
a royal before going broke. The reason is this: Jazbo's survivability curves
and the value for RoR are both derived, in part, by the _value_ paid for a
royal flush. The higher the royal payoff, greater the survivability and the
lower the RoR for the game. However, the probability of surviving until
hitting a royal is _completely_ independent of the value paid for a royal,
and depends _only_ on the payoffs for non-royal hands. This is also true
when computing the average cost of a royal. Clearly, if the royal payoff
is used in the equations, then the result cannot be exact. My result is
independent of the royal payoff.

A better approximation would use "survivability while excluding the royal"
instead of Jazbo's survivability curve.

To find the probability of a player with a 1 unit bankroll hitting at
least 1 RF we just multiply the two factors to yield:
[1-RoR(n,B)]*[1-exp(-n/C)]

Sorry, but that is at best an approximation. Even if you use a more
appropriate survivability curve, I believe it will still be an approximation.

Now' let's look at the behavior of this result as a function of the number
of hands played, or n.
Interestingly, as n increases the first factor (the survivability)
decreases but the second factor (from the poisson distribution) increases !
But that's not all. When you multiply the two factors, you find some
seemingly bizarre behavior!
For a small number of hands, as you play more, the overall likelihood of
hitting that RF (and not going broke) increases. Then, it starts to level
out... and then finally decreases! Yup, there is maximum value to the
product function. Why? Well, the second factor from the Poisson
distribution as a maximum value of 1 (which occurs for n = inf). The first
factor, the surrivability, has an (inverted) s-like shape and continues to
(asymptotically) decrease to zero at a faster rate. So for a very large
number of hands, the probability must decrease as it must for all negative
EV games (RoR goes to 100%).

It is true that RoR goes to 100% for all negative EV games. However,
probability of going broke before hitting a royal _never_ reaches 100%.
This should be obvious, since there is a non-zero probability of hitting
a royal on the very first trial. Once again, you are trying to use RoR
numbers to compute a quantity that is mathematically incompatible with
RoR.

So.. let's put some numbers on this. A player with a 1 unit bankroll has
about a 16/1000 chance of reaching 10,000 hands. At 10,000 hands, the
likelihood of hitting at least 1 RF is about 0.23, so the overall
probability is then about 0.000375 or about 1/2665 (no where near 1054).

The probability of going 10,000 consecutive plays without hitting a royal is
0.7807, so the probability of hitting ONE OR MORE royals during 10,000
consecutive plays is 0.2193. This is close enough to your 0.23 number.
But, this calculation _never_ gives any consideration to the possibility of
the player going broke. It _assumes_ the player has a sufficient bankroll
to never go broke during this stretch of 10,000 plays.

That same player also has a chance of 0.00121495 of reaching 20,000 hands
(a priori, not after reaching 10K hands!) and a about 0.4086 chance of
hitting at least 1 RF, and and therefore an overall probability of
0.000496 or 1/2014 or so. Yup, this is a lower number than for 10K hands,
as expected.

Well... what is the answer then? I'm not sure. My feeling is the question
is poorly framed, and I don't yet know the best way to answer it with a
"single" number. One way to fix the problem is to rewrite it as "what is
the likelihood of a player with a 1 unit bankroll hitting at least 1 RF
**given that the player survives an average number of hands**?" By
modifying the question in this way, the number of hands becomes computable,
and the solution is easily determined using the formula I gave above.

You're trying to morph the question into something very different. The
concept is quite simple. Start the player with B units and let them play.
If the player goes broke without ever hitting a royal, count the trial as
a failure. If the player hits a royal, end the trial and count it as a
success. Repeat zillions of times to find the fraction of trials that end
with a royal rather than ending broke. That is a simple, clear concept.
It needs no other framing. My method gives an exact solution without
(incorrectly) invoking the Poisson distribution.

For 9/6 JoB, the probability of the player going broke is precisely
p(failure) = 0.9990516541^B for a player starting with B units. The
probability of hitting a royal before going broke is 1 - p(failure).

One could also argue that the problem can't be fixed, since a player never
has a 100% likelihood of hitting at least 1 RF, unless one plays an
infinite number of hands. But, for Job, a negative EV, the survivability
of an infinite number of hands is 0. Oh well.

Negative EV has nothing to do with this specific problem. Any VP game,
whether it is positive EV or negative EV, will have a positive probability
of surviving until you hit a royal, with any starting bankroll of one or more
units. If you dispute this, then you don't understand the original problem.

Perhaps there are other ways to "fix" this problem.... any comments from
the group?

(b) number of units needed in order to have better than a 50% chance of
hitting a royal before going broke
---------------------------------------------------------------------------
- ----------
We can use the same approach I came up with above, with a modification to
handle the 50% number.... or can we (actually no, but I am jumping ahead)

You seem to be admitting here that your approach isn't correct. Perhaps
you should carefully think about just what, exactly, your approach is
computing.

So, how many hands are necessary to have a 50% likelihood of hitting at
least 1 RF? That 's easy... simply solve for n in 1-exp(-n/C) = 0.5
The answer is.... n = - c * ln(0.5) . FOr 9/6 JoB, n= 26394 hands (or
so).

27996 when the correct cycle number is used. But this represents the
number of consecutive hands that can be played to give a 50% chance
of hitting one or more royals.

But do we do with this number? Nothing, it is not relevant (why? it
does not include the survivability factor)!

That is why your formulation is incorrect.

Ok, let's start again, this time, using the correct formula: we need to
find n and B so that

[1-RoR(n,B)]*[1-exp(-n/C)] >=.5

This isn't the correct formula. What _might_ work here is to sum over
all positive values of n, like this:

0.5 <= sum(n:1 <= n <= infinity) {[1 - RoR(n,B)]*[1 - exp(-n/C)]}

Trying to evaluate this for a single value of n is clearly wrong, in
my opinion.

Well, it should be clear to at least some of you that there is more than
one answer. Indeed, there are an infinite number of answers. But, we can
modify the question a just a little to read: what is the *smallest* number
of units needed in order to have better than a 50% chance of hitting a
royal before going broke?

731 units.

I wish Jazbo were here. I can talk to him without being blown off with
comments to the effect that "200 year old math can't be wrong..."

···

On Friday 04 November 2005 06:23 pm, cdfsrule wrote:

>
> Steve reported two quantities for 9/6 JoB (Max EV strategy):
> (a) that starting with a single unit bankroll, a player has a
> 1/1054.467609892 probability to survive long-enough to hit a royal

flush.

> (b) He also reported that a bankroll of 731 units is needed in

order to

> have better than a 50% chance of hitting a royal before going broke.

These two numbers are entirely consistent with each other.

The probability of starting with 1 unit and going broke without hitting
a royal is 0.999051654, so the probability of going broke when starting
with 731 units is 0.999051654^731 = 0.4997887, giving slightly better
than a 50% chance of hitting a royal.

For what it's worth, I agree that

a) This is a perfectly well posed problem, and
b) Your analysis and numerical results are correct.

I've got one question though; maybe I missed the answer in an earlier
post that got buried under the avalanche of Bob Dancer discussion. Is
there an elegant way to get that probability of .99905...?

Here's the cumbersome way I got it. Let P(B, rf; N) be the probability
of going broke and failing to get a royal with an initial bankroll of
N units. After thinking about it for a while the light dawned and I
realized, as you claim, it must be true that P(B,rf;N)=P(B,rf;1)^N.
For shorthand let P(B,rf;1)=x. Then

x=p_1 + p_2*x + p_3*x^2 + ... + p_9 * x^50

where p_1 is the probability of getting nothing in a single hand, p_2
is P(Jacks), etc. In other words, the risk of ruin with a starting
bankroll of one unit is P(nothing) + P(Jacks)*(risk of ruin etc.) +
P(two pair) * (risk of ruin with 2 unit bankroll) + etc. + P(straight
flush) * (risk of ruin with 50 unit bankroll).

So, I end up needing to find one root of a 50th order polynomial. If I
remember right that's a problem with no closed form solution that you
can write down, but it's easy enough to solve numerically. I used
Newton's method and came up with x = .9990535 to 7 digits. Close
enough - the starting bankroll for a 50% chance of ruin without a
royal is still 731 units (3655 coins).

I'm tempted to verify this with simulations but my computational tool
of choice is too slow for the task.

Sorry to bore and befuddle the sensible group members who aren't
recreational mathematicians.

Mike

···

--- In vpFREE@yahoogroups.com, Steve Jacobs <jacobs@x...> wrote:

Fair warning: lots of math below -- if you hate math, skip this post

> > Steve reported two quantities for 9/6 JoB (Max EV strategy):
> > (a) that starting with a single unit bankroll, a player has a
> > 1/1054.467609892 probability to survive long-enough to hit a royal

flush.

> > (b) He also reported that a bankroll of 731 units is needed in

order to

> > have better than a 50% chance of hitting a royal before going broke.
>
> These two numbers are entirely consistent with each other.
>
> The probability of starting with 1 unit and going broke without hitting
> a royal is 0.999051654, so the probability of going broke when starting
> with 731 units is 0.999051654^731 = 0.4997887, giving slightly better
> than a 50% chance of hitting a royal.

For what it's worth, I agree that

a) This is a perfectly well posed problem, and
b) Your analysis and numerical results are correct.

Thank you. I'm glad that _someone_ understands what I'm saying.

I've got one question though; maybe I missed the answer in an earlier
post that got buried under the avalanche of Bob Dancer discussion. Is
there an elegant way to get that probability of .99905...?

I guess that depends on what kinds of methods you like.

Here's the cumbersome way I got it. Let P(B, rf; N) be the probability
of going broke and failing to get a royal with an initial bankroll of
N units. After thinking about it for a while the light dawned and I
realized, as you claim, it must be true that P(B,rf;N)=P(B,rf;1)^N.
For shorthand let P(B,rf;1)=x. Then

x=p_1 + p_2*x + p_3*x^2 + ... + p_9 * x^50

Right. I like to write this equation with p(N) for probabilities, where
N is the payoff. Using F in place of your x, this looks like:

F = p(0) + p(1)*F + p(2)*F^2 + ... + p(50)*F^50

This can be manipulated into different forms, but ultimately the
solution is the same. I use a binary search to find the answer,
which isn't much different than using Newton's method.

I like to cast the equation into an equivalent form that uses
probabilities for success instead of probabilities of failure. The
probability for success is (1 - F), and note that:

1 = p(0) + p(1) + p(2) + ... + p(50) + p(royal)

so, the equivalent equation is:

(1 - F) = [p(0) - p(0)] + (1 - F)*p(1) + (1 - F^2)*p(2) +
             ... + (1 - F^50)*p(50) + p(royal)

The p(0) terms drop out, leaving

(1 - F) = (1 - F)*p(1) + (1 - F^2)*p(2) +
             ... + (1 - F^50)*p(50) + p(royal)

now divide both sides of the equation by (1-F) to get:

1 = p(1) + p(2)*(1 - F^2)/(1 - F) + ... + p(50)*(1 - F^50)/(1 - F)
     + p(royal)/(1 - F)

so that each p(N) term is multiplied by (1 - F^N)/(1 - F), except
for the p(royal). I call these factors "virtual payoffs". For this
9/6 JoB game, they have the following values:

N virtual payoff

···

On Saturday 05 November 2005 11:53 am, Michael Peck wrote:

--- In vpFREE@yahoogroups.com, Steve Jacobs <jacobs@x...> wrote:

---------------------------
1 1
2 1.9990517
3 2.9971559
4 3.9943135
6 5.9857928
9 8.9659350
25 24.7175540
50 48.8557090
800 1054.4676099
----------------------------

Now, if you think of a single unit as giving you "one shot" at hitting
the royal, then these virtual payoffs tell you how many "shots" you
get from the actual payoff. For example, hitting quads pays 25 units,
and those 25 units increase your probability of surviving to hit a
royal by a factor of 24.7175540. A one unit bankroll gives a
probability of 1 / 1054.4676099 of hitting a royal, and a 25 unit
bankroll gives a probability of 24.7175540 / 1054.4676099 for
surviving to hit a royal.

The equation above with a value of one on the left and the
probabilities and virtual payoffs on the right looks a lot like
the equation for computing EV:

EV = 1*p(1) + 2*p(2) + ... + 50*p(50) + 800*p(800)

except that the "virtual EV" has a value of exactly 1.000000.
So, the problem is equivalent to finding the value of F which
causes the virtual payoffs to reach just the right size to allow
the "virtual EV" to equal one. In terms of virtual EV, this is
a breakeven game.

The formula for virtual payoffs (1 - F^N) / (1 - F) can be
shown to equal:

(1 - F^N) / (1 - F) = 1 + F + F^2 + ... + F^(N-1)

For this problem, F will alway be less than one, and it
is clear that the virtual payoffs increase monotonically
as F increases. So, a value of (F = 1) makes a good
starting point when solving for F. For any guess of
F, if the resulting virtual EV is larger than 1 you know
you need a smaller value for F, and if the virtual EV is
smaller than 1 you know you need a larger value for F.
This trick also applied when solving a pure Risk of Ruin
problem, and for negative games the solution results
in a value of F that is greater than one.

Now, if you compute the virtual payoffs and plug those into
a program for finding an optimal VP strategy, you will get
a playing strategy that is slightly different than the max-EV
strategy. This new strategy will increase the overall
probability of hitting a royal flush. This process can be
repeated a few times until no additional strategy changes
appear. The final strategy is the "best shot at royal"
strategy. For 9/6 JoB, this optimized strategy gives
F = 0.99903723919 which reduces the 50/50 bankroll
to 720 units. Unfortunately, commercial VP programs
are probably not designed to handle non-integer payoffs,
but you can get an approximate solution by multiplying
the virtual payoffs by 1000 and rounding.

This method of using virtual payoffs is very powerful. I've
applied it to a wide variety of optimization problems for
video poker. In almost all cases, the problems reduces
to a breakeven game based on the virtual payoffs that
fit the particular problem.

Dan's post final showed up in my mail box!!

Steve Jacobs wrote:
>I do an exact calculation. The math is quite similar to solving Risk of
> Ruin problems, except that you calculate "risk of going broke before
> hitting a royal" in place of "risk of going broke before playing
> forever." One big difference is that Risk of No Royal is always less
> than 1.0000 even for unfavorable games.
>
>I'll use F (for "Failure") for the variable that represents probability of
>going broke before hitting a royal (same concept as variable R in RoR
>equations). For 9/6 JoB, F = 0.9990516541327410. F^731 = 0.49978876,
>so 731 units give slightly better than 50% chance of hitting the royal.
>
>Probability of success (hitting a royal) is (1 - F) = 0.0009483458672590
> = 1/1054.467609892 for a bankroll of one unit. For a bankroll of B
> units, the probability of success is (1 - F^B).
>
>The difference in our results is large enough that it should be easy to
>test by simulation. Of course, it would take a special simulation that
>stops with "success" whenever a royal is hit, while stopping with
> "failure" whenever the player goes broke. I feel confidant that such a
> simulation will back up my number and show that the Poisson Distribution
> gives a poor approximation for this calculation (but, of course, I might
> be wrong).

Both of our methods necessarily assume that lesser payoffs occur in
the expected frequency, so a simulation may be more accurate than
either method.

No. A simulation can't be more accurate than "exact".

When I say "exact" I really mean it. You aren't grasping what I'm trying
to tell you. My method is NOT an approximation. It is exact, in the same
way that solving the equation that you call the "Sorokin equation" gives
an exact solution for risk of ruin.

Since the Poisson Distribution formula has been accepted by
mathematicians for nearly 200 years, I am confident that my method is
accurate enough provided your bankroll is sufficient to play at least
one cycle without hitting a royal. (For this reason, Optimum Video
Poker does not do this calculation for smaller bankrolls.)

Solving the "Sorokin equation" gives a solution that is exact for any
size bankroll. My method uses the same approach, but adjusted for
probability of royal.

I wrote a Risk of Ruin by simulation program several years ago and
ran it for 9/6 JoB, 10/7 DB and FPDW. The results were published in
Video Poker Times and currently in All The Best of Video Poker Times.
Readers may want to compare the results of the Sorokin formula with
those simulations.

If those simulations don't track well with the "Sorokin formula" then the
simulations are flawed. I'm assuming they do track.

Sorokin doesn't really deserve credit for this, since the same method
was used by Laplace, De Moivre, Lagrange and Bernoulli, hundreds
of years ago.

I'll see if I can find that program. If I can, it
shouldn't be hard to modify it to stop on a royal.

That would be great. I may be able to modify one of my VP programs
to do similar simulations. I trust that the simulations will back up my
claims.

···

On Friday 04 November 2005 09:51 am, Dan Paymar wrote:

--- In If I

remember right that's a problem with no closed form solution that you
can write down, but it's easy enough to solve numerically. I used
Newton's method and came up with x = .9990535 to 7 digits. Close
enough - the starting bankroll for a 50% chance of ruin without a
royal is still 731 units (3655 coins).

I'm tempted to verify this with simulations but my computational tool
of choice is too slow for the task.

Sorry to bore and befuddle the sensible group members who aren't
recreational mathematicians.

Mike

Hi there Mike

I'm not a math guy. I don't care how the popcorn pops, just tell me
what I have to do to pop it. I don't even want to think about the
math. For me in the real life world the old 3 - 5 royals bankroll
works. I think that's for playing positive games and not running out of
$$; not playing for a royal hit. You guys keep working that math and
give us lazy, tired and worn out folks some simple rules.

Cheers.....Jeep

Steve, you are not wrong. I just ran a 20 million session
simulation where each session was defined as success (hit a royal) or
failure (lost 1 unit). The simulation was based on max EV strategy.
Here are the numbers I got:

Falure: 19981033
Probability of failure: 0.99905165

Success: 18967
Probability of success: 0.00094835

I was surprised how close the simulation numbers came to your
calculation.

TR

Steve Jacobs wrote:
>I do an exact calculation. The math is quite similar to solving

Risk of Ruin

>problems, except that you calculate "risk of going broke before

hitting a

>royal" in place of "risk of going broke before playing forever."

One big

>difference is that Risk of No Royal is always less than 1.0000

even for

>unfavorable games.
>
>I'll use F (for "Failure") for the variable that represents

probability of

>going broke before hitting a royal (same concept as variable R in

RoR

>equations). For 9/6 JoB, F = 0.9990516541327410. F^731 =

0.49978876,

>so 731 units give slightly better than 50% chance of hitting the

royal.

>
>Probability of success (hitting a royal) is (1 - F) =

0.0009483458672590

> = 1/1054.467609892 for a bankroll of one unit. For a bankroll

of B units,

>the probability of success is (1 - F^B).
>
>The difference in our results is large enough that it should be

easy to

>test by simulation. Of course, it would take a special

simulation that

>stops with "success" whenever a royal is hit, while stopping

with "failure"

>whenever the player goes broke. I feel confidant that such a

simulation

>will back up my number and show that the Poisson Distribution

gives a

>poor approximation for this calculation (but, of course, I might

be wrong).

···

Thanks for taking the time to run this simulation and post the results.
I appreciate all reports of independent efforts, whether they back up
my own results or those from an opposing viewpoint. Correct results
tend to be confirmed by independent efforts. Although I had confidence
that my result was correct, I did not have the same level of confidence
that comes from having several independent efforts reporting the same
result. Now I'm slightly more confindent :wink:

···

On Sunday 06 November 2005 08:41 pm, treyrivers88 wrote:

Steve, you are not wrong. I just ran a 20 million session
simulation where each session was defined as success (hit a royal) or
failure (lost 1 unit). The simulation was based on max EV strategy.
Here are the numbers I got:

Falure: 19981033
Probability of failure: 0.99905165

Success: 18967
Probability of success: 0.00094835

I was surprised how close the simulation numbers came to your
calculation.

TR

> Steve Jacobs wrote:
> >I do an exact calculation. The math is quite similar to solving

Risk of Ruin

> >problems, except that you calculate "risk of going broke before

hitting a

> >royal" in place of "risk of going broke before playing forever."

One big

> >difference is that Risk of No Royal is always less than 1.0000

even for

> >unfavorable games.
> >
> >I'll use F (for "Failure") for the variable that represents

probability of

> >going broke before hitting a royal (same concept as variable R in

RoR

> >equations). For 9/6 JoB, F = 0.9990516541327410. F^731 =

0.49978876,

> >so 731 units give slightly better than 50% chance of hitting the

royal.

> >Probability of success (hitting a royal) is (1 - F) =

0.0009483458672590

> > = 1/1054.467609892 for a bankroll of one unit. For a bankroll

of B units,

> >the probability of success is (1 - F^B).
> >
> >The difference in our results is large enough that it should be

easy to

> >test by simulation. Of course, it would take a special

simulation that

> >stops with "success" whenever a royal is hit, while stopping

with "failure"

> >whenever the player goes broke. I feel confidant that such a

simulation

> >will back up my number and show that the Poisson Distribution

gives a

> >poor approximation for this calculation (but, of course, I might

be wrong).

vpFREE Links: http://members.cox.net/vpfree/Links.htm

Yahoo! Groups Links