Full Workflow + Assumptions
A labor economist is studying quarterly net job gain percentages in a specific sector. Over the past 20 quarters, the following sample statistics were computed from the collected data:
A commonly cited benchmark suggests that a “healthy” labor market should have an average quarterly job gain of $0.2\%$.
The economist wants to determine whether the current data provide sufficient evidence that the true mean job gain is greater than $0.2\%$.
sigma <- 0.5
mu_0 <- 0.2
x_bar <- 0.34
n <- 20
z <- (x_bar - mu_0) / (sigma / sqrt(n))
p_right <- 1 - pnorm(z)
z
p_right> z
[1] 1.252198
> p_right
[1] 0.1052507Two-Tailed, Structured
A manufacturing company claims that the average lifetime of its batteries is $29$ hours.
A consumer group tests a random sample of batteries and records:
The group wants to determine whether the true mean lifetime differs from the company’s claim.
sigma <- 8
mu_0 <- 29
x_bar <- 31
n <- 29
z <- (x_bar - mu_0) / (sigma / sqrt(n))
p_two <- 2 * (1 - pnorm(abs(z)))
z
p_two> z
[1] 1.346291
> p_two
[1] 0.1782089A quality control engineer is monitoring a production process where the target mean measurement is $38$ units.
A sample from the process yields:
The engineer wants to determine whether the process mean is different from the target.
sigma <- 8
mu_0 <- 38
x_bar <- 36
n <- 23
alpha <- 0.05
z <- (x_bar - mu_0) / (sigma / sqrt(n))
cv_lower <- qnorm(alpha/2)
cv_upper <- qnorm(1 - alpha/2)
z
cv_lower
cv_upper> z
[1] -1.198958
> cv_lower
[1] -1.959964
> cv_upper
[1] 1.959964Interpretation and Variability
A national survey reports that the average annual salary in a certain profession is:
Researchers are interested in understanding how sample size affects the variability of the sample mean.
sigma <- 8.8
# Standard Error for n = 64
SE_64 <- sigma / sqrt(64)
SE_64
# Standard Error for n = 256
SE_256 <- sigma / sqrt(256)
SE_256> SE_64
[1] 1.1
> SE_256
[1] 0.55Provided below are summary statistics for independent simple random samples from two populations. Use the pooled t-test and the pooled t-interval procedure to conduct the required hypothesis test and obtain the specified confidence interval.
Provided below are summary statistics for independent simple random samples. Use the nonpooled t-test and the nonpooled t-interval procedure.