Послідовні виграші в призах на World Series of Poker

Ймовірнісні головоломки в R

Peter Chi

Assistant Professor of Statistics Villanova University

World Series of Poker

  • ~ 6000 учасників останніми роками
  • Призові отримують топ 10% — «cashing»

 

Професійний гравець у покер Ronnie Bardah:

  • Отримував призові у 2010, 2011, 2012, 2013, 2014
Ймовірнісні головоломки в R

Спрощувальні припущення

  • 6000 гравців щороку
  • Ті самі гравці щороку
  • Усі гравці мають однакову майстерність
Ймовірнісні головоломки в R

Функція 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
Ймовірнісні головоломки в R

Зберігаємо результати як матрицю

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
Ймовірнісні головоломки в R

Функція 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
Ймовірнісні головоломки в R

Змоделюймо<br> World Series of Poker!

Ймовірнісні головоломки в R

Preparing Video For Download...