Hypothesis testing framework

    Introduction to Hypothesis Testing Framework

    Hypothesis testing is a formal procedure for using sample data to decide between two competing claims about a population parameter. In AP Statistics, particularly for Unit 6, we focus on hypothesis tests for population proportions. The framework provides a structured approach to making these statistical decisions.

    The Four-Step Process (PANIC/PHANTOMS)

    A widely used mnemonic for remembering the steps of a hypothesis test is PANIC or PHANTOMS:

    • Parameter: Define the population parameter of interest in context. For proportions, this is typically p, the true proportion of successes for the population.
    • Assumptions/Hypotheses: State the null and alternative hypotheses, and check the conditions for inference.
    • Name the Test/Plan: Identify the appropriate inference procedure (e.g., one-sample z-test for proportions).
    • Inference/Obtain Test Statistic & p-value: Perform the calculations to obtain the test statistic and the p-value.
    • Conclusion/Make a Decision & State Conclusion: Interpret the p-value and make a decision about the null hypothesis in context.

    Step 1: Stating Hypotheses

    Every hypothesis test involves two competing statements about a population parameter:

    • The null hypothesis (H0): This is the statement of "no effect" or "no difference." It always includes an equality (e.g., p = 0.5). It represents the status quo or a previously established belief.
    • The alternative hypothesis (Ha): This is the statement the researcher is trying to find evidence for. It can be one-sided (e.g., p < 0.5 or p > 0.5) or two-sided (e.g., p ≠ 0.5).

    For example, if testing whether a new drug increases the cure rate beyond the current 30%, H0: p = 0.30 and Ha: p > 0.30.

    Step 2: Checking Conditions for Inference

    Before proceeding with a z-test for proportions, several conditions must be met:

    • Random Condition: The data must come from a well-designed random sample or randomized experiment to ensure generalizability and avoid bias.
    • 10% Condition: When sampling without replacement, the sample size n should be no more than 10% of the population size N (n ≤ 0.10N). This ensures that observations are approximately independent.
    • Large Counts Condition (Normal/Success-Failure Condition): The expected number of successes (n * p0) and failures (n * (1-p0)) must both be at least 10. Here, p0 is the hypothesized proportion from the null hypothesis. This condition ensures the sampling distribution of the sample proportion (p-hat) is approximately normal.

    Step 3: Calculating the Test Statistic and P-value

    The test statistic quantifies how far our sample result (p-hat) is from the hypothesized population parameter (p0) in terms of standard errors. For a one-sample z-test for proportions, the formula is:

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

    The p-value is the probability of observing a sample statistic as extreme as, or more extreme than, the one obtained, assuming the null hypothesis is true. A small p-value suggests that the observed data are unlikely if H0 is true, providing evidence against H0.

    Step 4: Making a Decision and Stating a Conclusion

    We compare the p-value to a pre-determined significance level (α), typically 0.05 or 0.01.

    • If p-value < α: Reject H0. There is convincing evidence to support Ha.
    • If p-value ≥ α: Fail to reject H0. There is not convincing evidence to support Ha. (Note: We never "accept" H0; we just lack sufficient evidence to reject it).

    The conclusion must always be stated in the context of the problem, referencing the alternative hypothesis.

    Practice questions

    1

    What are the two competing statements that form the basis of every hypothesis test?

    2

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

    3

    If a hypothesis test results in a p-value of 0.03 and the significance level (α) is 0.05, what decision should be made regarding the null hypothesis?

    4

    What is the primary purpose of the test statistic in a hypothesis test for proportions?

    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/hypothesis-testing-framework