Introduction to Hypothesis Testing and Statistical Power
Foundations and Logic of Hypothesis Testing
Definition and Purpose of Hypothesis Testing:
- Hypothesis testing is an inferential statistical method that utilizes sample data to evaluate a specific hypothesis concerning an unknown population parameter.
- The goal is to determine whether an observed treatment effect represents a genuine difference across the population or merely reflects random sampling error.
The Four Logical Phases of Hypothesis Testing:
- State a formalized hypothesis regarding a population parameter (typically the mean, ).
- Predict the expected characteristics of a sample drawn from that population if the hypothesis is true.
- Obtain a representative sample from the population and administer the treatment.
- Compare the obtained sample data with the predicted characteristics derived from the hypothesis:
- If the sample data are consistent with the prediction, the hypothesis is judged to be reasonable.
- If a large, statistically improbable discrepancy exists between the prediction and the data, the hypothesis is rejected.
The Experimental Situation and Population Comparison:
- Known Population Before Treatment: A baseline population where parameters are known prior to the intervention (for example, a population mean of and a standard deviation of ).
- Unknown Population After Treatment: Following the intervention, the post-treatment population mean () is unknown, whereas the variability is assumed to remain unchanged ().
- Because it is impractical to administer an experimental treatment to every individual in an entire population, researchers draw an untreated sample, administer the treatment, and evaluate the resulting treated sample to infer whether the treated population differs from the original population.


- Empirical Application: Neural Modulation of Experienced Pleasantness by Marketing Actions:
- Research Context: While marketing actions such as price manipulation are pervasive, their underlying neural mechanisms in decision-making were historically undefined.
- Hypothesis Formulation: Marketing actions (such as altering the stated retail price of a product) directly modulate the neural representation of experienced pleasantness rather than simply affecting self-reported preference.
- Methodology and Experimental Protocol:
- Human participants underwent functional Magnetic Resonance Imaging (fMRI) scanning while tasting identical wines presented under deceptive price tags.
- Participants tasted five wine samples under the belief that they were five distinct products: Wine 1 labeled at and ; Wine 2 labeled at and ; and Wine 3 presented as a neutral reference at , along with an explicit neutral reference solution.
- In reality, the and samples were identical, and the and samples were identical.
- Trial timing structure:
- tasting period with visual presentation of the price cue.
- swallow instruction.
- blank screen.
- rinse out with water.
- swallow instruction.
- Jittered fixation cross prior to rating scales.
- Behavioral scales evaluated reported pleasantness (liking) and taste intensity on a 6-point scale ranging from () to ().
- Empirical Findings:
- Reported pleasantness (liking) was significantly higher for the identical wines when presented under higher price cues: Wine 1 at had significantly higher ratings than at (), and Wine 2 at had significantly higher ratings than at ().
- Taste intensity ratings did not differ significantly () between the high-price and low-price presentations of identical wines, demonstrating that price influenced hedonic appraisal without altering sensory acuity.
- Post-experimental blind tasting sessions conducted without price cues yielded no significant differences in pleasantness between the pairs (Sample A vs. B; Sample C vs. D).
- fMRI neuroimaging demonstrated that activation differences in the medial orbitofrontal cortex (mOFC)—quantified by the contrast --correlated positively with the difference in subjective liking ().


The Four-Step Hypothesis Testing Framework
Step 1: State the Hypotheses:
- Null Hypothesis ():
- States that the treatment has no effect, causing no change, no difference, and no relationship in the population.
- Formally asserts that the independent variable (treatment) does not influence the dependent variable (). For a baseline mean of , .
- Alternative Hypothesis ():
- States that the treatment does have an effect, producing a real difference, change, or relationship in the population (). For a baseline mean of , .
- Null Hypothesis ():
Step 2: Set the Criteria for a Decision:
- The distribution of sample means under the assumption that is true is partitioned into two distinct categories:
- High-probability values: Sample means that are likely to occur if the null hypothesis is true (concentrated around from ).
- Low-probability values: Extreme sample means that are very unlikely to be obtained if the null hypothesis is true (concentrated in the outer tails).
- Alpha Level (): Also known as the level of significance, it is the threshold probability chosen by the researcher to quantitatively define the boundary for an outcome to be classified as "very unlikely."
- Critical Region: The collection of extreme sample outcomes defined by the alpha level that are exceedingly improbable if is true. If sample data fall within these critical boundaries, is rejected.
- The distribution of sample means under the assumption that is true is partitioned into two distinct categories:


Step 3: Collect Data and Compute Sample Statistics:
- Methodological Sequence: Data collection and computation of sample statistics are executed exclusively after hypotheses are stated and decision criteria are established, ensuring objectivity and preventing biased criterion adjustments.
- The Test Statistic (-score):
- A standardized score indicating the exact position of the sample mean () relative to the hypothesized population mean ().
- Calculated as the difference between the observed sample mean and the hypothesized population mean, divided by the standard error of the mean:
- The standard error of the mean () is computed as:
- The -score as a Ratio:
- The numerator () represents the actual obtained difference between the sample and the hypothesized population mean.
- The denominator () represents the standard discrepancy expected between a sample mean and the population mean due to chance alone.
- An obtained indicates that the observed sample mean deviates from the null hypothesis mean by a magnitude times larger than what would be predicted by sampling error alone.
Step 4: Make a Decision:
- Decision Criterion: Compare the computed sample -score against the critical boundaries established in Step 2.
- Reject the Null Hypothesis (): If the sample statistic falls in the critical region, the discrepancy is too extreme to be attributed to random chance, and the treatment is concluded to have a significant effect.
- Fail to Reject the Null Hypothesis (): If the sample statistic does not fall in the critical region, the sample data are consistent with the null hypothesis, meaning there is insufficient evidence to conclude an effect exists.
- The Jury Trial Legal Analogy:
- The null hypothesis mirrors the legal presumption of innocence ("innocent until proven guilty").
- The prosecution gathers empirical evidence (sample data) to challenge this baseline assumption.
- If the evidence demonstrates overwhelming guilt beyond a reasonable doubt (sample statistic enters the critical region), the jury rejects the null hypothesis and renders a verdict of "guilty."
- If the evidence is insufficient, the jury fails to reject the null hypothesis and delivers a verdict of "not guilty."
- Crucially, an acquittal does not prove that the defendant is innocent; it merely reflects that the evidence was inadequate to prove guilt. Similarly, retaining the null hypothesis does not prove that the treatment has zero effect.
Decision Errors and Uncertainties in Hypothesis Testing
The Inferential Nature of Testing: Because hypothesis tests make inferences about an entire population based on a finite sample, complete certainty is impossible and errors may occur.
Type I Errors (False Positives):
- Occurs when a researcher rejects a null hypothesis that is actually true.
- The researcher concludes that a treatment has an effect when, in reality, no effect exists.
- The probability of committing a Type I error is exactly equal to the alpha level ():
- The alpha level establishes the risk of drawing an unusually extreme, unrepresentative sample purely by chance from an untreated distribution.
Type II Errors (False Negatives):
- Occurs when a researcher fails to reject a null hypothesis that is actually false.
- The researcher fails to detect a genuine treatment effect because the sample mean does not fall inside the critical region despite the treatment being active.
- The probability of committing a Type II error is denoted by beta ():
- The value of depends on factors such as sample size, effect size, and alpha level, and is not predetermined like .
Statistical Decision Matrix:
| Researcher's Decision | Actual Situation: True (No Effect) | Actual Situation: False (Effect Exists) |
|---|---|---|
| Reject | Type I Error () | Correct Decision (, Power) |
| Fail to Reject | Correct Decision () | Type II Error () |
- Critical Region Boundaries for Two-Tailed Tests Across Alpha Levels:
- ( critical area): Retains the central of sample means; critical cutoffs are located at and .
- ( critical area): Retains the central of sample means; critical cutoffs are located at and .
- ( critical area): Retains the central of sample means; critical cutoffs are located at and .

Assumptions, Statistical Significance, and Influencing Factors
Reporting Statistical Significance (APA Format):
- A result is deemed "statistically significant" if the obtained test statistic is sufficiently extreme that the probability of obtaining it under a true null hypothesis is less than the predetermined alpha level ().
- Formal reporting requires:
- A verbal description of the finding and whether a significant effect was obtained.
- The calculated value of the test statistic (such as ).
- The associated -value indicating the probability level (such as ).
Factors That Influence the Magnitude of the Test Statistic ():
- Mean Discrepancy (): Larger differences between the sample mean and the hypothesized baseline population mean increase the numerator of the -score, resulting in larger -values and higher probability of rejecting .
- Variability of Scores (): Greater population standard deviation increases the standard error of the mean (), expanding the denominator and reducing the resulting -score, making rejection of less likely.
- Sample Size (): Larger sample sizes decrease the standard error (), shrinking the denominator and increasing the resulting -score, making rejection of more likely.
Assumptions for Hypothesis Testing with -Scores:
- Random Sampling: Participants must be selected using random sampling to ensure the sample is unbiased and representative of the target population.
- Independent Observations: Each data point must be independent of every other data point; the value of one observation must not influence or correlate with the value of another.
- Constant Standard Deviation: The treatment is assumed to add or subtract a constant value to every individual score, altering the population mean () while leaving the population variability () unchanged.
- Normal Sampling Distribution: The distribution of sample means must be normally distributed to justify the use of critical values from the unit normal table. This requirement is met if the underlying population distribution is normal or if the sample size is sufficiently large ().
Directional (One-Tailed) Hypothesis Tests
Conceptual Distinction:
- Two-Tailed (Nondirectional) Tests: The default standard test where the critical region is split evenly between the two tails of the sampling distribution ( in each tail when ). Used when an effect is expected but the direction (increase or decrease) is not specified.
- One-Tailed (Directional) Tests: Used when a researcher predicts a specific direction of the treatment effect (either an increase or a decrease in ) prior to data collection.
Formulating Directional Hypotheses:
- Predicting an Increase:
- Null Hypothesis (): (Treatment does not cause an increase; scores remain equal to or lower than baseline).
- Alternative Hypothesis (): (Treatment causes an increase in scores).
- The critical region is placed entirely in the right-hand (upper) tail.
- Predicting a Decrease:
- Null Hypothesis (): (Treatment does not cause a decrease; scores remain equal to or higher than baseline).
- Alternative Hypothesis (): (Treatment causes a decrease in scores).
- The critical region is placed entirely in the left-hand (lower) tail.
- Predicting an Increase:
Critical Region for Directional Tests:
- For a directional test with predicting an increase, the entire critical rejection zone resides in the positive tail, establishing a critical boundary of .
- If the null mean is and the standard error is , the critical sample mean cutoff is:

- Methodological Comparison: One-Tailed vs. Two-Tailed Tests:
- A one-tailed test allows rejection of with a smaller treatment difference, provided that difference is in the predicted direction (since the critical cutoff is less extreme than ).
- A two-tailed test requires a larger obtained difference () to reach significance, but can detect effects in either direction.
- If a treatment produces an outcome in the opposite direction from what was predicted, a one-tailed test cannot reject , regardless of how large the difference is.
- Standard scientific practice requires two-tailed tests unless an unambiguous theoretical or practical justification exists for a directional hypothesis.
Measuring Effect Size: Cohen's d
Limitations of Hypothesis Testing:
- Hypothesis testing evaluates data relative to chance, not the substantive importance of the underlying hypothesis.
- Statistical significance is heavily influenced by sample size (): with a sufficiently large sample, even a trivial treatment difference can achieve statistical significance ().
- Consequently, statistical significance does not imply that an effect is large or practically meaningful.
Definition of Effect Size: A standardized measurement of the absolute magnitude of a treatment effect that is entirely independent of sample size ().
Cohen's Formula and Calculation:
- Cohen's measures the distance between two means standardized by the population standard deviation:
- When evaluating sample data against a known baseline population mean:
Conventional Standards for Interpreting Cohen's :
- : Small effect (subtle difference, low overlap separation).
- : Medium effect (moderate difference visible to an observer).
- : Large effect (substantial, highly pronounced difference).
Comparison Between -Score and Cohen's :
| Feature | -Score | Cohen's |
|---|---|---|
| Compares | A single value or sample mean to a sampling distribution | Two population or group means to each other |
| Purpose | Standardization to determine probability for significance decisions | Standardized quantification of treatment effect magnitude |
| Context of Use | Unit normal distributions and formal hypothesis testing | Experimental research, effect size reporting, meta-analyses |
| Interpretation | Relative position within a distribution | Absolute magnitude of difference independent of sample size |
- Empirical Demonstration: A 15-Point Treatment Effect in Two Contexts:
- Case (a) - SAT Scores:
- Pre-treatment parameters: , .
- Post-treatment mean: .
- Calculation:
- Outcome: A -point gain on the SAT produces a very small effect () because the population variability () is large, leading to broad distribution overlap.
- Case (b) - IQ Scores:
- Pre-treatment parameters: , .
- Post-treatment mean: .
- Calculation:
- Outcome: The same -point gain on an IQ test produces a large effect () because the population standard deviation () is small, shifting the distribution an entire standard deviation unit.
- Case (a) - SAT Scores:

Statistical Power and Power Analysis
Definition of Statistical Power:
- The power of a statistical test is the probability that the test will correctly reject a false null hypothesis.
- It quantifies the likelihood of detecting a real treatment effect when one truly exists in the population.
- Mathematically defined in terms of Type II error probability ():
- Power analyses are typically conducted prior to beginning an experimental study to determine the necessary sample size.
Step-by-Step Procedure for Calculating Statistical Power:
- Step 1: Sketch the sampling distributions for both the null hypothesis ( true) and the alternative hypothesis ( true assuming a specific hypothesized treatment effect size).
- Step 2: Locate the critical rejection region boundaries on the null distribution and convert them into raw sample mean values ().
- Step 3: Project those boundaries onto the alternative distribution, compute the standardized -score on the alternative distribution, and determine the proportion of the alternative distribution area that falls beyond the critical boundary into the rejection region.
Demonstration 1: Baseline Power Calculation (, 8-point effect):
- Hypothesized null parameters: , , sample size .
- Standard error of the mean:
- Critical boundaries for a two-tailed test at ():
- The alternative distribution is centered at an -point treatment increase: , with .
- Power is the proportion of the alternative distribution that falls above (plus the negligible lower tail below ).

- Demonstration 2: Effect of Sample Size on Power (, 8-point effect):
- Increasing the sample size from to reduces standard error:
- The new critical boundaries on the null distribution become:
- The alternative distribution remains centered at , but its spread is narrowed ().
- Because the critical cutoff moves from down to , a substantially larger percentage of the alternative distribution falls in the rejection region, substantially increasing power.

- Demonstration 3: Effect of Treatment Magnitude on Power (, 16-point effect):
- Retaining () and critical boundaries at and , the hypothesized treatment effect is doubled to points, placing the alternative distribution at .
- Because the center () is shifted well past the upper critical boundary (), the majority of the alternative distribution falls into the critical region, increasing power without altering sample size.

- Demonstration 4: Power Analysis for a Predicted Decrease (20-point decrease, ):
- Baseline null distribution centered at , , :
- Two-tailed critical thresholds at ():
- Assuming the treatment causes a -point decrease, the alternative distribution is centered at ().
- Power corresponds to the proportion of the alternative distribution falling below the lower critical boundary of .

- Summary of Influences on Statistical Power:
- Factors That Increase Power:
- Increasing the effect size (moves the alternative distribution further from the null mean).
- Increasing the sample size () (decreases , narrowing distributions and moving critical means closer to ).
- Switching from a two-tailed test to a one-tailed test (moves the relevant critical boundary closer to the distribution center).
- Increasing the alpha level (e.g., from to , expanding the critical region).
- Factors That Decrease Power:
- Reducing the alpha level (e.g., from to , making the decision criterion more stringent).
- Switching from a one-tailed test to a two-tailed test.
- Decreasing sample size ().
- Decreasing treatment effect size or increasing score variability ().
- Factors That Increase Power:
Review and Learning Checks
Learning Check 1:
- Question 1: A sports coach is investigating the impact of a new training method. In words, what would the null hypothesis say?
- Options: The new training program produces different results from the existing one; The new training program produces results similar to the existing one; The new training program produces better results than the existing one; There is no way to predict the results of the new training program.
- Answer: The new training program produces results similar to the existing one (the null hypothesis asserts no difference or change).
- Question 2 (True/False): If the alpha level is decreased, the size of the critical region decreases.
- Answer: True (alpha specifies the proportion of total area inside the critical region; lowering from to reduces the critical area from to ).
- Question 3 (True/False): The critical region defines unlikely values if the null hypothesis is true.
- Answer: True (the critical region consists of outcomes that have a very low probability under a true null hypothesis).
- Question 1: A sports coach is investigating the impact of a new training method. In words, what would the null hypothesis say?
Learning Check 2:
- Question 1 (True/False): When the -score is quite extreme, it shows that the null hypothesis is true.
- Answer: False (an extreme -score falls into the critical region, indicating that the sample is extremely unlikely under a true , leading to its rejection).
- Question 2 (True/False): A decision to retain the null hypothesis means that you proved that the treatment has no effect.
- Answer: False (retaining indicates only that there is insufficient evidence to conclude an effect exists; it does not prove the absence of an effect).
- Question 1 (True/False): When the -score is quite extreme, it shows that the null hypothesis is true.
Learning Check 3:
- Question 1 (True/False): A Type I error is like convicting an innocent person in a jury trial.
- Answer: True (innocence is the baseline assumption/null hypothesis; convicting an innocent person equates to rejecting a true ).
- Question 2 (True/False): A Type II error is like convicting a guilty person in a jury trial.
- Answer: False (convicting a guilty person is a correct decision; a Type II error corresponds to acquitting a guilty person, failing to reject a false ).
- Question 1 (True/False): A Type I error is like convicting an innocent person in a jury trial.
Learning Check 4:
- Question 1: A researcher uses a hypothesis test to evaluate . Which combination of factors is most likely to result in rejecting the null hypothesis?
- Options: and ; and ; and ; and .
- Answer: and (minimizes the standard error , maximizing the calculated -score).
- Question 2 (True/False): An effect that exists is more likely to be detected if is large.
- Answer: True (larger decreases , yielding larger -scores and greater power).
- Question 3 (True/False): An effect that exists is less likely to be detected if is large.
- Answer: True (larger standard deviation increases , which reduces the -statistic and test power).
- Question 1: A researcher uses a hypothesis test to evaluate . Which combination of factors is most likely to result in rejecting the null hypothesis?
Learning Check 5:
- Question: A researcher is predicting that a treatment will decrease scores. If this treatment is evaluated using a directional hypothesis test, then the critical region for the test:
- Options: would be entirely in the right-hand tail of the distribution; would be entirely in the left-hand tail of the distribution; would be divided equally between the two tails of the distribution; cannot be identified without knowing the value of the alpha level.
- Answer: would be entirely in the left-hand tail of the distribution (a predicted reduction places the rejection area in the negative, lower tail).
- Question: A researcher is predicting that a treatment will decrease scores. If this treatment is evaluated using a directional hypothesis test, then the critical region for the test:
Learning Check 6:
- Question 1 (True/False): Increasing the sample size will also increase the effect size.
- Answer: False (Cohen's is a standardized measure of mean difference relative to standard deviation, mathematically independent of sample size ).
- Question 2 (True/False): Larger differences between the sample and population mean increase effect size.
- Answer: True (the mean difference is in the numerator of Cohen's , so larger differences produce higher values of ).
- Question 1 (True/False): Increasing the sample size will also increase the effect size.
Learning Check 7:
- Question 1: The power of a statistical test is the probability of ______ null hypothesis.
- Options: rejecting a true; supporting a true; rejecting a false; supporting a false.
- Answer: rejecting a false (power is the probability of correctly identifying a genuine treatment effect).
- Question 2 (True/False): Cohen's is used because alone, a hypothesis test does not measure the size of the treatment effect.
- Answer: True (a hypothesis test only determines whether an effect is statistically distinguishable from chance; it does not measure the magnitude of that effect).
- Question 3 (True/False): Lowering the alpha level from to will increase the power of a statistical test.
- Answer: False (reducing alpha makes the rejection criteria more stringent, moving the critical boundaries further out and reducing the probability of rejecting , thereby decreasing power).
- Question 1: The power of a statistical test is the probability of ______ null hypothesis.