# One Sample T-Test

### Data Help Services

One sample *t*-test is a statistical procedure used to examine the mean difference between the sample and the known value of the population mean. In one sample t-test, we know the population mean. We draw a random sample from the population and then compare the sample mean with the population mean and make a statistical decision as to whether or not the sample mean is different from the population mean. We can use this analysis, for example, when we take a sample from the city and we know the mean of the country (population mean). If we want to know whether the city mean differs from the country mean, we will use the one sample *t*-test.

**Procedure:**

Set up the hypothesis:

A. Null hypothesis: assumes that there are no significance differences between the population mean and the sample mean.

B. Alternative hypothesis: assumes that there is a significant difference between the population mean and the sample mean.

- Calculate the standard deviation for the sample by using this formula:

Where,

S = Standard deviation

= Sample mean

n = number of observations in sample

2.Calculate the value of the one sample t-test, by using this formula:

Where,

t = one sample t-test value

= population mean

3. Calculate the degree of freedom by using this formula:

V = n - 1

Where,

V= degree of freedom

4. Hypothesis testing: In hypothesis testing, statistical decisions are made to decide whether or not the population mean and the sample mean are different. In hypothesis testing, we will compare the calculated value with the table value. If the calculated value is greater than the table value, then we will reject the null hypothesis, and accept the alternative hypothesis.

**Assumptions:**

- Dependent variables should be normally distributed.
- Samples drawn from the population should be random.
- Cases of the samples should be independent.
- We should know the population mean.

**Click here for assistance with conducting a one sample t-test or other quantitative analyses.*

**Related Pages:**

One-Sample T-Test Video Tutorial

Conduct and Interpret a One-Sample T-Test

**To Reference this Page:** Statistics Solutions. (2013). One Sample T-Test [WWW Document]. Retrieved from http://www.statisticssolutions.com/academic-solutions/resources/directory-of-statistical-analyses/one-sample-t-test/