One-sample z-test for proportions

    One-Sample z-Test for Proportions

    The one-sample z-test for proportions is a statistical hypothesis test used to determine if a population proportion (p) is significantly different from a hypothesized value (p0) based on sample data. This test is appropriate when dealing with categorical data where observations fall into one of two categories (e.g., success/failure, yes/no).

    Hypotheses

    Like all hypothesis tests, the one-sample z-test for proportions begins with setting up the null and alternative hypotheses:

    • Null Hypothesis (H0): The population proportion is equal to the hypothesized value. H0: p = p0.
    • Alternative Hypothesis (Ha): The population proportion is not equal to, greater than, or less than the hypothesized value. This can be one of three forms:
      • Two-sided: Ha: p ≠ p0
      • Right-sided: Ha: p > p0
      • Left-sided: Ha: p < p0

    Conditions for Inference

    Before conducting the z-test, several conditions must be met to ensure the validity of the results:

    • Random Condition: The data must come from a well-designed random sample or randomized experiment. This ensures the sample is representative of the population.
    • 10% Condition: When sampling without replacement, the sample size (n) should be no more than 10% of the population size (N). That is, n ≤ 0.10N. This ensures that observations are approximately independent.
    • Large Counts Condition (Normal Condition): The expected number of successes (np0) and expected number of failures (n(1 - p0)) must both be at least 10. This ensures the sampling distribution of the sample proportion (p̂) is approximately normal. For example, if a company claims 75% of its customers are satisfied, and you survey 100 customers, you'd check 100 * 0.75 = 75 ≥ 10 and 100 * 0.25 = 25 ≥ 10.

    Test Statistic

    If the conditions are met, the test statistic for a one-sample z-test for proportions is calculated as:

    z = (p̂ - p0) / sqrt(p0(1 - p0) / n)

    Where:

    • p̂ is the sample proportion (number of successes / sample size).
    • p0 is the hypothesized population proportion from the null hypothesis.
    • n is the sample size.

    Notice that the standard deviation in the denominator uses p0, not p̂, because we are assuming the null hypothesis is true when calculating the test statistic.

    P-value and Conclusion

    The calculated z-statistic is then used to find the P-value, which is the probability of observing a sample proportion as extreme as, or more extreme than, the one observed, assuming the null hypothesis is true. The P-value is determined using a standard normal distribution (Z-table or calculator).

    • If P-value < α (significance level), we reject the null hypothesis. There is convincing evidence to support the alternative hypothesis.
    • If P-value ≥ α, we fail to reject the null hypothesis. There is not convincing evidence to support the alternative hypothesis.

    For example, if a political candidate claims 50% support, and a poll of 200 people shows 45% support, a z-test would determine if this 45% is significantly different from 50% or if it's just due to sampling variation.

    Practice questions

    1

    Which condition ensures that the sampling distribution of the sample proportion is approximately normal when performing a one-sample z-test for proportions?

    2

    A company claims that 90% of its products are defect-free. A quality control manager inspects a random sample of 150 products and finds 120 are defect-free. What is the sample proportion (p̂) for this test?

    3

    When constructing the test statistic for a one-sample z-test for proportions, why is the hypothesized proportion (p₀) used in the denominator's standard error calculation instead of the sample proportion (p̂)?

    4

    What conclusion would you draw if, after performing a one-sample z-test for proportions with an alpha level of 0.05, you obtain a P-value of 0.02?

    Practice more free →

    Free AP4U account — unlimited practice, AI grader, and progress tracking.

    Canonical: https://apforu.com/ap/statistics/unit-6-inference-for-categorical-data-proportions/one-sample-z-test-for-proportions