Tested tool guide
Tested browser tools
Checked August 16, 2026
What Hypothesis Test Visualizer does, with a checked example
Choose a z-test, t-test, or chi-squared test to turn an observed result into a test statistic, p-value, and graphical decision. The visualizer places the statistic on its reference distribution, shades the rejection region selected by the significance level and alternative hypothesis, and displays how power changes across alternatives. The most important interpretive trap is the p-value: it measures extremeness under the null hypothesis, not the probability that the null hypothesis is true.
Worked example
A concrete input and expected output from the current implementation.
Input
Test: one-sample z-test
Null mean: 0
Sample mean: 2
Known population standard deviation: 2
Sample size: 4
Alternative: two-sided
Significance level: 0.05
->
Expected output
z statistic = 2.00000; two-sided p-value = 0.04550; critical values = -1.95996 and 1.95996; reject the null hypothesis at alpha = 0.05. The observed statistic lies in the right rejection region.
The standard error is 2 / sqrt(4) = 1, so z = (2 - 0) / 1 = 2. The probability beyond |z| = 2 in both normal tails is approximately 0.04550, which is below 0.05.