ComeçarComece de graça

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.

Este exercício faz parte do curso

Fundamentals of Bayesian Data Analysis in R

Ver curso

Instruções do exercício

  • 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.

Exercício interativo prático

Experimente este exercício completando este código de exemplo.

# Calculate the probability of picking four aces in a row
prob_to_draw_four_aces <- ___
Editar e executar o código