การได้รับเงินรางวัลติดต่อกันใน World Series of Poker

Probability Puzzles in R

Peter Chi

Assistant Professor of Statistics Villanova University

World Series of Poker

  • ผู้เข้าร่วมประมาณ 6,000 คนในช่วงปีหลัง
  • เงินรางวัลมอบให้ผู้ที่ติด 10% อันดับแรก - การ cashing

 

โปรโปกเกอร์ Ronnie Bardah:

  • Cashed ในปี 2010, 2011, 2012, 2013, 2014
Probability Puzzles in R

สมมติฐานที่ลดความซับซ้อน

  • ผู้เล่น 6,000 คนทุกปี
  • ผู้เล่นกลุ่มเดิมในทุกปี
  • ผู้เล่นทุกคนมีความสามารถเท่ากัน
Probability Puzzles in 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
Probability Puzzles in R

จัดเก็บข้อมูล cashes ในรูปแบบเมทริกซ์

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
Probability Puzzles in 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
Probability Puzzles in R

มาจำลอง<br> World Series of Poker กันเถอะ!

Probability Puzzles in R

Preparing Video For Download...