Question: im stuck on part 3 Use Python methods to calculate the following probabilities for a binomial distribution with variables n and pi. - P(X=28) -

 im stuck on part 3 Use Python methods to calculate the im stuck on part 3

Use Python methods to calculate the following probabilities for a binomial distribution with variables n and pi. - P(X=28) - P(X28) - P(X>28) The code provided loads the packages and functions, reads variables n and pi from input, and prints the calculated probabilities. Two functions are available in scipy.stats for calculating binomial probabilities: - binom. pmf( ) calculates the probability that a binomial random variable is equal to a given value, k. - binom. cdf() calculates the probability that a binomial random variable is less than or equal to a given value, k. The complement rule P( not A)=1P(A) should be used to find the probability that a binomial random variable is greater than a given value. Not all tests passed

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!