0
0
SciPydata~5 mins

Binomial distribution in SciPy - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is a Binomial distribution?
A Binomial distribution shows the chance of getting a certain number of successes in a fixed number of tries, where each try has two possible outcomes (like success or failure) and the chance of success stays the same each time.
Click to reveal answer
beginner
What are the two main parameters of a Binomial distribution?
The two main parameters are:<br>1. Number of trials (n): How many times you try.<br>2. Probability of success (p): The chance of success in each try.
Click to reveal answer
intermediate
How do you calculate the probability of exactly k successes in n trials using scipy?
Use scipy.stats.binom.pmf(k, n, p). It gives the probability of getting exactly k successes out of n tries with success chance p.
Click to reveal answer
intermediate
What does the cumulative distribution function (CDF) tell us in a Binomial distribution?
The CDF gives the chance of getting up to k successes (that is, k or fewer) in n trials. In scipy, use scipy.stats.binom.cdf(k, n, p).
Click to reveal answer
beginner
Why is the Binomial distribution useful in real life?
It helps us understand situations with yes/no outcomes repeated many times, like flipping coins, checking if a light bulb works, or if a customer buys a product.
Click to reveal answer
Which of these is NOT a parameter of the Binomial distribution?
ANumber of trials (n)
BProbability of success (p)
CMean of the distribution
DNumber of successes (k)
What does binom.pmf(3, 10, 0.5) calculate?
AProbability of 3 or fewer successes in 10 trials
BProbability of exactly 3 successes in 10 trials with 50% success chance
CProbability of more than 3 successes in 10 trials
DExpected number of successes
If the probability of success is 0.7, what is the probability of failure in one trial?
ACannot be determined
B0.7
C1.7
D0.3
Which scipy function gives the chance of getting up to k successes?
Abinom.cdf()
Bbinom.var()
Cbinom.mean()
Dbinom.pmf()
In a Binomial distribution, what does 'n' represent?
ANumber of trials
BNumber of successes
CProbability of success
DProbability of failure
Explain the Binomial distribution and its key parameters in your own words.
Think about repeated yes/no experiments like coin flips.
You got /3 concepts.
    Describe how you would use scipy to find the probability of getting exactly 4 successes in 15 trials with a 0.3 success chance.
    Remember pmf means probability mass function.
    You got /3 concepts.