Description Usage Format Source Examples
Historical data for the $1,000,000 Money Ball game. Game Play: pick five numbers 1 - 35, the Lottery then selects five numbered balls. If the Gold Million Dollar Money Ball is drawn before all five numbers have been selected, the top prize jumps to $1,000,000. Note: This game was discontinued 8/29/15.
1 |
A data frame with 100 rows and 7 variables:
date of draw
money ball result: yes or no
1st number in order
2nd number in order
3rd number in order
4th number in order
5th number in order
1 2 3 4 5 6 7 | ## probability of drawing money ball before first 5 balls
(1/36) + (1/35) + (1/34) + (1/33) + (1/32)
## observed money ball results
prop.table(table(money.ball$moneyball))
## simulate money ball draws before first 5 draws
set.seed(123)
mean(replicate(1000, any(sample(c(1:35,"mb"),5)=="mb")))
|
[1] 0.147314
No Yes
0.83 0.17
[1] 0.147
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.