1. A researcher wishes to conduct a study of the color preferences
of new car buyers. Suppose that 50% of this population prefers the color
red. If 20 buyers are randomly selected, what is the probability that
between 9 and 12 (both inclusive) buyers would prefer red?
# n = 20, p = 0.5 --> binomial P( 9 <= X <= 12)
round(pbinom(12, size = 20, prob = 0.5) - pbinom(9, size = 20, prob = 0.5), digits = 4)
## [1] 0.4565
The probability that between 9 and 12 buyers would prefer red is
0.4565.
2. A quality control inspector has drawn a sample of 13 light bulbs
from a recent production lot. Suppose 20% of the bulbs in the lot are
defective. What is the probability that less than 6 but more than 3
bulbs from the sample are defective?
# n = 13, p = 0.2, less than and more than, without "inclusive" in the wording indicates --> binomial P(4 <= X <= 5)
round(pbinom(5, size = 13, prob = 0.2) - pbinom(4, size = 13, prob = 0.2), digits = 4)
## [1] 0.0691
The probability that less than 6 but more than 3 bulbs from the
sample are defective is 0.0691.
3. The auto parts department of an automotive dealership sends out a
mean of 4.2 special orders daily. What is the probability that, for any
day, the number of special orders sent out will be no more than 3?
# lambda = 4.2 --> poisson P(X <= 3)
round(ppois(3, lambda = 4.2), digits = 4)
## [1] 0.3954
The probability that, for any day, the number of special orders sent
out will be no more than 3 is 0.3954.
4. A pharmacist receives a shipment of 17 bottles of a drug and has
3 of the bottles tested. If 6 of the 17 bottles are contaminated, what
is the probability that less than 2 of the tested bottles are
contaminated?
# n = 17, m = 6, k = 3, less than 2 implies --> hypergeometric P(X <= 1)
round(phyper(1, m = 6, n = 17, k = 3), digits = 4)
## [1] 0.8447
The probability that less than 2 of the tested bottles are
contaminated is 0.8447.
5. A town recently dismissed 6 employees in order to meet their new
budget reductions. The town had 6 employees over 50 years of age and 19
under 50. If the dismissed employees were selected at random, what is
the probability that more than 1 employee was over 50?
# n = 25, m = 6, k = 6 --> hypergeometric [1 - P(X <= 1)]
round(1 - phyper(1, m = 6, n = 25, k = 6), digits = 4)
## [1] 0.3265
The probability that more than 1 employee was over 50 is 0.3265.
6. The weights of steers in a herd are distributed normally. The
variance is 90,000 and the mean steer weight is 800 lbs. Find the
probability that the weight of a randomly selected steer is between 1040
and 1460 lbs
# var = 90,000, sd = 300, mu = 800 --> normal P(1040 <= X <= 1460)
round(pnorm(1460, mean = 800, sd = 300) - pnorm(1040, mean = 800, sd = 300), digits = 4)
## [1] 0.198
The probability that the weight of a randomly selected steer is
between 1040 and 1460 lbs is 0.198.
7. The diameters of ball bearings are distributed normally. The mean
diameter is 106 millimeters and the standard deviation is 4 millimeters.
Find the probability that the diameter of a selected bearing is between
103 and 111 millimeters.
# mean = 106, sd = 4 --> normal P(103 <= X <= 111)
round(pnorm(111, mean = 106, sd = 4) - pnorm(103, mean = 106, sd = 4), digits = 4)
## [1] 0.6677
The probability that the diameter of a selected bearing is between
103 and 111 mm is 0.6677.
8. The lengths of nails produced in a factory are normally
distributed with a mean of 3.34 centimeters and a standard deviation of
0.07 centimeters. Find the two lengths that separate the top 3% and the
bottom 3%. These lengths could serve as limits used to identify which
nails should be rejected.
# mean = 3.34, sd = 0.07 --> find the length at 0.03 and 0.97
round(qnorm(c(0.03, 0.97), mean = 3.34, sd = 0.07), digits = 2)
## [1] 3.21 3.47
The length that separates the bottom 3% is 3.21, and the length that
separates the top 3% is 3.47.
9. A psychology professor assigns letter grades on a test according
to the following scheme.
A: Top 9% of scores
B: Scores below the top 9% and above the bottom 63%
C: Scores below the top 37% and above the bottom 17%
D: Scores below the top 83% and above the bottom 8%
F: Bottom 8% of scores
Scores on the test are normally distributed with a mean of 75.8 and
a standard deviation of 8.1. Find the minimum score required for an A
grade.
# mean = 75.8, sd = 8.1 --> find the score at 0.91
round(qnorm(0.91, mean = 75.8, sd = 8.1), digits = 0)
## [1] 87
The minimum score required for an A grade is 87.
10. Consider the probability that exactly 96 out of 155 computers
will not crash in a day. Assume the probability that a given computer
will not crash in a day is 61%. Approximate the (binomial) probability
using the normal distribution.
# n = 155, p = 0.61, mean = np, sd = sqrt(np * (1 - p)) --> normal approximation for binomial --> P(X = 96) becomes P(X <= 96.5) - P(X <= 95.5)
n_10 = 155
p_10 = 0.61
mean_10 = n_10 * p_10
sd_10 = sqrt((n_10 * p_10) * (1 - p_10))
round(pnorm(96.5, mean = mean_10, sd = sd_10) - pnorm(95.5, mean = mean_10, sd = sd_10), digits = 4)
## [1] 0.0638
The probability that exactly 96 computers will crash is 0.0638.