Get startedGet started for free

Cards and the product rule

Again, assuming that you have a well-shuffled deck in front of you, the probability of drawing any given card is 1/52 ≈ 1.92% . The probability of drawing any of the four aces is 1/52 + 1/52 + 1/52 + 1/52 = 4/52. Once an ace has been drawn, the probability of picking any of the remaining three is 3/51. If another ace is drawn the probability of picking any of the remaining two is 2/50, and so on.

This exercise is part of the course

Fundamentals of Bayesian Data Analysis in R

View Course

Exercise instructions

  • Use the product rule to calculate the probability of picking the four aces in a row from the top of a well-shuffled deck and assign it to prob_to_draw_four_aces.

Hands-on interactive exercise

Have a go at this exercise by completing this sample code.

# Calculate the probability of picking four aces in a row
prob_to_draw_four_aces <- ___
Edit and Run Code