BaşlayınÜcretsiz başlayın

Cards and the sum rule

A standard French-suited deck of playing cards contains 52 cards; 13 each of hearts (♥), spades (♠), diamonds (♦), and clubs (♣). Assuming that you have a well-shuffled deck in front of you, the probability of drawing any given card is 1/52 ≈ 1.92%.

Bu egzersiz, kursun bir parçasıdır

Fundamentals of Bayesian Data Analysis in R

Kursa Göz Atın

Egzersiz talimatları

  • Calculate the probability of drawing any of the four aces! That is, calculate the probability of drawing 🂡 or 🂱 or 🃁 or 🃑 using the sum rule and assign it to prob_to_draw_ace.

Uygulamalı etkileşimli egzersiz

Bu egzersizi bu örnek kodu tamamlayarak deneyin.

# Calculate the probability of drawing any of the four aces
prob_to_draw_ace <- ___
Kodu Düzenle ve Çalıştır