std_dev = sqrt(40000)
mean = 1300
round(1 - pnorm(q = 979, mean = mean, sd = std_dev, lower.tail = TRUE),4)
## [1] 0.9458
std_dev = sqrt(1960000)
mean = 11000
round(1 - pnorm(q = 8340, mean = mean, sd = std_dev, lower.tail = TRUE),4)
## [1] 0.9713
std_dev = 3000000
mean = 80000000
high_bound = pnorm(q = 85000000, mean = mean, sd = std_dev, lower.tail = TRUE)
low_bound = pnorm(q = 83000000, mean = mean, sd = std_dev, lower.tail = TRUE)
round(high_bound - low_bound,4)
## [1] 0.1109
std_dev = 123
mean = 456
round(qnorm(p = 0.14, mean = mean, sd = std_dev, lower.tail = FALSE))
## [1] 589
std_dev = 0.06
mean = 6.13
bottom_length = round(qnorm(p = 0.07, mean = mean, sd = std_dev, lower.tail = TRUE),1)
top_length = round(qnorm(p = 0.07, mean = mean, sd = std_dev, lower.tail = FALSE),1)
bottom_length
## [1] 6
top_length
## [1] 6.2
A: Top 13% of scores
B: Scores below the top 13% and above the bottom 55%
C: Scores below the top 45% and above the bottom 20%
D: Scores below the top 80% and above the bottom 9%
F: Bottom 9% of scores
Scores on the test are normally distributed with a mean of 78.8 and a standard deviation of 9.8. Find the numerical limits for a C grade. Round your answers to the nearest whole number, if necessary.
std_dev = 9.8
mean = 78.8
top_C_range = round(qnorm(p = 0.45, mean = mean, sd = std_dev, lower.tail = FALSE))
bottom_C_range = round(qnorm(p = 0.20, mean = mean, sd = std_dev, lower.tail = TRUE))
top_C_range
## [1] 80
bottom_C_range
## [1] 71
std_dev = 5.4
mean = 21.2
round(qnorm(p = 0.45, mean = mean, sd = std_dev, lower.tail = FALSE),1)
## [1] 21.9
# P(x < 11) = P(x <= 10)
round(pbinom(10, 151, 0.09), 4)
## [1] 0.192
std_dev = 7
mean = 48
N = 147
samp_mean = mean # mean does not change
samp_std_dev = std_dev/sqrt(N) # std_dev changes
round(pnorm(q = 48.83, mean = samp_mean, sd = samp_std_dev, lower.tail = FALSE),4)
## [1] 0.0753
std_dev = 10
mean = 91
N = 68
samp_mean = mean # mean does not change
samp_std_dev = std_dev/sqrt(N) # std_dev changes
round(pnorm(q = 93.54, mean = samp_mean, sd = samp_std_dev, lower.tail = FALSE),4)
## [1] 0.0181
p = 0.07
q = 1-p
N = 540
samp_std_dev = sqrt(p*q/N)
upper_bound = p+0.03
lower_bound = p-0.03
upper = pnorm(q = upper_bound, mean = p, sd = samp_std_dev, lower.tail = TRUE)
lower = pnorm(q = lower_bound, mean = p, sd = samp_std_dev, lower.tail = TRUE)
round(upper-lower,4)
## [1] 0.9937
p = 0.23
q = 1-p
N = 602
samp_std_dev = sqrt(p*q/N)
upper_bound = p+0.04
lower_bound = p-0.04
upper = pnorm(q = upper_bound, mean = p, sd = samp_std_dev, lower.tail = TRUE)
lower = pnorm(q = lower_bound, mean = p, sd = samp_std_dev, lower.tail = TRUE)
round(1-(upper-lower),4)
## [1] 0.0197
x_bar = 3.9
std_dev = 0.8
N = 208
std_err = qnorm(0.9)*std_dev/sqrt(N) # use 0.9, so that 0.1 is left out at each tail
lower = x_bar - std_err
upper = x_bar + std_err
round(lower,1)
## [1] 3.8
round(upper,1)
## [1] 4
x_bar = 16.6
std_dev = 11
N = 7472
std_err = qnorm(0.99)*std_dev/sqrt(N) # use 0.99, so that 0.01 is left out at each tail, two-tailed
lower = x_bar - std_err
upper = x_bar + std_err
round(lower,1)
## [1] 16.3
round(upper,1)
## [1] 16.9
Step 1. Choose the picture which best describes the problem.
The picture in the top right quadrant.
Step 2. Write your answer below.
qt(.05, df=26)
## [1] -1.705618
Step 1. Calculate the sample mean for the given sample data. (Round answer to 2 decimal places)
sample = c(383.6, 347.1, 371.9, 347.6, 325.8, 337)
N = 6
sample_mean = round(mean(sample),2)
sample_mean
## [1] 352.17
Step 2. Calculate the sample standard deviation for the given sample data. (Round answer to 2 decimal places)
sample_sd = round(sd(sample),2)
sample_sd
## [1] 21.68
Step 3. Find the critical value that should be used in constructing the confidence interval. (Round answer to 3 decimal places)
critical_vals = round(qt(c(0.05,0.95), df=5), 3) # df = N-1, two-tailed
critical_vals
## [1] -2.015 2.015
Step 4. Construct the 90% confidence interval. (Round answer to 2 decimal places)
confidence_int = sample_mean+critical_vals*sample_sd/sqrt(N)
round(confidence_int,2)
## [1] 334.34 370.00
Step 1. Find the critical value that should be used in constructing the confidence interval. (Round answer to 3 decimal places)
sample_mean = 46.4
sample_sd = 2.45
N = 16
critical_vals = qt(c(0.1, 0.9), df = 15) # df = N-1, two-tailed
round(critical_vals,3)
## [1] -1.341 1.341
Step 2. Construct the 80% confidence interval. (Round answer to 1 decimal place)
confidence_int = sample_mean+critical_vals*sample_sd/sqrt(N)
round(confidence_int,1)
## [1] 45.6 47.2
sample_mean = 8
sample_sd = 1.9
std_err = 0.13
z = qnorm(0.99) # one tailed
N = (z*sample_sd/std_err)^2
round(N,0)
## [1] 1156
sample_mean = 12.6
sample_sd = sqrt(3.61)
std_err = 0.13
z = qnorm(0.95) # one tailed
N = (z*sample_sd/std_err)^2
round(N,0)
## [1] 578
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)
N = 2089
N_above8 = 1734
N_atorbelow8 = N - N_above8
p = N_atorbelow8/N
round(p,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)
sample_sd = sqrt(p*(1 - p))
z = qnorm(c(0.01,0.99)) # two-tailed
interval = p+z*sample_sd/sqrt(N)
round(interval,3)
## [1] 0.151 0.189
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)
N = 474
N_spills = 156
p = N_spills/N
round(p,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)
sample_sd = sqrt(p*(1 - p))
z = qnorm(c(0.025,0.975)) # two-tailed
interval = p+z*sample_sd/sqrt(N)
round(interval,3)
## [1] 0.287 0.371