Search⌘ K
AI Features

Hypothesis Testing and p-Values

Use hypothesis testing and p-values to evaluate how compatible observed data are with a null hypothesis. Inspect Python outputs for Welch’s t-test on checkout times and a chi-square test of independence on email opens.

A checkout redesign reduces the observed average checkout time from 92 seconds to 84 seconds in two samples. That drop may reflect an improvement, or it may be sampling noise because samples differ even when the underlying process has not changed.

A null hypothesis (H0H_0) states the baseline claim we test. For the checkout decision, H0H_0 says the new flow produces no difference in average checkout time. An alternative hypothesis (H1H_1) states the competing claim. Here, H1H_1 says the average checkout time differs between flows. If the business question only permits a change that makes checkout faster, H1H_1 ...