Topic contents

Lesson 5

What is a p-value?

Use tail areas under the normal curve to understand one of the most common statistical results in data analysis software

If the population mean really is 175 cm, how extreme is the sample result?

Continuing the male students' height example · Two-sided z-test

Assume H₀:μ = 175 cm,H₁:μ ≠ 175 cm; σ = 6 cm and n = 100 are known. Drag the sample mean and observe the corresponding Z and hatched tail areas.

Definition of a p-value: The probability, assuming the null hypothesis H₀ is true, of obtaining a test statistic as extreme as or more extreme than the current sample result is called the p-value.
In the two-sided test below, the sum of the hatched areas in both tails of the normal curve is the p-value. Move the sample mean slider and observe how the area changes.

This sample’s Z = −3.33

−4−2024PP

Tail area = p-value 0.0009

Tail areas for the p-value of a two-sided test

Sum of the hatched areas in both tails = two-sided p-value. The farther from 0, the smaller the corresponding combined area in the two tails usually is.

Z = (173.0 − 175) ÷ (6 / √100) = −3.33

First locate the sample result using the Z statistic we have learned

Current Z
−3.33
Two-sided p-value
0.0009
Assuming the population mean really is 175 cm, the two-sided probability of a departure this large or larger (|Z| ≥ 3.33) is approximately 0.0009.

The p-value is neither "the probability that the null hypothesis is true" nor "the probability that this particular test is wrong."

Which area represents the p-value for each of the three test directions?

Use the three case studies from the previous lesson. Select the research question, then drag the sample mean and observe how Z, the p-value, and the hatched area under the normal curve change together.

This sample’s Z = −3.33

−4−2024PP

Tail area = p-value 0.0009

p-value regions as the sample mean changes for different test directions
Research question: Does male students' population mean height differ from 175 cm?
H0:μ=175H_0:\mu=175
H1:μ≠175H_1:\mu\ne175
Known σ = 6 cm, n = 100; reference value μ₀ = 175 cm.
Z = (173.0 − 175) ÷ (6 / √100) = −2.00 ÷ 0.60 = −3.33
p-value = 0.0009
Two-sided: P(|Z| ≥ 3.33 | H₀ boundary)
The hatched region is the sum of the areas for equally extreme or more extreme values in both tails.

The hatched area represents the probability of the current or a more extreme test statistic at the null hypothesis boundary. The research question determines the test direction in advance.

How do we decide after statistical software reports a p-value?

We have already learned about the significance level α. Here we compare the p-value from the current data with the α selected in advance.

Significance level α

This sample’s Z = 2.00Two-sided critical values ±1.960

−4−2024PP

Tail area = p-value 0.0455

Compare the p-value area with the significance level

This page uses a two-sided test throughout. The solid blue line marks the test statistic; the hatched areas in both tails correspond to the p-value.

Two-sided p-value
0.0455
Prespecified α
0.05
0.0455 ≤ 0.05: Reject H₀
Decision rule: P ≤ α: reject H₀; P > α: fail to reject H₀.

"Fail to reject" does not mean "prove H₀ true"; statistical significance also does not automatically imply great practical significance.

How should we interpret a p-value in a software report?

Below is a teaching example modeled on the SPSS "One-Sample Test" output format, showing two different p-value results. Select a row, then change the significance level α to observe how the decision changes.

One-sample test (simulated teaching data, two-sided test)
Analysis exampletdfSig. (2-tailed) · Two-sided p-value
Example A · Statistically significant2.170990.032
Example B · Not statistically significant1.086990.280
Significance level α
Example A: P = 0.032, α = 0.05
p-value ≤ α: Reject H₀. 0.032 ≤ 0.05; the result is statistically significant at this significance level.

In the table, Sig. (2-tailed) is the two-sided test p-value. These are simulated teaching data, rather than a screenshot from an actual software run. If software rounds to three decimal places and displays 0.000, this does not mean the p-value is 0. Based on the output precision, report it as p < 0.001 (or the more precise actual value).

Remember two decisions

p-value ≤ α: Reject H₀

The sample result is sufficiently rare under H₀ to meet the prespecified criterion for statistical significance.

p-value > α: Fail to reject H₀

The current sample evidence is insufficient to reject H₀; this does not prove H₀ true.

One-minute check

When p = 0.032, which statement is correct?

Choose an answer to see the explanation.

View P, α, and Z on the same plot

This page uses a two-sided test to connect three quantities: Z is the sample result's position on the standard normal curve; the p-value is the hatched area in both tails; α sets the criterion for rejecting the null hypothesis through the critical values ±zα/2.

Significance level α

This sample’s Z = 2.00Two-sided critical values ±1.960

−4−2024PP

Tail area = p-value 0.0455

Relationship between the p-value, significance level, and Z statistic

Hatching represents the p-value; the dashed gray lines mark the critical values determined by α; the solid blue line marks the test statistic Z from the sample.

Two-sided p-value
0.0455
Significance level α
0.05
Two-sided critical values ±zα/2
±1.960
|Z|
2.00
p-value = 0.0455 ≤ α = 0.05, and |Z| = 2.00 ≥ 1.960. The sample result therefore lies in the rejection region, and we can reject H₀.
Key reminder:

In a two-sided test, a p-value less than α and |Z| greater than the critical value zα/2 express the same statistical decision: reject H₀.

Conversely, if the p-value is greater than α, then |Z| does not exceed the critical value, meaning that the sample result is not yet extreme enough to reject the null hypothesis.

To connect a p-value decision to a statistic's critical boundaries, read about rejection regions and critical values and compare left-, right-, and two-sided rejection regions.

Then explore the connection between confidence intervals and hypothesis tests to see why a matching two-sided test and interval give consistent decisions under the same model.

References and further reading

These primary sources in English explain the definitions, decision rules, and limits of interpretation used in this lesson.