1. Proportions: Single Sample
Proportion test is used to analyze whether the success rate of a experiment is satisfactory.
Example 1:
A manufacturer guarantees that 90% of the parts it supplies to the production line of a given factory is in accordance with the specifications required. A sample of 200 pieces was selected and each piece was evaluated as within specifications (value 1) or outside specifications specifications (value 0) according to the table below. At a 5% level, Can we say that the manufacturer’s claim is true?
| 1 |
| 1 |
| 1 |
| 1 |
| 1 |
| 0 |
| 1 |
| 1 |
| 1 |
| 1 |
| 1 |
| 0 |
| 1 |
| 1 |
| 1 |
| 1 |
| 1 |
| 1 |
| 1 |
| 1 |
| 1 |
| 1 |
| 0 |
| 1 |
| 1 |
| 1 |
| 1 |
| 1 |
| 1 |
| 1 |
| 0 |
| 1 |
| 1 |
| 1 |
| 1 |
| 1 |
| 1 |
| 1 |
| 1 |
| 1 |
| 1 |
| 1 |
| 1 |
| 1 |
| 1 |
| 1 |
| 1 |
| 1 |
| 1 |
| 1 |
| 1 |
| 1 |
| 1 |
| 1 |
| 1 |
| 1 |
| 1 |
| 1 |
| 1 |
| 0 |
| 1 |
| 1 |
| 1 |
| 1 |
| 1 |
| 0 |
| 1 |
| 0 |
| 1 |
| 1 |
| 1 |
| 1 |
| 1 |
| 1 |
| 1 |
| 1 |
| 1 |
| 1 |
| 1 |
| 1 |
| 0 |
| 1 |
| 1 |
| 1 |
| 1 |
| 1 |
| 1 |
| 0 |
| 1 |
| 1 |
| 1 |
| 1 |
| 1 |
| 1 |
| 1 |
| 1 |
| 1 |
| 1 |
| 0 |
| 1 |
| 1 |
| 1 |
| 1 |
| 1 |
| 1 |
| 1 |
| 1 |
| 1 |
| 1 |
| 1 |
| 1 |
| 1 |
| 1 |
| 1 |
| 1 |
| 1 |
| 1 |
| 1 |
| 1 |
| 1 |
| 1 |
| 1 |
| 1 |
| 1 |
| 1 |
| 1 |
| 1 |
| 1 |
| 1 |
| 0 |
| 1 |
| 1 |
| 0 |
| 1 |
| 1 |
| 1 |
| 1 |
| 1 |
| 1 |
| 0 |
| 1 |
| 0 |
| 1 |
| 1 |
| 1 |
| 1 |
| 1 |
| 0 |
| 1 |
| 1 |
| 1 |
| 1 |
| 0 |
| 1 |
| 1 |
| 1 |
| 1 |
| 1 |
| 1 |
| 0 |
| 1 |
| 1 |
| 1 |
| 1 |
| 1 |
| 0 |
| 0 |
| 1 |
| 1 |
| 1 |
| 1 |
| 1 |
| 1 |
| 1 |
| 0 |
| 1 |
| 1 |
| 1 |
| 1 |
| 0 |
| 1 |
| 1 |
| 1 |
| 1 |
| 1 |
| 1 |
| 0 |
| 1 |
| 1 |
| 1 |
| 0 |
| 1 |
| 1 |
| 1 |
| 1 |
| 1 |
| 1 |
| 0 |
| 0 |
| 1 |
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 de uma proporção), and click Load.

In the sidebar menu, open Basic Statistics › Proportion Tests › Single Sample and fill in the Settings panel:
- Check Complete Data.
- In Colunas para análise, select
V1. - In Identification of Success, select
1. - In Choice of test type, select
Normal Approach. - In Trust Level, enter
0.95. - In Null hypothesis, enter
0.9. - Check Less than.
- Uncheck Different.
- Click Calculate.

In the Results panel, you can also download the analysis as Excel, Word, or PDF.
The results are as follows:
Results
| Quantity | Proportions | |
|---|---|---|
| Success | 175 | 0.875 |
| Failure | 25 | 0.125 |
Results
| Values | |
|---|---|
| Z Statistic | -1.178511 |
| P-value | 0.1192964 |
| Proportion of success in the sample | 0.875 |
| Alternative Hypothesis Lower than | 0.9 |
| Confidence Level | 95% |
| Lower Limit | 0 |
| Upper Limit | 0.9134655 |
The test statistic is -1.178511. As the P-value is 0.1192964 > 0.05 So, at a significance level of 5%, we have evidence that the proportion is equal to 0.9.
Example 2:
A manufacturer guarantees that 90% of the parts it supplies to the production line of a given factory is in accordance with the specifications required. Analysis of a sample of 200 parts revealed 25 to be defective. At a level of 5%, we can say that the statement of the manufacturer?
In the sidebar menu, open Basic Statistics › Proportion Tests › Single Sample and fill in the Settings panel:
- Check Summary Data.
- Uncheck Complete Data.
- In Number of Successes, enter
175. - In Number of Tests, enter
200. - In Choice of test type, select
Normal Approach. - In Trust Level, enter
0.95. - In Null hypothesis, enter
0.9. - Check Less than.
- Uncheck Different.
- Click Calculate.

In the Results panel, you can also download the analysis as Excel, Word, or PDF.
The results are as follows:
Results
| Quantity | Proportions | |
|---|---|---|
| Success | 175 | 0.875 |
| Failure | 25 | 0.125 |
Results
| Values | |
|---|---|
| Z Statistic | -1.178511 |
| P-value | 0.1192964 |
| Proportion of success in the sample | 0.875 |
| Alternative Hypothesis Lower than | 0.9 |
| Confidence Level | 95% |
| Lower Limit | 0 |
| Upper Limit | 0.9134655 |
The test statistic is -1.178511. As the P-value is 0.1192964 > 0.05 So, at a significance level of 5%, we have evidence that the proportion is equal to 0.9.