# Statistical significance

Also called: significance, p-value, confidence level, significance level

A result is statistically significant when a difference as large as the one observed would rarely appear by chance alone if there were no real difference. In practice it means the test's p-value is below a threshold set in advance, usually 0.05, which corresponds to 95% confidence.

## How it is calculated

Start from the assumption that both versions convert at the same rate. A test, for conversion rates usually the two-proportion z-test, measures how far apart the observed rates are in standard errors and turns that distance into a p-value: the chance of seeing a gap at least this large if the assumption were true.

Compare the p-value with alpha, the false positive rate you accepted before the test: 0.10, 0.05 or 0.01 for 90%, 95% or 99% confidence. Below alpha the result is significant. Significance says the gap is unlikely to be noise; it does not say the gap is large or worth acting on.

```
pooled rate = (conversions A + conversions B) ÷ (visitors A + visitors B)
standard error = √(pooled × (1 − pooled) × (1 ÷ visitors A + 1 ÷ visitors B))
z = (rate B − rate A) ÷ standard error
p-value (two-sided) = 2 × (1 − Φ(|z|))
```

## Example

Version A converts 200 of 5,000 visitors (4.0%) and version B 250 of 5,000 (5.0%). The pooled rate is 450 ÷ 10,000 = 4.5%, the standard error is √(0.045 × 0.955 × (1 ÷ 5,000 + 1 ÷ 5,000)) = 0.00415, and z = 0.010 ÷ 0.00415 = 2.41. The two-sided p-value is about 0.016, below 0.05, so the difference is significant at 95% confidence but not at 99%.

## Common mistakes

- Reading the p-value as the chance that B is better. A p-value of 0.016 means a gap this large would appear 1.6% of the time if A and B were the same, nothing more.
- Confusing significant with important. With a big enough sample, a lift of 0.1% is significant and still not worth shipping.
- Peeking. Checking a running test daily and stopping at the first significant reading makes false positives far more common than alpha suggests.
- Treating not significant as no difference. A test that is too small cannot detect a real but modest lift.

## How CrispStats shows it

CrispStats does not run experiments or mark changes in its reports as significant. It gives you the inputs: unique visitors per variant from a [custom event](/glossary/custom-event) that carries the variant as a property, or visitors and [goal](/glossary/goal) completions filtered by each `utm_content` value for ad variants. Put those numbers into the A/B test significance calculator for the p-value, the confidence interval and the sample size a test needs.

## Related terms

- [A/B testing](/glossary/ab-testing)
- [Conversion rate](/glossary/conversion-rate)
- [Goal](/glossary/goal)
- [Custom event](/glossary/custom-event)
- [Cohort](/glossary/cohort)
