Read · 1 min

We've already learned about the types of error and one- and two-tailed test. In this next lesson, we will learn about another statistical hypothesis test: the one sample t-test.

Making Sense of One-Sample T-Tests

Below are four steps to conducting a one-sample t-test

1) Write out hypothesis statements (null and alternative)

one-sample:


H0:μ=m0H_0: \mu = m_0

H1:μ≠m0H_1: \mu \neq m_0 (two-tailed)


H0:μ≤m0H_0:\mu \leq m_0

H1:μ>m0H_1: \mu > m_0 (upper-tailed)


H0:μ≥m0H_0:\mu \geq m_0

H1:μ<m0H_1: \mu < m_0 (lower-tailed)

Such that:

m0m_0 is the value you are comparing the mean to (aka comparison value)

and \mu is your one sample mean

2) Plug known values into one-sample t-score formula

t=yˉ−m0σ^/nt = \frac{\bar{y}- m_0}{\hat{\sigma}/\sqrt{n}}

Such that:

yˉ=\bar{y} = sample mean

m0=m_0 = population mean/hypothesized value

σ^=\hat{\sigma} = sample standard deviation

n=n = sample size

3) Determine the degrees of freedom (dfdf)

df=n−1df = n-1 for a one-sample t-test

4) Determine the critical value by looking up (tα,dft_{\alpha, df}) in a t-table


Note: For one-sample t-tests we do not divide α\alpha by 2 before looking up the critical value in the t-table as we do for two-sample t-tests.


5) T-Test Conclusion/Significance (Reject Null Hyp. or Fail to Reject Null Hyp)

If the absolute value of the t-value is greater than the critical value, you reject the null hypothesis. If the absolute value of the t-value is less than the critical value, you fail to reject the null hypothesis.

Learning More

In a one sample t-test, the test statistic compares the mean of a sample to a known population mean to determine if there is a significant difference. The standard error quantifies the variability of the sample mean around the population mean, crucial for determining the precision of the test statistic.

We can also incorporate the confidence interval. A 95%95\% confidence interval for a one-sample t-test indicates a range of values in the sample that is likely to contain the true population mean with a 95%95\% certainty.

Read · 1 min

One-Sample T-Test Example

Question: Your fishing company wants to improve their salmon sales. Past sales data indicate that the average sale for salmon was 100 dollars per transaction. After training your fish vendors (salesmen), recent sales data (taken from a sample of 25 vendors) indicates an average sale of 130 dollars, with a standard deviation of 15 dollars. Did the training significantly raise sales? Assume an alpha level of 5%.

1) Write out null and alternative hypothesis statements:

Because this question is asking whether or not we significantly raised sales, or made more than 100 dollars per transaction and only has one sample described, this is an upper-tailed, one-sample problem. Hence our hypothesis statements are as follows

H0:μ≤100H_0:\mu \leq 100

H1:μ>100H_1: \mu > 100

2) Plug in known values into t-score formula

Known values:

yˉ=samplemean=130\bar{y} = sample mean = 130

m0=PopulationMean/HypothesizedValue=100m_0 = Population Mean/ Hypothesized Value = 100

σ^=SampleStandardDeviation=15\hat{\sigma} = Sample Standard Deviation = 15

n=SampleSize=25\sqrt{n} = \sqrt{Sample Size} = \sqrt{25}

t=tscore=130−10015/25=303=10t = tscore = \frac{130- 100}{15/\sqrt{25}} = \frac{30}{3} = 10

3) Figure out the degrees of freedom parameter (dfdf)

for a one-sample t-test our df=n−1df = n-1 so df=24df = 24

4) Determine the critical value

Look up (t0.05,24t_{0.05, 24}) in a t-table

(t0.05,24t_{0.05, 24}) = 1.710882


Note: For one-sample t-tests we do not divide α=5\alpha=5 by 2 before looking up the critical value in the t-table as we do for two-sample t-tests.


A handy t-table to have is this one from San Jose State University!

5) Determine significance of results and whether or not to reject the null or fail to reject the null

Because the magnitude of the t-value is greater than the critical value (10 > 1.710882), we have significant evidence to reject the null hypothesis.

Video

(Video) One Sample T-Test

by statslectures

In this video by statslectures, you will learn about the one sample t-test.

Type a concept, like “slope” or “photosynthesis”.

↑ ↓ to choose · Enter to openSearch explanations and problems