Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 passedStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started