Séries mondiales de poker : gains consécutifs

Énigmes de probabilité en R

Peter Chi

Assistant Professor of Statistics Villanova University

World Series of Poker

  • ~ 6 000 participants ces dernières années
  • Les 10 % premiers reçoivent un prix : « cashing »

 

Le pro Ronnie Bardah :

  • A encaissé en 2010, 2011, 2012, 2013, 2014
Énigmes de probabilité en R

Hypothèses de simplification

  • 6 000 joueurs chaque année
  • Les mêmes joueurs chaque année
  • Tous les joueurs ont la même compétence
Énigmes de probabilité en R

La fonction 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
Énigmes de probabilité en R

Stocker les « cashes » dans une matrice

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
Énigmes de probabilité en R

La fonction 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
Énigmes de probabilité en R

Simulons les<br> World Series of Poker !

Énigmes de probabilité en R

Preparing Video For Download...