1. सीखें
  2. /
  3. पाठ्यक्रम
  4. /
  5. Foundations of Probability in Python

Connected

अभ्यास

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().

निर्देश 1/3

undefined XP
  • 1

    Calculate the probability of getting exactly 5 yes responses.

  • 2

    Calculate the probability of getting 3 or fewer no responses.

  • 3

    Calculate the probability of getting more than 3 yes responses using binom.sf().