Konsekutiva vinster i World Series of Poker

Sannolikhetspussel i R

Peter Chi

Assistant Professor of Statistics Villanova University

World Series of Poker

  • ~ 6 000 deltagare under senare år
  • Prispengar till topp 10 % – cashar

 

Pokerproffset Ronnie Bardah:

  • Cashade 2010, 2011, 2012, 2013, 2014
Sannolikhetspussel i R

Förenklade antaganden

  • 6 000 spelare varje år
  • Samma spelare varje år
  • Alla spelare har identisk förmåga
Sannolikhetspussel i R

Funktionen intersect

players <- c(1:20)

cash_year1 <- sample(players, 4) cash_year1
20  4 11 14
cash_year2 <- sample(players, 4)
cash_year2
18  7 19  4
intersect(cash_year1, cash_year2)
4
Sannolikhetspussel i R

Lagra cashar som en matris

players <- c(1:20)
cashes <- replicate(3, sample(players, 4))
cashes
      [,1] [,2] [,3]
 [1,]    4    5    1
 [2,]   11   19    6
 [3,]   18   16    9
 [4,]   12   14   17
Sannolikhetspussel i R

Funktionen Reduce

cashes <- replicate(3, sample(players, 4))
cashes
      [,1] [,2] [,3]
 [1,]    4    5    1
 [2,]   11   19    6
 [3,]   18   16    9
 [4,]   12   14   17
in_all_three <- Reduce(intersect, list(
    cashes[, 1], cashes[, 2], cashes[, 3]))

in_all_three
integer(0)
length(in_all_three)
0
Sannolikhetspussel i R

Nu simulerar vi<br> World Series of Poker!

Sannolikhetspussel i R

Preparing Video For Download...