1. Mean test: single sample
The T test is used to test hypotheses about the population mean, assuming that the population variance is unknown.
Example 1:
A production engineer wants to test, based on the data in Table a. follow, and for a significance level $\alpha$=0.05, if the average height of a stem is close to nominal value 1055 mm. A sample of 20 stems was analyzed and we will load the data into the system.
| 903.88 |
| 1020.7 |
| 934.52 |
| 860.41 |
| 936.78 |
| 1036.92 |
| 915.38 |
| 1214.08 |
| 1039.19 |
| 1086.98 |
| 1098.04 |
| 1014.53 |
| 993.45 |
| 950.38 |
| 1144.94 |
| 1011.26 |
| 1097.79 |
| 1120.19 |
| 941.83 |
| 1066.12 |
The data will be sent to the system.
To load the data, open Data upload, choose the Paste tab, paste the data column above, uncheck Column name (the data has no header; the column will be named V1), give the dataset a name (for example, Teste t — uma amostra), and click Load.

In the sidebar menu, open Basic Statistics › Mean Test › Single Sample and fill in the Settings panel:
- Check Complete Data.
- In Escolha a Variável Resposta, select
V1. - In Trust Level, enter
0.95. - In Null hypothesis, enter
1055. - Check Different.
- Check Boxplot.
- Check Dotplot.
- Click Calculate.

In the Results panel, you can also download the analysis as Excel, Word, or PDF.
Test results
| Value | |
|---|---|
| T Statistics | -1,744 |
| Degrees of freedom | 19 |
| P-value | 0.097 |
| Sample Mean | 1019.369 |
| Sample standard deviation | 91,369 |
| Sample size | 20,000 |
| Alternative hypothesis different from | 1055 |
| Confidence level | 0.950 |
| Lower limit | 976.607 |
| Upper limit | 1062.130 |


The test statistic is -1.744. Since the P-value is 0.0973, then at a 5% significance level, we do not reject the null hypothesis that the The mean height of the stem population is close to the nominal value. 1055mm.
Example 2:
A production engineer wants to test, at a significance level $\alpha$ = 0.05, if the mean height of a rod approaches the nominal value 1055 mm, from a sample size of 20 with an mean of 1019,369 and standard deviation 91.36863.
In the sidebar menu, open Basic Statistics › Mean Test › Single Sample and fill in the Settings panel:
- Check Summary Data.
- Uncheck Complete Data.
- In Sample Size, enter
20. - In Sample Average, enter
1019.369. - In Standard Deviation, enter
91.36863. - In Trust Level, enter
0.95. - In Null hypothesis, enter
1055. - Check Different.
- Click Calculate.

In the Results panel, you can also download the analysis as Excel, Word, or PDF.
Results of Test
| Value | |
|---|---|
| T Statistics | -1,744 |
| Degrees of freedom | 19 |
| P-value | 0.097317 |
| Sample Mean | 1019.369 |
| Sample standard deviation | 91.36863 |
| Sample size | 20 |
| Alternative hypothesis different from | 1055 |
| Confidence level | 0.950 |
| Lower limit | 976.60716 |
| Upper limit | 1062.13084 |
The test statistic is -1.744. Since the P value is 0.0973, then at a 5% significance level, we do not reject the null hypothesis that the The mean height of the stem population is close to the nominal value. 1055mm.