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?
Round your answer to four decimal places. Use the round() function in R.
# P(9 ≤ X ≤ 12 | n = 20, π = 0.5)
?pbinom
pbinom(q = 12,
size = 20,
prob = .5,
lower.tail = TRUE
) -
pbinom(q = 8,
size = 20,
prob = .5,
lower.tail = TRUE
)
## [1] 0.6166897
round(pbinom(q = 12,
size = 20,
prob = .5,
lower.tail = TRUE
) -
pbinom(q = 8,
size = 20,
prob = .5,
lower.tail = TRUE
),
digits = 4
)
## [1] 0.6167
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?
Round your answer to four decimal places.
?pbinom
pbinom(q = 5,
size = 13,
prob = .2,
lower.tail = TRUE
) -
pbinom(q = 3,
size = 13,
prob = .2,
lower.tail = TRUE
)
## [1] 0.2226404
round(pbinom(q = 5,
size = 13,
prob = .2,
lower.tail = TRUE
) -
pbinom(q = 3,
size = 13,
prob = .2,
lower.tail = TRUE
),
digits = 4
)
## [1] 0.2226
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? Round your answer to four decimal places.
ppois(q = 3,
lambda = 4.2,
lower.tail = TRUE
)
## [1] 0.3954034
round(ppois(q = 3,
lambda = 4.2,
lower.tail = TRUE
) ,
digits = 4
)
## [1] 0.3954
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?
Express your answer as a fraction or a decimal number rounded to four decimal places.
phyper(q = 1,
m = 6,
n = 17-6,
k = 3,
lower.tail = TRUE)
## [1] 0.7279412
round(phyper(q = 1,
m = 6,
n = 17-6,
k = 3,
lower.tail = TRUE),
digits = 4
)
## [1] 0.7279
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?
Round your answer to four decimal places.
phyper(q = 1,
m = 6,
n = 25-6,
k = 6,
lower.tail = FALSE)
## [1] 0.4528515
round(phyper(q = 1,
m = 6,
n = 25-6,
k = 6,
lower.tail = FALSE),
digits = 4
)
## [1] 0.4529
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.
Round your answer to four decimal places.
pnorm(q = 1460,
mean = 800,
sd = 300) - pnorm(q = 1040,
mean = 800,
sd = 300)
## [1] 0.197952
round(pnorm(q = 1460,
mean = 800,
sd = 300) - pnorm(q = 1040,
mean = 800,
sd = 300),
digits = 4
)
## [1] 0.198
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.
Round your answer to four decimal places.
pnorm(q = 111,
mean = 106,
sd = 4) - pnorm(q = 103,
mean = 106,
sd = 4)
## [1] 0.6677229
round(pnorm(q = 111,
mean = 106,
sd = 4) - pnorm(q = 103,
mean = 106,
sd = 4),
digits = 4
)
## [1] 0.6677
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.
Round your answer to the nearest hundredth, if necessary.
?qnorm
qnorm(p = 0.03, mean = 3.34, sd = 0.07)
## [1] 3.208344
qnorm(p = 0.97, mean = 3.34, sd = 0.07)
## [1] 3.471656
round(x = c( qnorm(p = 0.03, mean = 3.34, sd = 0.07),
qnorm(p = 0.97, mean = 3.34, sd = 0.07)
),
digits = 2)
## [1] 3.21 3.47
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. Round your answer to the nearest whole number, if necessary.
?qnorm
qnorm(p = 1 - 0.09, mean = 75.8, sd = 8.1)
## [1] 86.66012
round(qnorm(p = 0.91, mean = 75.8, sd = 8.1))
## [1] 87
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 probability using the normal distribution. Round your answer to four decimal places.
n <- 155
pi <- .61
MEAN <- n * pi
SD <- sqrt(pi * (1-pi) * n )
#P(X = 96 | π = 0.61, n = 155)
dnorm(x = 96,
mean = 0.61 * 155,
sd = sqrt(0.61 * 0.39 * 155 )
)
## [1] 0.06385071
# n is large and pi is small
n <- 155
p <- .61
n * p > 10
## [1] TRUE
n * (1-p) > 10
## [1] TRUE