Q1

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.

n<- 20
x<- 9:12
pi<- .5
binom<-dbinom(0:n, n, pi)
round(sum(binom[10:13]),4)
## [1] 0.6167
barplot(binom, xlab="Buyers", ylab="Probability Buyer Prefers Red")

Q2

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.

n<- 13
x<- 4:5
pi<- .2
binom<-dbinom(0:n, n, pi)
round(sum(binom[5:6]),4)
## [1] 0.2226
barplot(binom, xlab="Bulbs", ylab="Probability Bulb is Defective")

Q3

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.

round(pnorm(3,mean=4.2,lower.tail=TRUE),4)
## [1] 0.1151

Q4

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.

n<- 17
x<- 3
pi<- 6/17
binom<-dbinom(0:n, n, pi)
round(sum(binom[0:2]),4)
## [1] 0.0063
barplot(binom, xlab="Bottles", ylab="Probability of Contamination")

Q5

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? Express your answer as a fraction or a decimal number rounded to four decimal places.

n<- 6
x<- 6
pi<- 6/25
binom<-dbinom(0:n, n, pi)
round(sum(binom[2:7]),4)
## [1] 0.8073
barplot(binom, xlab="Dismissed Employees", ylab="Probability Age > 50")

Q6

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.

var=90000
sqrtvar = sqrt(var)
#mean = 800
#x<-1040:1460
upp<-pnorm(1040,mean=800,sd=sqrtvar, lower.tail=FALSE)
low<-pnorm(1460,mean=800,sd=sqrtvar, lower.tail=FALSE)
round(sum(upp)-sum(low),4)
## [1] 0.198

Q7

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.

#sd = sqrt(var) = 4
#mean = 106
#x<-103:111upp<-pnorm(103,mean=106,sd=4, lower.tail=FALSE)
low<-pnorm(111,mean=106,sd=4, lower.tail=FALSE)
round(sum(upp)-sum(low),4)
## [1] 0.1062

Q8

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.

#sd = sqrt(var) = 0.07
#mean = 3.34
#uptail<-.03
#lowtail<-.03
upp<-round(qnorm(.97,mean=3.34,sd=0.07, lower.tail=TRUE),2)
low<-round(qnorm(.03,mean=3.34,sd=0.07, lower.tail=TRUE),2)
print(paste("Too long at or above", upp, "cm"))
## [1] "Too long at or above 3.47 cm"
print(paste("Too short at or below", low, "cm"))
## [1] "Too short at or below 3.21 cm"

Q9

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.

#sd = sqrt(var) = 8.1
#mean = 75.8
#A<-.91, upper
#B<- .63:.90, upper
#C<- .17:.62, lower
#D<- .09:.16, lower
#F<- .08, lower
A<-round(qnorm(.91,mean=75.8,sd=8.1, lower.tail=TRUE),0)
print(paste("To get an A, you must have scored an", A,"or higher"))
## [1] "To get an A, you must have scored an 87 or higher"

Q10

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
x<- 96
pi<- .61
round(dbinom(96, n, pi),4)
## [1] 0.064