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.

Example 1 data loaded in Action Stat

In the sidebar menu, open Basic Statistics › Proportion Tests › Single Sample and fill in the Settings panel:

  1. Check Complete Data.
  2. In Colunas para análise, select V1.
  3. In Identification of Success, select 1.
  4. In Choice of test type, select Normal Approach.
  5. In Trust Level, enter 0.95.
  6. In Null hypothesis, enter 0.9.
  7. Check Less than.
  8. Uncheck Different.
  9. Click Calculate.

Settings for example 1

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:

  1. Check Summary Data.
  2. Uncheck Complete Data.
  3. In Number of Successes, enter 175.
  4. In Number of Tests, enter 200.
  5. In Choice of test type, select Normal Approach.
  6. In Trust Level, enter 0.95.
  7. In Null hypothesis, enter 0.9.
  8. Check Less than.
  9. Uncheck Different.
  10. Click Calculate.

Settings for example 2

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.