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

Predicting employment status

Consider a survey about employment that contains the question "Are you employed?" It is known that 65% of respondents will answer "yes." Eight survey responses have been collected.

We load the binom object from scipy.stats with the following code: from scipy.stats import binom

Answer the following questions using pmf(), cdf(), and sf().

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

Foundations of Probability in Python

Kursa Göz Atın

Uygulamalı etkileşimli egzersiz

Bu egzersizi bu örnek kodu tamamlayarak deneyin.

# Calculate the probability of getting exactly 5 yes responses
prob_five_yes = binom.____(k=5, n=____, p=____)
print(prob_five_yes)
Kodu Düzenle ve Çalıştır