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 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
Get step-by-step solutions from verified subject matter experts
