July 16th, 2013 at 1:09:04 PM
permalink
I'm playing on a poker site with an SNG leaderboard where your total is multiplied by your highest streak(games won in a row).
Assuming the probability of winning a game is in 1 in 6 how would I calculate the odds of winning 5 games in a row over a 5000 game sample.
Curious about what kinds of streaks I should expect and also I'd like to be able to look at the leaderboard and see if anything funny is going on.
Assuming the probability of winning a game is in 1 in 6 how would I calculate the odds of winning 5 games in a row over a 5000 game sample.
Curious about what kinds of streaks I should expect and also I'd like to be able to look at the leaderboard and see if anything funny is going on.
July 16th, 2013 at 1:41:51 PM
permalink
Quote: TheJacobI'm playing on a poker site with an SNG leaderboard where your total is multiplied by your highest streak(games won in a row).
Assuming the probability of winning a game is in 1 in 6 how would I calculate the odds of winning 5 games in a row over a 5000 game sample.
Curious about what kinds of streaks I should expect and also I'd like to be able to look at the leaderboard and see if anything funny is going on.
The first thing that I should mention is that, if there are six players per game, the probability of any individual player winning will very rarely be 1 in 6 because you have skill levels that are going to vary and everything like that. It's difficult to really quantify, but you might have a table where a certain player should win 1,000 out of 2,000 games against all other players (1 in 2) based on skill, where another player should only win one out of one hundred, or so.
For that reason, I think it would be tough to, "See if anything funny is going on," because what you could have is simply a handful of superior players who win a good bit of the time, which is what superior players do.
To the math question, if we assume such a probability, then the probability of winning five in a row is (1/6)^5 = 0.00012860082304526744 = 1/0.00012860082304526744 = 1 in 7776.
I'm going with something a bit easier than a 5,000 game sample. Let's say you have 5,000, "First games," in which you must try to win five in a row, any of the first games can begin the streak, winning more than once in a row (but not five times) is irrelevant to the 5,000 games. If the probability of winning five in a row right off the top is 0.00012860082304526744, but you have 5000 chances, then the probability of winning at least once in exactly 5,000 first games is:
(1-0.00012860082304526744)^5000 = 0.5256890166416966
1-0.5256890166416966 = 0.47431098335830335
So, with 5,000 first games, you're still only 47.431098335830335% to win five in a row once or more. The actual probability of winning for your specific query is even more against you, because those series in which you win 2-4 games in a row still count against your 5,000. To give you an idea, the probability of winning four in a row is:
(1/6)^4 = 0.0007716049382716048 = 1/0.0007716049382716048 = 1 in 1296
So, the probability of you winning four in a row at least one time in 5,000 first games is:
(1-0.0007716049382716048)^5000 = 0.02107824331658854
1-0.02107824331658854 = 97.89217566834114%
So, you'd be a near lock to do four in a row at least once in that many games.
https://wizardofvegas.com/forum/off-topic/gripes/11182-pet-peeves/120/#post815219
July 16th, 2013 at 1:57:02 PM
permalink
I get
For a run of 5, #trials = 5000 and P = 1/6
expected # of trials: 9,330
expected # of runs: 0.535429527
distribution of runs
For a run of 4, #trials = 5000 and P = 1/6
expected # of trials: 1554
expected # of runs: 3.213220165
distribution of runs
info found here in links
another BruceZ gem
http://www.pulcinientertainment.com/info/Streak-Calculator-enter.html
added: another by hand method and alternate formula
https://wizardofvegas.com/forum/questions-and-answers/math/13096-what-are-the-odds-of-getting-22-back-to-back-winning-passline-decisions-in-1-000-000-rolls/#post221169
for a run of 5 an alternate formula method is: 0.414582216
for a run of 4 the alternate formula method is: 0.959773133
close enough
N=5,000 and P=1/6
AVG. LENGTH OF LONGEST RUN: 4.478006366
DISTRIBUTION OF LONGEST RUN
sim data for the longest run in 5k trials
(I had not used the program for this in a while)
Good Luck to you
For a run of 5, #trials = 5000 and P = 1/6
expected # of trials: 9,330
expected # of runs: 0.535429527
distribution of runs
Number of trials | 5,000 | |
---|---|---|
Run Length (X or more) | 5 | |
trial Probability | 16.666666667% | |
Event | Run Probability | 1 in |
0 runs of length 5 or more | 0.585232996 | 1.71 |
at least 1 run of length 5 or more | 0.414767004274859 | 2.4110 |
at least 2 runs of length 5 or more | 0.101046297717796 | 9.90 |
at least 3 runs of length 5 or more | 0.017144632750797 | 58.33 |
at least 4 runs of length 5 or more | 0.002218471220281 | 450.76 |
at least 5 runs of length 5 or more | 0.000231338891494 | 4,322.66 |
at least 6 runs of length 5 or more | 0.000020168190705 | 49,583.03 |
at least 7 runs of length 5 or more | 0.000001508866131 | 662,749.32 |
at least 8 runs of length 5 or more | 0.000000098777493 | 10,123,763.67 |
at least 9 runs of length 5 or more | 0.000000005744204 | 174,088,509.92 |
at least 10 runs of length 5 or more | 0.000000000300311 | 3,329,880,344.80 |
at least 11 runs of length 5 or more | 0.000000000014253 | 70,158,400,391.04 |
For a run of 4, #trials = 5000 and P = 1/6
expected # of trials: 1554
expected # of runs: 3.213220165
distribution of runs
Number of trials | 5,000 | |
---|---|---|
Run Length (X or more) | 4 | |
trial Probability | 16.666666667% | |
Event | Run Probability | 1 in |
0 runs of length 4 or more | 0.039853141 | 25.09 |
at least 1 run of length 4 or more | 0.960146859405546 | 1.0415 |
at least 2 runs of length 4 or more | 0.831344352442841 | 1.20 |
at least 3 runs of length 4 or more | 0.623579332521823 | 1.60 |
at least 4 runs of length 4 or more | 0.400558945668800 | 2.50 |
at least 5 runs of length 4 or more | 0.221336592369564 | 4.52 |
at least 6 runs of length 4 or more | 0.106324655886600 | 9.41 |
at least 7 runs of length 4 or more | 0.044930860862972 | 22.26 |
at least 8 runs of length 4 or more | 0.016891361903790 | 59.20 |
at least 9 runs of length 4 or more | 0.005706413431732 | 175.24 |
at least 10 runs of length 4 or more | 0.001747700222375 | 572.18 |
at least 11 runs of length 4 or more | 0.000488994068937 | 2,045.01 |
at least 12 runs of length 4 or more | 0.000125825167276 | 7,947.54 |
at least 13 runs of length 4 or more | 0.000029949153793 | 33,389.93 |
at least 14 runs of length 4 or more | 0.000006627804986 | 150,879.51 |
at least 15 runs of length 4 or more | 0.000001369859587 | 730,001.83 |
at least 16 runs of length 4 or more | 0.000000265482078 | 3,766,732.61 |
at least 17 runs of length 4 or more | 0.000000048416225 | 20,654,233.21 |
info found here in links
another BruceZ gem
http://www.pulcinientertainment.com/info/Streak-Calculator-enter.html
added: another by hand method and alternate formula
https://wizardofvegas.com/forum/questions-and-answers/math/13096-what-are-the-odds-of-getting-22-back-to-back-winning-passline-decisions-in-1-000-000-rolls/#post221169
for a run of 5 an alternate formula method is: 0.414582216
for a run of 4 the alternate formula method is: 0.959773133
close enough
N=5,000 and P=1/6
AVG. LENGTH OF LONGEST RUN: 4.478006366
DISTRIBUTION OF LONGEST RUN
"Longest Run Length" | Probability | 1 in | or less | or more |
---|---|---|---|---|
0 | 0.0000000000% | #DIV/0! | 0.0000000% | 100.0000000% |
1 | 0.0000000000% | 529,835,250,278,882.00 | 0.0000000% | ~100.0000000% |
2 | 0.0000003236% | 309,003,340.80 | 0.0000003% | ~100.0000000% |
3 | 3.9853137358% | 25.09 | 3.9853141% | 99.9999997% |
4 | 54.5379855131% | 1.83 | 58.5232996% | 96.0146859% |
5 | 32.9401504625% | 3.04 | 91.4634500% | 41.4767004% |
6 | 7.0608053695% | 14.16 | 98.5242554% | 8.5365500% |
7 | 1.2283149680% | 81.41 | 99.7525704% | 1.4757446% |
8 | 0.2061571842% | 485.07 | 99.9587276% | 0.2474296% |
9 | 0.0343939020% | 2,907.49 | 99.9931215% | 0.0412724% |
10 | 0.0057323147% | 17,444.96 | 99.9988538% | 0.0068785% |
11 | 0.0009552262% | 104,687.25 | 99.9998090% | 0.0011462% |
12 | 0.0001591733% | 628,245.89 | 99.9999682% | 0.0001910% |
13 | 0.0000265236% | 3,770,227.50 | 99.9999947% | 0.0000318% |
sim data for the longest run in 5k trials
(I had not used the program for this in a while)
group middle freq freq/100
---------------------------------------------
2.50 <= x < 3.50 3.00 3920 3.92%
3.50 <= x < 4.50 4.00 54537 54.54%
4.50 <= x < 5.50 5.00 33137 33.14%
5.50 <= x < 6.50 6.00 6941 6.94%
6.50 <= x < 7.50 7.00 1230 1.23%
7.50 <= x < 8.50 8.00 207 0.21%
8.50 <= x < 9.50 9.00 22 0.02%
9.50 <= x < 10.50 10.00 5 0.00%
10.50 <= x < 11.50 11.00 1 0.00%
---------------------------------------------
cumulative
---------------------------------------------
2.50 <= x < 3.50 3.00 3920 3.92%
3.50 <= x < 4.50 4.00 58457 58.46%
4.50 <= x < 5.50 5.00 91594 91.59%
5.50 <= x < 6.50 6.00 98535 98.54%
6.50 <= x < 7.50 7.00 99765 99.76%
7.50 <= x < 8.50 8.00 99972 99.97%
8.50 <= x < 9.50 9.00 99994 99.99%
9.50 <= x < 10.50 10.00 99999 100.00%
10.50 <= x < 11.50 11.00 100000 100.00%
Good Luck to you
winsome johnny (not Win some johnny)
June 27th, 2018 at 8:32:10 PM
permalink
interestingQuote: TheJacobCurious about what kinds of streaks I should expect and also I'd like to be able to look at the leaderboard and see if anything funny is going on.
using the calculator here
https://sites.google.com/view/krapstuff/home
section 1r.
I get some data
easy to call a few different streaks at once
> runs.r(4,5000,1/6)
[1] "for a run of 4, success probability: 0.9601468594"
[1] "1 in: 1.04151"
[1] "Number of trials: 5000"
> runs.r(5,5000,1/6)
[1] "for a run of 5, success probability: 0.4147670043"
[1] "1 in: 2.41099"
[1] "Number of trials: 5000"
> runs.r(6,5000,1/6)
[1] "for a run of 6, success probability: 0.08536549965"
[1] "1 in: 11.7143"
[1] "Number of trials: 5000"
> runs.r(7,5000,1/6)
[1] "for a run of 7, success probability: 0.01475744595"
[1] "1 in: 67.7624"
[1] "Number of trials: 5000"
> runs.r(8,5000,1/6)
[1] "for a run of 8, success probability: 0.002474296275"
[1] "1 in: 404.155"
[1] "Number of trials: 5000"
hope this helps out for those that come across this thread
Sally
I Heart Vi Hart