Binomial variables
coin flip -> P(H) = 0.6; P(T) = 0.4
X = # of heads after 10 flips of my coin
made up of independent trails (flip)
each trail can be classified either as success or failure
fixed # of trails
probability of success on each trail is constant
Inference -> The act or process of deriving logical conclusions from premises known or assumed to be true.
Distribution
X = # of heads from flipping a coin 5 times
possible outcomes from 5 flips: 2∗2∗2∗2∗2=25=32
P(X=0)=321=325C0⇒5C0=0!∗(5−0)!5!=5!5!=1
P(X=1)=325=325C1⇒5C1=1!∗(5−1)!5!=1!5!=5
P(X=2)=3210=325C2⇒5C2=2!∗(5−2)!5!=2!∗3!5!=2∗3∗25∗4∗3∗2=10
P(X=3)=3210=325C3⇒5C3=3!∗(5−3)!5!=3!∗2!5!=10
P(X=4)=325=325C4⇒5C4=4!∗(5−4)!5!=1!5!=5
P(X=5)=321=325C5⇒5C5=5!∗(5−5)!5!=5!5!=1
Example:
prob (score) = 70% or 0.7
prob (miss) = 30% or 0.3
P(Exactly 2 scores in 6 attempts) =
(26)∗0.72∗0.34=15∗0.49∗0.0081=0.05935
⟹SSMMMM=0.7∗0.7∗0.3∗0.3∗0.3∗0.3=(0.7)2∗(0.3)4
⟹6C2=(26)=2!∗(6−2)!6!=(2∗1(4∗3∗2∗1)6∗5∗4∗3∗2∗1=15
Generalizing k scores in n attempts:
P(Exactly k scores in n attempts) = (kn)∗fk∗(1−f)n−k
f = prob of making attempts
A binomial probability problem has these features:
a set number of trials (n)
each trial can be classified as a "success" or "failure"
the probability of success (p) is the same for each trial
results from each trial are independent from each other
Here's a summary of our general strategy for binomial probability:

Using the example from Problem 1:
n=3 free-throws
each free-throw is a "make" (success) or a "miss" (failure)
probability she makes a free-throw is p=0.90
assume free-throws are independent
P(makes 2 of 3 free throws)=3C2⋅(0.90)2⋅(0.10)1=3⋅0.81⋅0.10=3⋅0.081=0.243
In general...
P(exactly k successes)=nCk⋅pk⋅(1−p)n−k
Challenge Problem
Steph promises to buy Luke ice cream if he makes 3 or more of his 4 free-throws.
What is the probability that he makes 3 or more of the 4 free throws?
Luke gets ice cream if he makes 3 or 4 free throws. We can find the probability of each of those outcomes and add the results together.Here's how we can think of this problem:
n=4 trials (shots)
each shot is either a make or miss
probability that he makes a shot is p=0.20
shots are independent
P(makes 3 or more)=P(makes 3 free-throws)+P(makes 4 free-throws)=4C3⋅(0.20)3⋅(0.80)1+4C4⋅(0.20)4⋅(0.80)0=(4−3)!⋅3!4!⋅0.008⋅0.80+(4−4)!⋅4!4!⋅0.0016=3⋅2⋅14⋅3⋅2⋅1⋅0.008⋅0.80+4⋅3⋅2⋅14⋅3⋅2⋅1⋅0.0016=4⋅0.008⋅0.80+0.0016=0.0256+0.0016=0.0272
Quiz #1
Layla has a coin that has a 60% chance of showing heads each time it is flipped. She is going to flip the coin 5 times. Let X represent the number of heads she gets.
What is the probability that she gets more than 3 heads?
Finding P(X=5)
For each flip, we know P(heads)=60%. To find the probability that all 5 flips are heads, we can multiply probabilities since flips are independent:
P(X=5)=(0.60)(0.60)(0.60)(0.60)(0.60)=(0.60)5=0.07776
We'll come back and use this result later. Next, we need to find P(X=4) (the probability that she gets 4 heads).
Finding P(X=4)
Getting 4 heads in 5 attempts means Layla needs to get 4 heads and 1 tail. For each flip, we know P(heads)=60% and P(tails)=40%.
Let's start by finding the probability of getting 4 heads followed by 1 tail:
P(HHHHT)=(0.6)4(0.4)=0.05184
This isn't the entire probability though, because there are other ways to get 4 heads from 5 flips (for example, THHHH). How many different ways are there? We can use the combination formula:
nCk5C4=(n−k)!⋅k!n!=(5−4)!⋅4!5!=(1)⋅4⋅3⋅2⋅15⋅4⋅3⋅2⋅1=5
Do they all have the same probability?
Each of the 5 ways has the same probability that we already found:
P(HHHHT)P(HHHTH)P(HHTHH)P(HTHHH)P(THHHH)=(0.6)4(0.4)=0.05184=(0.6)4(0.4)=0.05184=(0.6)4(0.4)=0.05184=(0.6)4(0.4)=0.05184=(0.6)4(0.4)=0.05184
So we can multiply this probability by 5 since that is how many ways there are to get 4 heads in 5 flips.
P(X=4)=5(0.6)4(0.4)=5(0.05184)=0.2592
Putting it all together
Let's return to our original strategy to answer the question:
P(X>3)=P(4 heads)+P(5 heads)=P(X=4)+P(X=5)=5(0.6)4(0.4)+(0.6)5=0.2592+0.07776=0.33696≈0.34
Quiz #2
Ira ran out of time while taking a multiple-choice test and plans to guess on the last 6 questions. Each question has 4 possible choices, one of which is correct. Let X= the number of answers Ira correctly guesses in the last 6 questions.
What is the probability that he answers fewer than 2 questions correctly in the last 6 questions?
Strategy (without a fancy calculator)
The probability that Ira gets fewer than 2 questions correct in the 6 questions is equivalent to the probability that he gets 0 or 1 question correct. So we can find those probabilities and add them them together to get our answer:
P(X<2)=P(0 correct)+P(1 correct)=P(X=0)+P(X=1)
Finding P(X=0)
There are 4 possible choices for each question, so we know P(correct)=25% and P(not)=75%. Answering 0 questions correctly is equivalent to answering all 6 questions incorrectly. We can multiply probabilities since we are assuming independence:
P(X=0)=(0.75)(0.75)(0.75)(0.75)(0.75)(0.75)=(0.75)6≈0.17798
We'll come back and use this result later. Next, we need to find P(X=1) (the probability that he answers 1 question correctly).
Finding P(X=1)
Answering 1 question correctly in the last 6 questions means Ira needs to get 1 question correct and 5 questions not correct. There are 4 possible choices for each question, so we know P(correct)=25% and P(not)=75%.
Since we are assuming independence, let's multiply probabilities to find the probability of getting 1 question correct followed by 5 questions not correct:
P(CNNNNN)=(0.25)(0.75)5≈0.05933
This isn't the entire probability though, because there are other ways to get 1 question correct from 6 questions (for example, NNNNNC). How many different ways are there? We can use the combination formula:
nCk6C1=(n−k)!⋅k!n!=(6−1)!⋅1!6!=(5⋅4⋅3⋅2⋅1)⋅16⋅5⋅4⋅3⋅2⋅1=6
There are 6 ways to get 1 question correct in 6 questions. Do they all have the same probability?
Each of the 6 ways has the same probability that we already found:
P(CNNNNN)P(NCNNNN)P(NNCNNN)P(NNNCNN)P(NNNNCN)P(NNNNNC)=(0.25)(0.75)5≈0.05933=(0.25)(0.75)5≈0.05933=(0.25)(0.75)5≈0.05933=(0.25)(0.75)5≈0.05933=(0.25)(0.75)5≈0.05933=(0.25)(0.75)5≈0.05933
So we can multiply this probability by 6 since that is how many ways there are to get 1 question correct in 6 questions:
P(X=1)=6(0.25)(0.75)5≈6(0.05933)≈0.35596
Putting it all together
Let's return to our original strategy to answer the question:
P(X<2)=P(0 correct)+P(1 correct)=P(X=0)+P(X=1)=(0.75)6+6(0.25)(0.75)5≈0.17798+0.35596≈0.53394≈0.53
Last updated