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? Round your answer to four decimal places. Use the round() function in R.
n<-20
p<-0.5
plot(x=0:n,
y= dbinom(x =0:n,n,p),
type="h",
main= "Binomial Distribution (n=20, p=0.5)",
xlab="car buyers",
ylab="Probability that buyer prefer red",
lwd = 3)
p1<-sum(dbinom(x = 9:12, n, p))
round(p1,4)
## [1] 0.6167
The probability that between 9 and 12 (both inclusive) buyers would prefer red is 0.6167.
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? Round your answer to four decimal places.
n<-13
p<-0.2
plot(x=0:n,
y= dbinom(x =0:n,n,p),
type="h",
main="Binomial Distribution (n=13, p=0.2)",
xlab="light bulbs",
ylab="Probability that light bulbs are defective",
lwd = 3)
p2<-sum(dbinom(x = 4:5, n, p))
round(p2,4)
## [1] 0.2226
The probability that less than 6 but more than 3 bulbs from the sample are defective is 0.2226.
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? Round your answer to four decimal places.
n<-3
mean1<-4.2
plot(x=0:15,
y= dpois(x =0:15,mean1),
type="h",
main="Poisson Distribution (mean=4.2)",
xlab="special orders",
ylab="Probability that special orders sent",
lwd = 3)
p3<-sum( dpois(x = 0:n, mean1))
round(p3,4)
## [1] 0.3954
The probability that 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? Round your answer to four decimal places.
plot(x=0:10,
y= dhyper(x =0:10,6,11,3),
type="h",
main="Hypergeometric Distribution (n=17)",
xlab="tested bottles",
ylab="Probability that tested bottles are contaminated",
lwd = 3)
p4<-sum(dhyper(x =0:1,6,11,3))
round(p4,4)
## [1] 0.7279
The probability that less than 2 of the tested bottles are contaminated is 0.7279.
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? Round your answer to four decimal places
plot(x=0:10,
y= dhyper(x =0:10,6,19,6),
type="h",
main="Hypergeometric Distribution (n=25)",
xlab="tested bottles",
ylab="Probability that tested bottles are contaminated",
lwd = 3)
p5<-sum(dhyper(x =2:6,6,19,6))
round(p5,4)
## [1] 0.4529
The probability that more than 1 employee was over 50 is 0.4529.
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. Round your answer to four decimal places
mean1<-800
v<-90000
sd1<-sqrt(v)
x <- seq(mean1-3*sd1, mean1+3*sd1, length = 1000)
y <- dnorm(x, mean1, sd1)
plot(x,
y,
type = "l",
lwd = 2,
col="purple",
main="Normal Distribution(sd=300)",
xlab = "Pounds",
ylab = "Probability that the weight of a randomly selected")
p6<-pnorm(1460,mean1,sd1)-pnorm(1040,mean1,sd1)
round(p6,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. Round your answer to four decimal places.
mean1<-106
sd1<-4
x <- seq(mean1-3*sd1, mean1+3*sd1, length = 1000)
y <- dnorm(x, mean1, sd1)
plot(x,
y,
type = "l",
lwd = 2,
col="blue",
main="Normal Distribution(sd=4)",
xlab = "Diameter(mm)",
ylab = "Probability that the diameter of a selected bearing")
p7<-pnorm(111,mean1,sd1)-pnorm(103,mean1,sd1)
round(p7,4)
## [1] 0.6677
The probability that the diameter of a selected bearing between 103 and 111 millimeters 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. Round your answer to the nearest hundredth (2 decimal places)
mean1<-3.34
sd1<-0.07
x <- seq(mean1-3*sd1, mean1+3*sd1, length = 1000)
y <- dnorm(x, mean1, sd1)
plot(x,
y,
type = "l",
lwd = 2,
col="pink",
main="Normal Distribution(sd=0.07)",
xlab = "legnth(cm)",
ylab = "lengths separate")
p8_top<-qnorm(1-0.03, mean1, sd1)
round(p8_top,2)
## [1] 3.47
p8_bottom<-qnorm(0.03, mean1, sd1)
round(p8_bottom,2)
## [1] 3.21
The lengths that separate the top 3% is 3.47. The lengths that separate the bottom 3% is 3.21.
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. Round your answer to the nearest whole number.
mean1<-75.8
sd1<-8.1
x <- seq(mean1-3*sd1, mean1+3*sd1, length = 1000)
y <- dnorm(x, mean1, sd1)
plot(x,
y,
type = "l",
lwd = 2,
col="brown",
main="Normal Distribution(sd=8.1)",
xlab = "Grade",
ylab = "probability of Score")
p9<-qnorm(1-0.09, mean1, sd1)
round(p9)
## [1] 87
The minimum score required for an A grade is 87.
10.0. 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. Round your answer to four decimal places.
n<-155
p<-0.61
x<-96
p10 <- dbinom(x,n,p)
round(p10,4)
## [1] 0.064
The probability is 0.0640.