# prob greater than 979 is (1 - prob of less than 979)
round(1 - pnorm(979, mean = 1300, sd = sqrt(40000)), 4)
## [1] 0.9458
# we can also find the prob of greater than 8340 by setting lower tail FALSE
round(pnorm(8340, mean = 11000, sd = sqrt(1960000), lower.tail = FALSE), 4)
## [1] 0.9713
# prob that will earn less than or equal to 85 million dollars
a <- pnorm(85, 80, 3)
# prob that will earn less than or equal to 83 million dollars
b <- pnorm(83, 80, 3)
# a subtracted by b will return the prob between 83 and 85 million dollars
round(a - b, 4)
## [1] 0.1109
# the minimum score at top 14% is the score at the 86th percentile
round(qnorm(.86, 456, 123))
## [1] 589
# the length that separates the bottom 7%
bottom7 <- round(qnorm(.07, 6.14, .06), 2)
# the length that separtes the top 7%
top7 <- round(qnorm(.93, 6.14, .06), 2)
paste("Nails should be rejected if they are shorter than", bottom7, "centimeters or longer than", top7, "centimeters.")
## [1] "Nails should be rejected if they are shorter than 6.05 centimeters or longer than 6.23 centimeters."
# for C grade, we want values between the 20th percentile and 55th percentile
perc20 <- round(qnorm(.20, 78.8, 9.8))
perc55 <- round(qnorm(.55, 78.8, 9.8))
paste("The numerical limits for a C grade are", perc20, "and", perc55)
## [1] "The numerical limits for a C grade are 71 and 80"
round(qnorm(.55, 21.2, 5.4), 1)
## [1] 21.9
# This is a binomial distribution with parameters (n=151, p=.09), mean=n*p, variance=n*p*(1-p)
mean <- 151*.09
variance <- 151*.09*.91
sd <- sqrt(variance)
round(pnorm(11, mean, sd), 4)
## [1] 0.2307
# first, construct the sample of 147 tires, with individual mean of 48 months and std dev of 7
sample9 <- rnorm(147, 48, 7)
# then, use pnorm with sample mean and sample sd to find prob that mean of sample greater than 48.83
round(1 - pnorm(48.83, mean(sample9), sd(sample9)), 4)
## [1] 0.4587
The quality control manager at a computer manufacturing company believes that the mean life of a computer is 91 months, with a standard deviation of 10. If he is correct, what is the probability that the mean of a sample of 68 computers would be greater than 93.54 months? (Round your answer to 4 decimal places)sample10 <- rnorm(68, 91, 10)
round(1 - pnorm(93.54, mean(sample10), sd(sample10)), 4)
## [1] 0.4525
A director of reservations believes that 7% of the ticketed passengers are no-shows. If the director is right, what is the probability that the proportion of no-shows in a sample of 540 ticketed passengers would differ from the population proportion by less than 3%? (Round your answer to 4 decimal places)# construct a sample of 540 passengers
sample11 <- rbinom(n=540, size=1, prob=.07)
# find the prob that no-shows are between 4% and 10%
p4 <- pbinom(540*.04, size=540, prob=mean(sample11))
p10 <- pbinom(540*.10, size=540, prob=mean(sample11))
round(p10 - p4, 4)
## [1] 0.9471
A bottle maker believes that 23% of his bottles are defective. If the bottle maker is accurate, what is the probability that the proportion of defective bottles in a sample of 602 bottles would differ from the population proportion by greater than 4%? (Round your answer to 4 decimal places)sample12 <- rbinom(n=602, size=1, prob=.23)
# prob that sample would be 19% or less defective
p19 <- pbinom(602*.19, size=602, prob=mean(sample12))
# prob that sample would be 27% or more defective
p27 <- pbinom(602*.27, size=602, prob=mean(sample12), lower.tail=FALSE)
round(p19 + p27, 4)
## [1] 0.0204
A research company desires to know the mean consumption of beef per week among males over age 48. Suppose a sample of size 208 is drawn with x ?? = 3.9. Assume ® = 0.8 . Construct the 80% confidence interval for the mean number of lb. of beef per week among males over 48. (Round your answers to 1 decimal place) # find standard deviation of the sample size 208
sample13sd <- .8/sqrt(208)
# the lower bound of 80% confidence interval is at the 10th percentile
paste("Lower Bound:", round(qnorm(.1, 3.9, sample13sd), 1))
## [1] "Lower Bound: 3.8"
# the upper bound of 80% confidence interval is at the 90th percentile
paste("Upper Bound:", round(qnorm(.9, 3.9, sample13sd), 1))
## [1] "Upper Bound: 4"
An economist wants to estimate the mean per capita income (in thousands of dollars) in a major city in California. Suppose a sample of size 7472 is drawn with x ?? = 16.6. Assume ® = 11 . Construct the 98% confidence interval for the mean per capita income. (Round your answers to 1 decimal place) # find standard deviation of the sample size 7472
sample14sd <- 11/sqrt(7472)
# the lower bound of 98% confidence interval is at the 1st percentile
paste("Lower Bound:", round(qnorm(.01, 16.6, sample14sd), 1))
## [1] "Lower Bound: 16.3"
# the upper bound of 98% confidence interval is at the 99th percentile
paste("Upper Bound:", round(qnorm(.99, 16.6, sample14sd), 1))
## [1] "Upper Bound: 16.9"
Find the value of t such that 0.05 of the area under the curve is to the left of t. Assume the degrees of freedom equals 26.Step 1. Choose the picture which best describes the problem. Picture in the upper right
Step 2. Write your answer below.
# it's a one-sided t test at the 5th percentile, with 26 degrees of freedom
qt(.05, df=26)
## [1] -1.705618
The following measurements ( in picocuries per liter ) were recorded by a set of helium gas detectors installed in a laboratory facility:
383.6, 347.1, 371.9, 347.6, 325.8, 337
Using these measurements, construct a 90% confidence interval for the mean level of helium gas present in the facility. Assume the population is normally distributed.Step 1. Calculate the sample mean for the given sample data. (Round answer to 2 decimal places)
sample16 <- c(383.6, 347.1, 371.9, 347.6, 325.8, 337)
sample16M <- round(mean(sample16), 2)
sample16M
## [1] 352.17
Step 2. Calculate the sample standard deviation for the given sample data. (Round answer to 2 decimal places)
sample16SD <- round(sd(sample16), 2)
sample16SD
## [1] 21.68
Step 3. Find the critical value that should be used in constructing the confidence interval. (Round answer to 3 decimal places)
n <- length(sample16)
# the critical value for 90% confidence intervel is at the 95th percentile with n-1 degrees of freedom
cv16 <- round(qt(.95, df=n-1), 3)
cv16
## [1] 2.015
Step 4. Construct the 90% confidence interval. (Round answer to 2 decimal places)
paste("Lower Bound:", round(sample16M-cv16*sample16SD, 2))
## [1] "Lower Bound: 308.48"
paste("Upper Bound:", round(sample16M+cv16*sample16SD, 2))
## [1] "Upper Bound: 395.86"
A random sample of 16 fields of spring wheat has a mean yield of 46.4 bushels per acre and standard deviation of 2.45 bushels per acre. Determine the 80% confidence interval for the true mean yield. Assume the population is normally distributed. Step 1. Find the critical value that should be used in constructing the confidence interval. (Round answer to 3 decimal places)
cv17 <- round(qt(.90, df=n-1), 3)
cv17
## [1] 1.476
Step 2. Construct the 80% confidence interval. (Round answer to 1 decimal place)
paste("Lower Bound:", round(46.4-cv17*2.45, 1))
## [1] "Lower Bound: 42.8"
paste("Upper Bound:", round(46.4+cv17*2.45, 1))
## [1] "Upper Bound: 50"
A toy manufacturer wants to know how many new toys children buy each year. She thinks the mean is 8 toys per year. Assume a previous study found the standard deviation to be 1.9. How large of a sample would be required in order to estimate the mean number of toys bought per child at the 99% confidence level with an error of at most 0.13 toys? (Round your answer up to the next integer)# Z value for 99% confidence level is 2.576
# round up to the next integer
ceiling((2.576*1.9/.13)^2)
## [1] 1418
A research scientist wants to know how many times per hour a certain strand of bacteria reproduces. He believes that the mean is 12.6. Assume the variance is known to be 3.61. How large of a sample would be required in order to estimate the mean number of reproductions per hour at the 95% confidence level with an error of at most 0.19 reproductions? (Round your answer up to the next integer)# Z value for 95% confidence level is 1.96
# round up to the next integer
ceiling((1.96*sqrt(3.61)/.19)^2)
## [1] 385
The state education commission wants to estimate the fraction of tenth grade students that have reading skills at or below the eighth grade level.Step 1. Suppose a sample of 2089 tenth graders is drawn. Of the students sampled, 1734 read above the eighth grade level. Using the data, estimate the proportion of tenth graders reading at or below the eighth grade level. (Write your answer as a fraction or a decimal number rounded to 3 decimal places)
round(1 - 1734/2089, 3)
## [1] 0.17
Step 2. Suppose a sample of 2089 tenth graders is drawn. Of the students sampled, 1734 read above the eighth grade level. Using the data, construct the 98% confidence interval for the population proportion of tenth graders reading at or below the eighth grade level. (Round your answers to 3 decimal places)
var20 <- 2089*.17*(1-.17)
paste("Lower Bound:", round(2089*.17-2.33*sqrt(var20), 3))
## [1] "Lower Bound: 315.127"
paste("Upper Bound:", round(2089*.17+2.33*sqrt(var20), 3))
## [1] "Upper Bound: 395.133"
An environmentalist wants to find out the fraction of oil tankers that have spills each month.Step 1. Suppose a sample of 474 tankers is drawn. Of these ships, 156 had spills. Using the data, estimate the proportion of oil tankers that had spills. (Write your answer as a fraction or a decimal number rounded to 3 decimal places)
round(156/474, 3)
## [1] 0.329
Step 2. Suppose a sample of 474 tankers is drawn. Of these ships, 156 had spills. Using the data, construct the 95% confidence interval for the population proportion of oil tankers that have spills each month. (Round your answers to 3 decimal places)
var21 <- 474*.329*(1-.329)
paste("Lower Bound:", round(474*.329-1.96*sqrt(var21), 3))
## [1] "Lower Bound: 135.896"
paste("Upper Bound:", round(474*.329+1.96*sqrt(var21), 3))
## [1] "Upper Bound: 175.996"