Tutorials › Introduction to Statistics › Testing a Minimum Compliance Rate

Tests for Proportions · Tutorial 633 of 996

Testing a Minimum Compliance Rate

Work through a lower-tail one-proportion z test to assess whether a product’s compliance rate falls below a required minimum.

Intermediate 10 min read

What You'll Learn

  • Define the population compliance proportion and state the lower-tail hypotheses.
  • Check independence and the expected-success and expected-failure conditions.
  • Calculate the standard error using the minimum rate specified by the null hypothesis.
  • Find and interpret the lower-tail p-value from the z statistic.
  • Draw a conclusion in context without treating a nonsignificant result as proof of compliance.

Why Test a Minimum Compliance Rate?

A minimum compliance rate sets a standard that a product, service, or process is expected to meet. For example, a regulator might require at least 90% of items to satisfy a specified safety criterion. A sample with fewer than 90% compliant items raises a concern, but sample proportions vary even when the population meets the requirement. A hypothesis test helps assess whether the observed shortfall is unusually large under a population rate at the minimum standard.

The direction of the question matters. The concern is that the true compliance rate is below the minimum, so the alternative hypothesis is lower-tailed. The test uses the sampling variability expected if the population rate were at the minimum, not the observed sample rate.

Definition: Let \(p\) be the population proportion of items that meet a clearly defined compliance criterion, and let \(p_0\) be the required minimum rate. The lower-tail one-proportion z test evaluates whether the data provide evidence that \(p<p_0\). Its hypotheses are \(H_0:p=p_0\) and \(H_a:p<p_0\). In the practical compliance question, the null represents \(p\ge p_0\); the test calculates its reference distribution at the boundary \(p=p_0\).

The boundary value is used because it is the null value most favorable to seeing a low sample proportion: if the true rate were higher than \(p_0\), a low observed rate would generally be less likely. Thus, evidence against the boundary null is evidence against the broader claim that the population meets or exceeds the minimum.

Model, Conditions, and Test Statistic

Suppose a sample contains \(n\) items, of which \(x\) meet the compliance criterion. The sample compliance proportion is \(\hat{p}=x/n\). To use the one-proportion z test, the observations must be binary (compliant or not compliant), and the sampling process must support treating them as independent observations from the population of interest. A random sample is one common way to support this; for sampling without replacement from a finite population, the sample should also be a small fraction of that population, commonly no more than 10%.

The normal approximation for this test is checked using the expected numbers of compliant and noncompliant items under the boundary null. Both must be sufficiently large; the common rule used here is at least 10 in each category. These are null expected counts, calculated with \(p_0\), not with \(\hat{p}\).

Test statistic: When the independence and null expected-count conditions are met, the one-proportion z statistic is
$$ z=\frac{\hat{p}-p_0}{\sqrt{\frac{p_0(1-p_0)}{n}}} $$

The denominator is the null standard error, \(SE_0=\sqrt{p_0(1-p_0)/n}\). Under the boundary null, the p-value is the probability of obtaining a sample proportion at least as low as the one observed, approximated by the lower tail of the standard normal distribution: \(P(Z\le z_{\text{obs}})\), where \(Z\sim N(0,1)\). A small p-value indicates that the observed shortfall would be unusual if the population compliance rate were at the required minimum.

Why the Null Standard Error Uses the Minimum

The standard error describes the sampling variation predicted by a particular model. In this test, the reference model is the boundary null model, in which each sampled item is compliant with probability \(p_0\). If \(X_i\) is 1 when item \(i\) is compliant and 0 otherwise, then under this model \(E(X_i)=p_0\) and \(\operatorname{Var}(X_i)=p_0(1-p_0)\). For independent observations, the sample proportion is the average of the \(n\) indicators, so its variance is the individual variance divided by \(n\):

$$ \operatorname{Var}(\hat{p}) =\operatorname{Var}\left(\frac{X_1+\cdots+X_n}{n}\right) =\frac{p_0(1-p_0)}{n} $$

Taking the square root gives \(SE_0=\sqrt{p_0(1-p_0)/n}\). This explains why substituting \(\hat{p}\) into the standard error would not match the test’s null model: the test asks how unusual the observed result is under the required-minimum rate.

Carrying Out the Test

1
Define the outcome and rate.
State what counts as compliant, identify the population proportion \(p\), and record the required minimum \(p_0\).
2
State the hypotheses and check conditions.
Use \(H_0:p=p_0\) and \(H_a:p<p_0\). Check the sampling and independence conditions and verify \(np_0\ge10\) and \(n(1-p_0)\ge10\).
3
Calculate the statistic and lower-tail p-value.
Find \(\hat{p}=x/n\), calculate the null standard error and z statistic, then find \(P(Z\le z_{\text{obs}})\).
4
Make a contextual decision.
Compare the p-value with the chosen significance level \(\alpha\), then state whether the evidence supports a below-minimum rate. Do not interpret failure to reject as proof that the rate meets the minimum.

Worked Example: Testing a 90% Minimum

Suppose a quality team hypothetically takes a random sample of 200 independently selected units from a production process. A unit is compliant if it passes a specified inspection. Of the 200 units, 176 pass. Test whether the population compliance rate is below the required minimum of 90%, using \(\alpha=0.05\).

Define and state hypotheses. Let \(p\) be the proportion of all units from this process that pass the inspection. Then \(p_0=0.90\), \(H_0:p=0.90\), and \(H_a:p<0.90\).

Check conditions. The units are described as a random, independent sample, and passing or failing is a binary outcome. Under the null, the expected numbers are \(np_0=200(0.90)=180\) passes and \(n(1-p_0)=200(0.10)=20\) failures. Both are at least 10, so the normal approximation condition is met.

Calculate the sample proportion, standard error, and statistic.

$$ \hat{p}=\frac{176}{200}=0.8800,\qquad SE_0=\sqrt{\frac{0.90(0.10)}{200}}=\sqrt{0.00045}=0.02121 $$
$$ z=\frac{0.8800-0.90}{0.02121} =\frac{-0.0200}{0.02121} \approx -0.9428 $$

Find the p-value and conclude. The lower-tail p-value is \(P(Z\le-0.9428)\approx0.1730\). Since \(0.1730>0.05\), do not reject \(H_0\). The sample does not provide sufficient evidence at the 5% significance level that the process’s population compliance rate is below 90%. This does not establish that the rate is at least 90%; the observed shortfall could reflect sampling variation, and the test has not ruled out a below-minimum rate.

Worked Example: A Result That Meets the 5% Evidence Threshold

In a second hypothetical inspection, a random sample of 300 independently selected units is evaluated using the same binary compliance criterion. There are 278 compliant units. The required minimum is 95%. Test \(H_0:p=0.95\) against \(H_a:p<0.95\) at \(\alpha=0.05\).

The sample proportion is \(\hat{p}=278/300=0.9267\). Under the null, the expected counts are \(300(0.95)=285\) compliant units and \(300(0.05)=15\) noncompliant units. Both counts meet the minimum of 10. The hypothetical sample is stated to be random and independent, so the sampling conditions are also taken to be satisfied.

Calculate the standard error using the null rate:

$$ SE_0=\sqrt{\frac{0.95(0.05)}{300}} =\sqrt{0.00015833} \approx0.01258 $$

The test statistic is

$$ z=\frac{0.9267-0.95}{0.01258} \approx -1.854 $$

The lower-tail p-value is \(P(Z\le-1.854)\approx0.0319\). Because \(0.0319<0.05\), reject \(H_0\) at the 5% level. Under the stated sampling model, the data provide evidence that the population compliance rate is below the required 95%. This conclusion concerns the population rate; it does not say that every unit fails or that the sample proportion is the exact population rate.

Worked Example: A P-Value Just Above 0.05

A third hypothetical process has an 80% minimum compliance requirement. A random sample of 150 independent items contains 112 compliant items. Use a 5% significance level to assess whether the population rate is below 80%.

Let \(p\) be the population compliance proportion. The hypotheses are \(H_0:p=0.80\) and \(H_a:p<0.80\). The sample proportion is \(\hat{p}=112/150=0.7467\). Under \(H_0\), the expected compliant and noncompliant counts are \(150(0.80)=120\) and \(150(0.20)=30\), respectively. Both exceed 10; the stated random and independent sampling also supports using the test.

$$ SE_0=\sqrt{\frac{0.80(0.20)}{150}} =\sqrt{0.0010667} \approx0.03266 $$
$$ z=\frac{0.7467-0.80}{0.03266} \approx -1.633 $$

The lower-tail p-value is approximately \(P(Z\le-1.633)=0.0512\). Since \(0.0512>0.05\), do not reject \(H_0\) at the 5% level. Although the sample proportion is below 80%, it is not quite far enough below the minimum, relative to the null standard error, to meet this decision threshold. The result is not proof that the population rate is at least 80%.

Reading the Result Carefully

A p-value is calculated assuming the boundary null rate and the test’s sampling model. For example, a p-value of 0.0319 means that, if the population compliance rate were 95% and the model assumptions held, the probability of getting a sample proportion as low as or lower than the observed one is about 3.19%, using the normal approximation. It is not the probability that the null hypothesis is true, nor the probability that the product is compliant.

The significance level \(\alpha\) is the threshold chosen for the decision before interpreting the test. It controls how small the p-value must be to reject the null; it does not change the observed data, z statistic, or p-value. As the 80% example illustrates, a p-value just above 0.05 leads to the same formal decision as a much larger p-value at that threshold, but it should still be reported accurately rather than rounded to force a different decision.

Common Mistakes

  • Using the wrong tail. A minimum-compliance concern asks whether \(p\) is lower than \(p_0\), so the alternative is \(H_a:p<p_0\) and the p-value is a lower-tail probability. A high sample proportion does not support this particular alternative.
  • Using \(\hat{p}\) in the null standard error. That substitutes the observed rate for the null model. For this test, use \(SE_0=\sqrt{p_0(1-p_0)/n}\).
  • Checking expected counts with the observed rate. The normal-approximation condition is checked under the null, so use \(np_0\) and \(n(1-p_0)\).
  • Calling a nonsignificant result proof of compliance. Not rejecting \(H_0\) means the sample did not provide sufficient evidence for the lower-tail alternative at the chosen \(\alpha\). It does not demonstrate that \(p\ge p_0\).
  • Confusing a sample shortfall with strong evidence. A sample proportion below the minimum is not automatically statistically significant. The size of the shortfall must be considered relative to its null standard error.
Key takeaway: For a lower-tail test of a required minimum, define the compliant population proportion, test \(H_0:p=p_0\) against \(H_a:p<p_0\), check the sampling and null expected-count conditions, and calculate the z statistic with the standard error based on \(p_0\). Interpret the lower-tail p-value in context and distinguish insufficient evidence of a shortfall from proof that the minimum is met.

Check Your Understanding

Use the test setup and reasoning in this tutorial to answer the following.

  1. A service standard requires at least 92% of requests to be completed correctly. Define \(p\) and write the hypotheses for testing whether the population rate falls below the standard.
  2. A test has \(n=180\) and \(p_0=0.90\). Find the null expected numbers of compliant and noncompliant observations. Do they meet the common expected-count rule?
  3. Why is the standard error for this test calculated using \(p_0\) rather than \(\hat{p}\)?
  4. A lower-tail test gives \(z=-1.40\). Should its p-value be a lower-tail or upper-tail probability? Explain what the p-value describes under the null model.
  5. A test at \(\alpha=0.05\) gives \(p\text{-value}=0.08\). State the decision and explain why it does not prove that the population meets the required minimum.