Skip to main content
AI Platform ↗
04. Inferential Reasoning & Hypothesis Testing9 min readAdvanced Lesson

Demystifying the P-Value & Statistical Power

What P(Data | H₀) means, why p = .049 vs p = .051 is not a sharp cliff, and how sample size drives standard error.

In this lesson you will learn

  • 1Define the p-value accurately as P(Data as or more extreme | H₀ is true) rather than P(H₀ is true | Data).
  • 2Explain the mathematical relationship linking Sample Size (N), Standard Error (σ / √N), Effect Size (d), and Power.
  • 3Recognise how unplanned repeated peeking at accumulating data (p-hacking) inflates false-positive discovery rates.
On this page▼
01

Interactive Power, Sample Size, and Alpha Simulator

What this section is about

This section illustrates how sample size N, effect size d, and alpha threshold α interact mathematically to determine statistical power (1 − β).

Why it matters for your study

When an examiner asks why one variable reached significance while another with a similar effect did not, understanding SE = σ / √N gives you a clear, quantitative answer.

Every parametric test statistic can be understood as a signal-to-noise ratio:

Test Statistic (t or Z) = Observed Effect Size / Standard Error = (X̄₁ − X̄₂) / (s_p × √(2 / n))

Notice where sample size n sits: in the denominator of the Standard Error. As n increases, the Standard Error shrinks, the sampling distributions narrow, and the overlap between H₀ and H₁ diminishes—boosting Statistical Power (1 − β) without changing the underlying biological effect size.

Partitioning Total Observed Variation in Clinical Trials1. True Treatment Effect (Signal)2. Biological Variation3. Random ErrorNumerator (Signal)Difference driven by interventionDenominator (Bio Noise)Genetics, age, metabolismDenominator (Assay Noise)Instrument & observer fluctuation
Figure:Increasing sample size N reduces the Standard Error in the denominator, magnifying the test statistic for any genuine treatment signal.

Statistical Power & P-Value Simulator

Explore the mathematical link between Sample Size (N), Effect Size (d), and Probability of Truth (Power)

Sample Size (n per group):40
10Total N = 80250
Effect Size (Cohen's d):0.50
Small (0.2)Medium (0.5)Large (0.8)
Significance Level (α):0.05
Statistical Power (1-β)
61%
⚠️ Underpowered (<80%)
Type II Error (β)
39%
Risk of False Negative
Standard Error (SE)
0.22
Shrinks as N increases
Expected P-Value
0.068
Non-significant
H₀: Null (d = 0)H₁: True Effect (d = 0.5)α Boundary (Z = 1.96)
Core Takeaway on Power & P-Values: With a small sample (n = 40), statistical power is only 61%. You carry a 39% risk of missing a genuine clinical benefit (False Negative / Type II error). Increasing sample size tightens the Standard Error and pulls the p-value across the alpha boundary.

Clinical Example

Two hospitals evaluate the exact same antihypertensive regimen (true effect Cohen's d = 0.50). Hospital A recruits n = 20 per arm; Hospital B recruits n = 80 per arm.

Hospital A (n=20/arm): SE = 0.316, Power = 35%, p = .12 | Hospital B (n=80/arm): SE = 0.158, Power = 88%, p = .002

Interpretation: Even though the biological effect size (d = 0.50) is identical in both hospitals, quadrupling the sample size from 20 to 80 per arm halves the standard error and raises power from 35% to 88%.

Common Pitfall

Interpreting p = .04 as meaning there is a '4% probability that the null hypothesis is true' or a '96% probability that the drug works'.

Advanced Chapter

Included with Any Analysez AI Study Package

This deep interactive chapter (Demystifying the P-Value & Statistical Power) and its clinical simulation labs are unlocked for everyone who has bought any Analysez AI study package.

Full unlock of all 10 advanced handbook modules & interactive labs
Interactive statistical models, sandbox data editors & live curve simulators
Publication-ready APA 7th Word table downloads & results templates
Full access to the Analysez AI automated 55-check data cleaning platform
Demystifying the P-Value & Statistical Power | Biostatistics Handbook | Analysez