Note:
- Make sure to describe your evidence in Step 3 for why you are performing a 1-sample t-test. It is not adequate to simply say “because there is a quantitative response variable, only one group is being tested, and sigma is unknown.” At least say what the response variable is and what the one groups is.
- Also make sure to describe your evidence in Step 5 for why the assumptions are met. It is not adequate to simply say “n≥40” or “n≥15 and the sample distribution is not strongly skewed.” You should state the actual n and direct the reader to how you know the distribution is not strongly skewed (i.e., likely a histogram).
- In hand calculations, note that the test statistic (t in Step 7) is NOT the critical value (i.e., t) needed for the confidence region (in Step 11). The t you calculate in Step 7 has nothing to do with the t you will find in Step 11.
- When computing the t in Step 7, the numerator is always x̄ minus the specific value in H0 from Step 2.
-
The p-value in this example is shaded to the left of the t from Step 7 and the result from
distrib()
is multiplied by 2 because the HA is a not equals. If the t had been positive you would have shaded to the right and then multiplied by 2. When the HA is a not equals you always shaded into the tail nearest t and multiply thedistrib()
result by 2. - In Steps 10 and 11 don’t say μ. Rather replace it with μ means. See how those steps below say “mean CFU for ALL 100 ml of water” rather than just μ.
- Also in Step 10 you can be more specific then saying that the mean CFL differs from 178. Because the x̄ is less than what was hypothesized you can say that the mean CFL differs from 178 by being less than 178. So, even though you strictly only tested for a difference in this not equal situation, you can be more specific with your statement in Step 10.
- Your values may differ slightly from mine as I calculate everything in R that holds many decimal places on intermediate values.
Fecal Coliform Counts
- α=0.05.
- HA: μ≠178 and H0: μ=178, where μ is the mean number of CFU per 100 ml in ALL samples from this lake on this date.
- 1-sample t-test because (i) one group or population (this lake) was sampled, (ii) a quantitative variable (number of CFU per 100 ml) was recorded, and (iii) σ is not known.
- An observational study without clear randomization of 25 water samples.
- The assumptions are met because (i) σ is not known and (ii) n=25≥15 and the histogram (given in question) is not strongly skewed.
- x̄=168.19 CFU per 100 ml.
- t=\(\frac{168.19-178}{\frac{22.20}{\sqrt{25}}}\)=-2.209 with 24 df.
- p-value=0.0369.
- Reject H0 because the p-value<α.
- It appears that the mean CFU per ALL 100 ml of water sampled from this lake on this date is less than what the computer model predicted.
- One can be 95% confident that the mean CFU per ALL 100 ml of water sampled from this lake on this date is between 168.19-2.064\(\frac{22.20}{\sqrt{25}}\)=159 and 168.19+2.064\(\frac{22.20}{\sqrt{25}}\)=177, which further indicates that the mean CFU per ALL 100 ml of water is less than 178.
R Appendix.
xbar <- 168.19; s <- 22.20; n <- 25
se <- s/sqrt(n)
( t <- (xbar-178)/se )
( df <- n-1 )
( pv <- 2*distrib(t,distrib="t",df=df) )
( tstar <- distrib(0.975,type="q",distrib="t",df=df) )
( tstar <- c(-1,1)*tstar )
( ci <- xbar+tstar*se )
Increased Civility in Nation-States?
- α=0.05.
- HA: μ<4104 and H0: μ=4104, where μ is the mean number of citizens killed by ALL nation-states.
- 1-sample t-test because (i) one group or population (all nation-states) was sampled, (ii) a quantitative variable (number of killings) was recorded, and (iii) σ is not known.
- An observational study with clear randomization of 75 countries.
- The assumptions are met because (i) σ is not known and (ii) n=75≥40.
- x̄=3292.8 killings.
- t=\(\frac{3292.8-4104}{\frac{4814.5}{\sqrt{75}}}\)=-1.459 with 74 df.
- p-value=0.0744.
- Do not reject H0 because the p-value>α.
- It appears that the mean number of killings for recent times is NOT significantly lower than it was as determined from 19th century history books.
- One is 95% confident that the mean number of killings in recent years for ALL nation-states is less than \(3292.8+1.666\frac{4814.5}{\sqrt{75}}\)=4219, which further indicates that the mean number of killings is not less than 4104.
R Appendix.
xbar <- 3292.8; s <- 4814.5; n <- 75
( se <- s/sqrt(n) )
( t <- (xbar-4104)/se )
( df <- n-1 )
( pv <- distrib(t,distrib="t",df=df) )
( tstar <- distrib(0.95,type="q",distrib="t",df=df) )
( ucb <- xbar+tstar*se )