Section 3.4 Binomial Distribution (D4)
Exploration 3.4.1. Free Throws.
Suppose a basketball player has a 90% chance shot of making a free-throw, and suppose that the success of each free-throw was independent of each other. If she took 4 shots, the probability that she makes the first two and misses the last two would be:
where
(a)
What is the probability that she takes 4 free throws, makes the last two shots, but misses the first two?
(b)
What is the probability that she takes 4 free throws, makes the first and third shots, but misses the other two?
(c)
What do we notice about the probabilities found in (a) and (b)?
(d)
Using Definition 3.3.3, how many ways can we select 2 our of 4 free-throws for her to make?
Subsection 3.4.1 Binomial Probabilities
Definition 3.4.1.
Given
Remark 3.4.2.
The
stems from the number of ways to select out of trials to be succesful.The
comes from the probability that the selected trials are succesful.The
comes from the probability that the remaining not-selected trials are unsuccesful.
Activity 3.4.2. Snow White.
A binomial random variable must:
Have a fixed number of trials.
Have a fixed probability of success per trial.
Have trials that are independent of each other.
For the following, identify which of the above fail.
(a)
There are 10 apples, 4 are poisoned, Snow White picks 3 at random and eats them, let
(b)
There are 10 apples, they are all either poisoned or all not poisoned with a 50/50 chance each. Snow White eats 3 apples and let
(c)
There are 10 apples, each has a 10% chance of being poisoned, independently of the others. Snow White eats apples until she has a poisoned apple, let
Activity 3.4.3. Free Throws.
Consider the basketball player from Exploration 3.4.1, taking
(a)
What is the probability that she makes exactly 2 free throws, that is,
(b)
Run the following code to simulate 1000 trials of freethrows=4
free throws taken with p=0.9
probability of success each, and plot a histogram of the number of succesful free throws:
xxxxxxxxxx
numbaskets = rep(0, 1000)
β
freethrows=4
p=0.9
β
for(i in 1:freethrows){
numbaskets=numbaskets+sample(c(1, 0), 1000, replace = TRUE, prob = c(p, 1-p))
}
hist(numbaskets)
print(freethrows)
(c)
Run the following code to see how many of these trials resulted in two succesful free throws:
How does this compare to what you found in (a)?xxxxxxxxxx
length(which(numbaskets==2))
(d)
Suppose her less experienced teammate only has a
(e)
Modify and run the following code to simulate 1000 trials of free throws for the teammate and plot a histogram of the number of succesful free throws:
xxxxxxxxxx
numbasketsTM = rep(0, 1000)
β
freethrows=FIXME
p=FIXME
β
for(i in 1:freethrows){
numbasketsTM=numbasketsTM+sample(c(1, 0), 1000, replace = TRUE, prob = c(p, 1-p))
}
hist(numbasketsTM)
print(freethrows)
(f)
Modify and run the following code to see how many of these trials resulted in three succesful free throws:
How does this compare to what you found in (a)?xxxxxxxxxx
length(which(numbasketsTM==FIXME))
Remark 3.4.3.
One can use Desmos
or R
to directly compute binomial probabilities. The following compute the probability that a binomial random vairable
xxxxxxxxxx
dbinom(4, 5, 0.65)
Activity 3.4.4. Meeting Time.
A department chair calls for a meeting at a certain time. The ten faculty in the department each have a 60% chance of making the meeting. Assume whether or not a professor can make the meeting is independent of the other faculty. Let
xxxxxxxxxx
dbinom(FIXME, FIXME, FIXME)
(a)
Compute
(b)
Sum the values you found in (a) to find the probability that at least 8 professors make the meeting (
(c)
If less than 4 professors make the meeting, how many professors could have made the meeting?
(d)
Find the probability that less than 4 professors make the meeting.
(e)
In the Desmos
above, set Min:8
, Max:10
and compare the output to what you found in (a).
(f)
In the Desmos
above, set Min:
and Max:
to values which correspond to βless than 4β. (Less than 4 would mean 4 is not included.) Compare the output to what you found in (d).
(g)
Run the following to compute the probability that 3 or fewer professors would make the meeting:
xxxxxxxxxx
pbinom(3, 10, 0.6, lower.tail = TRUE)
(h)
Run the following to compute the probability that more than 7 professors would make the meeting:
xxxxxxxxxx
pbinom(7, 10, 0.6, lower.tail = FALSE)
(i)
What is the probability that at least 4 and at most 7 professors make the meeting?
Subsection 3.4.2 Expectation and Variance
Activity 3.4.5. Free Throws Revisited..
Recall the basketball player from Activity 3.4.3 with a
(a)
Since she makes 90% of her free throws, how many baskets on average would she make with 4 shots?
(b)
Compute
(c)
Use Remark 2.4.4 to compute
(d)
Use Remark 2.4.5 to compute
(e)
Run the following to compute the average number of baskets made in the simulation from Activity 3.4.3:
How does this value compare to what you found in (c)?xxxxxxxxxx
mean(numbaskets)
(f)
Run the following to compute the variance of baskets made in the simulation from Activity 3.4.3:
How does this value compare to what you found in (d)?xxxxxxxxxx
var(numbaskets)
Remark 3.4.4.
Because of the regularity of binomial random variables, there is a special way to compute mean and variance of binomial random variables.
Activity 3.4.6. Free Throws Revisited Again..
Recall the basketball player from Activity 3.4.3 with a
Let
and that
that is, her total number of baskets is equal to the sum of the baskets scored per shot.
(a)
Use Remark 2.4.4 to compute
(b)
Use Remark 2.5.1 to compute
(c)
Use Remark 2.4.5 to compute
(d)
Use Remark 2.5.1 to compute
Remark 3.4.5.
Given a binomial random variable
This only applies to binomial random variables.