Tutorials › Introduction to Statistics › Testing an Advertised Success Rate

Tests for Proportions · Tutorial 632 of 996

Testing an Advertised Success Rate

Work through an upper-tail one-proportion z test to assess whether a service’s success rate exceeds its advertised rate.

Intermediate 9 min read

What You'll Learn

  • Translate an advertised success-rate question into one-proportion null and alternative hypotheses.
  • Check random sampling, independence, and expected success and failure counts under the null.
  • Calculate the null standard error, z statistic, and upper-tail p-value.
  • Compare the p-value with a chosen significance level and write a conclusion in context.
  • Recognize why failing to reject the null does not establish that a service meets its advertised rate.

When an Advertised Rate Is Put to the Test

A service may advertise that a certain percentage of its transactions succeed. A sample of transactions can provide evidence about whether the service’s actual success rate is higher than that advertised benchmark. The direction of the claim matters: when the question is whether the rate exceeds the benchmark, unusually large sample success rates count as evidence against the null hypothesis.

This tutorial develops the upper-tail one-proportion z test for that question. The outcome must be binary, such as success or failure, and the data must come from a suitable sample or process. The test uses the advertised rate as the value specified by the null hypothesis, then measures how far the sample proportion lies above it relative to the variation expected under that null.

Definition: Let \(p\) be the population proportion of eligible service outcomes that are successes. If the advertised benchmark is \(p_0\), an upper-tail one-proportion z test evaluates \(H_0:p=p_0\) against \(H_a:p>p_0\). It summarizes the sample’s departure from \(p_0\) with a z statistic and calculates the probability, assuming \(H_0\), of a statistic at least as large as the observed one.

Set Up the Test Before Calculating

First define what counts as a success and identify the population of outcomes to which the claim applies. For example, “success” might mean that a randomly selected service request is completed within the advertised time. The population proportion \(p\) is then the proportion of all eligible requests meeting that definition. A different population or a different definition of success describes a different claim.

The hypotheses for the question “Does the true rate exceed the advertised rate?” are \(H_0:p=p_0\) and \(H_a:p>p_0\). The null uses equality to specify the reference model for the test; the alternative represents the direction of evidence being investigated. The alternative is not chosen after seeing whether the sample proportion happens to be high or low.

Let \(n\) be the number of sampled outcomes and \(x\) the number classified as successes. The sample proportion is \(\hat{p}=x/n\). Under the null model, the expected success count is \(np_0\), and the expected failure count is \(n(1-p_0)\). These expected counts, not the observed counts, are used to check the normal approximation condition for this z test.

Conditions for the one-proportion z test: The outcomes are binary; the sample is random or otherwise reasonably representative of the population named in the claim; observations are independent (when sampling without replacement, a sample no larger than 10% of the population is a common justification); and the null expected counts satisfy \(np_0\geq 10\) and \(n(1-p_0)\geq 10\). If these conditions are not met, the normal approximation used by this z test may not be reliable.

The conditions address different concerns. A random sample helps make the observed outcomes informative about the target population. Independence means that one sampled outcome does not determine or strongly affect another; repeated transactions from the same customer, for instance, may require special care. The expected-count check supports using a normal approximation to the sampling distribution under the null. A large count alone does not repair a biased sample or dependence among observations.

The Statistic, Its Null Standard Error, and the P-Value

Under \(H_0\), the success count \(X\) has a binomial model with \(n\) trials and success probability \(p_0\), provided the outcomes are independent and share the same success probability. Thus \(E(X)=np_0\) and \(\operatorname{Var}(X)=np_0(1-p_0)\). Since \(\hat{p}=X/n\), dividing the count by \(n\) gives the null mean and standard deviation of the sample proportion.

$$ E(\hat{p}\mid H_0)=p_0,\qquad SE_0=\sqrt{\frac{p_0(1-p_0)}{n}} $$

When the expected success and failure counts are sufficiently large, the sampling distribution of \(\hat{p}\) under the null is approximated by a normal distribution with mean \(p_0\) and standard error \(SE_0\). Standardizing the observed sample proportion by subtracting its null mean and dividing by its null standard error gives the z statistic:

$$ z=\frac{\hat{p}-p_0}{\sqrt{p_0(1-p_0)/n}} $$

For an upper-tail test, the p-value is the probability, assuming \(H_0\), of obtaining a z statistic at least as large as the observed value. In symbols, it is \(P(Z\geq z_{\text{obs}})\), where \(Z\) follows the standard normal distribution under the approximation. A small p-value means that a sample result this far above the benchmark would be unusual if the true rate were \(p_0\). It is not the probability that the null hypothesis is true.

Why the statistic is standardized: Under \(H_0\), the sample proportion is centered at \(p_0\) and has standard error \(SE_0\). Subtracting \(p_0\) measures the observed difference from the benchmark; dividing by \(SE_0\) expresses that difference in standard-error units. This produces a statistic that can be compared with the standard normal distribution when the stated conditions make the normal approximation reasonable.

Choose a significance level \(\alpha\) before interpreting the result. If the p-value is at most \(\alpha\), reject \(H_0\); the data provide statistically significant evidence in the direction of \(H_a\). If the p-value exceeds \(\alpha\), fail to reject \(H_0\); the sample does not provide sufficient evidence for the stated alternative at that level. Neither decision proves the true rate equals the benchmark or establishes that the service is performing well or poorly in every practical sense.

Worked Example: Testing Whether a Delivery Service Exceeds 55%

Suppose a delivery service advertises that 55% of eligible deliveries arrive within a stated time. In a hypothetical random sample of 200 deliveries, 124 arrive within that time. Test whether the true success rate exceeds 55%, using \(\alpha=0.05\).

Define the outcome and hypotheses. A success is an eligible delivery arriving within the stated time. Let \(p\) be the population proportion of eligible deliveries that succeed. The hypotheses are \(H_0:p=0.55\) and \(H_a:p>0.55\).

Check the conditions. The outcome is binary. The hypothetical data come from a random sample of deliveries, and we assume the sampled deliveries are independent; if sampling without replacement, 200 is less than 10% of the eligible delivery population. Under the null, expected successes are \(200(0.55)=110\), and expected failures are \(200(0.45)=90\). Both are at least 10, so the expected-count condition is met.

Calculate the statistic. The sample proportion is \(\hat{p}=124/200=0.620\). The null standard error and z statistic are

$$ SE_0=\sqrt{\frac{0.55(0.45)}{200}} =\sqrt{0.0012375} \approx 0.03518, \qquad z=\frac{0.620-0.550}{0.03518}\approx 1.990. $$

Find the p-value and conclude. The upper-tail probability for \(z=1.990\) is approximately \(0.0233\). Since \(0.0233<0.05\), reject \(H_0\). At the 5% significance level, this hypothetical sample provides statistically significant evidence that the delivery service’s true on-time rate exceeds 55%. The conclusion concerns evidence about the population rate; it does not mean that every delivery succeeds or that the sample proves the claim.

Putting the Result in Context

A numerical decision is only part of a useful test conclusion. State the direction of the alternative, the population or service being discussed, and the strength of evidence indicated by the decision. For a small p-value, say there is evidence that the true success rate exceeds the advertised benchmark. For a larger p-value, say the sample did not provide sufficient evidence of an increase at the chosen significance level.

The p-value measures compatibility between the data and the null model in the direction specified by the alternative. It does not measure how important the difference would be to customers, and it does not give the probability that the advertised benchmark is correct. A very small departure can produce a small p-value with a sufficiently large sample; statistical significance alone does not establish practical importance.

Worked Example: A Sample That Does Not Establish an Increase

A hypothetical repair service advertises a 55% success rate for completing repairs on the first visit. A random sample of 100 distinct repair jobs includes 59 first-visit successes. Test whether the true rate exceeds 55% at \(\alpha=0.05\).

Hypotheses. Let \(p\) be the population proportion of eligible repair jobs completed successfully on the first visit. Set \(H_0:p=0.55\) and \(H_a:p>0.55\).

Conditions. First-visit success is a binary outcome. We assume the hypothetical jobs were randomly selected and independent; 100 is less than 10% of the eligible repair-job population. The null expected counts are \(100(0.55)=55\) successes and \(100(0.45)=45\) failures, so both exceed 10.

Statistic and p-value. Here \(\hat{p}=59/100=0.590\). The null standard error is \(\sqrt{0.55(0.45)/100}\approx0.04975\), giving

$$ z=\frac{0.590-0.550}{0.04975}\approx 0.804. $$

The upper-tail p-value is approximately \(0.211\). Since \(0.211>0.05\), fail to reject \(H_0\). This sample does not provide sufficient evidence at the 5% level that the service’s true first-visit success rate exceeds 55%. It would be incorrect to conclude that the rate is exactly 55%; the result is a lack of sufficient evidence for the proposed increase.

Worked Example: Comparing the P-Value With a Stricter Significance Level

Suppose a hypothetical online service advertises that 80% of eligible requests are resolved successfully. A random sample of 150 distinct requests has 130 successes. Test whether the true rate exceeds 80% using \(\alpha=0.01\).

Hypotheses and conditions. Let \(p\) be the population proportion of eligible requests resolved successfully. Use \(H_0:p=0.80\) and \(H_a:p>0.80\). The outcome is binary; assume the sample is random and independent, with 150 requests fewer than 10% of the population. The null expected counts are \(150(0.80)=120\) successes and \(150(0.20)=30\) failures, so the normal-approximation count condition is met.

Calculate. The sample proportion is \(\hat{p}=130/150\approx0.8667\). Therefore,

$$ SE_0=\sqrt{\frac{0.80(0.20)}{150}} =\sqrt{0.0010667} \approx0.03266, \qquad z=\frac{0.8667-0.8000}{0.03266}\approx2.041. $$

The upper-tail p-value is approximately \(0.0206\). This is less than 0.05 but greater than the specified \(\alpha=0.01\). Because the decision must use the chosen significance level, fail to reject \(H_0\) at 1%. The sample is evidence in the direction of a higher rate, but it does not meet the more stringent 1% criterion for statistically significant evidence that the true rate exceeds 80%.

A Common Mistake: Reversing the Tail

A frequent error is to see that the sample proportion is above the advertised benchmark and then report a two-sided p-value, or to use a lower-tail probability. The tail is determined by the alternative hypothesis, not selected after inspecting the sample. For \(H_a:p>p_0\), large positive z statistics are the evidence of interest, so the p-value is the area to the right of \(z_{\text{obs}}\).

Another mistake is to treat a non-significant result as proof that the service meets the advertised rate. Failing to reject \(H_0\) means only that the data did not provide sufficient evidence for \(p>p_0\) at the selected significance level. It does not confirm equality, and it does not rule out a higher rate.

1
Define the claim.
Name the binary success outcome, target population, and advertised benchmark \(p_0\).
2
State the hypotheses.
For a proposed increase, use \(H_0:p=p_0\) and \(H_a:p>p_0\).
3
Check the conditions.
Assess representativeness, independence, and the null expected counts \(np_0\) and \(n(1-p_0)\).
4
Calculate and interpret.
Find \(\hat{p}\), the null standard error, z statistic, and upper-tail p-value; compare the p-value with \(\alpha\) and conclude in context.
Key takeaway: An upper-tail one-proportion z test evaluates whether the population success rate exceeds a specified benchmark. Its conclusion is trustworthy only to the extent that the outcome, sampling process, independence assumptions, and null expected-count conditions support the model.

Check Your Understanding

Use the upper-tail one-proportion test framework to answer the following.

  1. A service advertises a 70% success rate, and the question is whether its true rate is higher. Write \(H_0\) and \(H_a\) using \(p\).
  2. For \(n=80\) and \(p_0=0.70\), calculate the null expected numbers of successes and failures. Does the expected-count condition hold?
  3. In an upper-tail test, what does the p-value describe, assuming the null hypothesis is true?
  4. A test at \(\alpha=0.05\) gives a p-value of \(0.08\). State the correct decision and explain what it does not establish.
  5. Why is it incorrect to choose a two-sided test only after observing that the sample proportion is above the benchmark?