01 / 20

CIs & p-Values
for Experiments

Learn to compute and interpret confidence intervals and p-values: the two pillars of statistical inference in business experiments.

Business Analytics

What Is a Confidence Interval?

A confidence interval (CI) is a range of plausible values for an unknown population parameter, computed from sample data. Instead of a single point estimate, a CI tells you: "We are X% confident the true value lies within this range."

Point Estimate
A single "best guess" value, like the sample mean \(\bar{x}\).
Confidence Interval
A range: \(\bar{x} \pm \text{margin of error}\), capturing uncertainty.

What Is a p-Value?

A p-value measures the probability of observing data as extreme as (or more extreme than) your sample result, assuming the null hypothesis is true. A small p-value suggests the observed effect is unlikely due to chance alone.

Null distribution Assuming H₀ is true p-value Observed Tail area = p-value Null distribution

Why Experiments Need Both

In business experiments (A/B tests, pricing trials, marketing campaigns), a p-value tells you whether an effect exists, while a confidence interval tells you how large that effect might be. Both pieces are essential for good decisions.

p-Value Alone
Tells you the effect is "real" but not whether it is big enough to matter for business.
CI Alone
Shows the range of plausible effect sizes but does not give a direct yes/no decision.
Both Together
Confirm significance and that the effect is practically meaningful.

The Confidence Interval Formula

For a population mean with known or large-sample standard deviation, the 95% confidence interval is:

\(\bar{x}\)
Sample mean: your point estimate
\(z^*\)
Critical value (1.96 for 95%)
\(s\)
Sample standard deviation
\(\sqrt{n}\)
Square root of sample size

Computing a p-Value via z-Test

To test whether a sample mean differs from a hypothesized value \(\mu_0\), compute the test statistic:

1
State hypotheses: \(H_0\!: \mu = \mu_0\) vs. \(H_a\!: \mu \neq \mu_0\)
2
Compute z: plug in \(\bar{x}\), \(\mu_0\), \(s\), and \(n\)
3
Find the p-value: use a z-table or calculator for the tail area(s)
4
Decide: if \(p < \alpha\), reject \(H_0\)

CI vs. p-Value: Key Distinction

Confidence Interval p-Value
Question answered "How big could the effect be?" "Is the effect real?"
Output A range of values A single probability
Decision rule Does the interval exclude 0? Is \(p < \alpha\)?
Practical use Estimate magnitude of lift Signal vs. noise verdict
Connection A 95% CI excludes \(\mu_0\) if and only if \(p < 0.05\)

How to Apply in an Experiment

1
Collect data: record the sample mean \(\bar{x}\), standard deviation \(s\), and sample size \(n\) for each group.
2
Compute the SE: calculate \(\text{SE} = \frac{s}{\sqrt{n}}\).
3
Build the CI: \(\bar{x} \pm z^* \cdot \text{SE}\). For 95% confidence, \(z^* = 1.96\).
4
Compute z and p: \(z = \frac{\bar{x} - \mu_0}{\text{SE}}\), then look up the two-tailed p-value.
5
Interpret together: if \(p < 0.05\) and the CI shows a meaningful effect size, act on the result.

Example 1: Building a CI

A company tests a new checkout flow on \(n = 100\) users. The sample mean revenue per user is \(\bar{x} = \$5.20\) with \(s = \$3.00\). Build a 95% CI.

1
Standard error: \(\text{SE} = \frac{3.00}{\sqrt{100}} = \frac{3.00}{10} = 0.30\)
2
Margin of error: \(1.96 \times 0.30 = 0.588\)
3
CI: \(5.20 \pm 0.588 = [4.61,\; 5.79]\)

Visualizing the Confidence Interval

$3.50 $4.00 $4.50 $5.00 $5.50 $6.00 $4.61 $5.79 $5.20 Point estimate 95% CI

Example 2: Computing a p-Value

A marketing team wants to know if their new ad changes the click rate from the historical mean of \(\mu_0 = 2.0\%\). In a sample of \(n = 64\) days, they observe \(\bar{x} = 2.5\%\) with \(s = 1.6\%\). Test at \(\alpha = 0.05\).

1
SE: \(\frac{1.6}{\sqrt{64}} = \frac{1.6}{8} = 0.20\)
2
Test statistic: \(z = \frac{2.5 - 2.0}{0.20} = 2.50\)
3
p-value (two-tailed): \(2 \times P(Z \gt 2.50) = 2 \times 0.0062 = 0.0124\)
4
Decision: \(0.0124 \lt 0.05\), so reject \(H_0\)

Example 2: CI Confirms the p-Value

Let's build the 95% CI for the same data to see if it agrees with our p-value conclusion.

1
Margin of error: \(1.96 \times 0.20 = 0.392\)
2
CI: \(2.5 \pm 0.392 = [2.108,\; 2.892]\)
3
Check: The null value \(\mu_0 = 2.0\) is not inside the interval \([2.108, 2.892]\)

Example 3: Two-Group Experiment

An A/B test compares Control vs. Treatment on average order value. Is the treatment lift statistically significant?

Control Treatment
\(n\)200200
\(\bar{x}\)\$48.00\$52.00
\(s\)\$20\$22
1
Difference: \(\bar{x}_T - \bar{x}_C = 52 - 48 = 4.00\)
2
SE of difference: \(\sqrt{\frac{20^2}{200} + \frac{22^2}{200}} = \sqrt{2.0 + 2.42} = \sqrt{4.42} \approx 2.10\)
3
z-score: \(\frac{4.00}{2.10} \approx 1.90\), p-value \(\approx 0.057\)

Common Mistakes

✕ "p = probability H₀ is true"
The p-value is not the probability the null is true. It is the probability of the data given \(H_0\).
✕ "95% CI means 95% chance"
The true parameter is fixed. "95% confidence" means 95% of such intervals (over many samples) will contain it.
✕ Ignoring effect size
A tiny p-value with a tiny CI near zero may be statistically significant but not practically useful.

Summary Cheat Sheet

Concept Formula / Rule Interpretation
Standard Error \(\frac{s}{\sqrt{n}}\) Precision of \(\bar{x}\)
95% CI \(\bar{x} \pm 1.96 \cdot \text{SE}\) Range of plausible \(\mu\)
z-Statistic \(\frac{\bar{x} - \mu_0}{\text{SE}}\) How many SEs from \(\mu_0\)
p-Value Tail area from z-table Prob of data if \(H_0\) true
Decision \(p < \alpha\) or CI excludes \(\mu_0\) Reject \(H_0\)

Question 1 of 5

A sample of \(n = 49\) has \(\bar{x} = 80\) and \(s = 14\). What is the standard error?

Question 2 of 5

A 95% confidence interval for a mean is \([12.4,\; 17.6]\). What is the point estimate \(\bar{x}\)?

Question 3 of 5

A hypothesis test yields \(p = 0.03\). At a significance level of \(\alpha = 0.05\), what is the correct conclusion?

Question 4 of 5

A 95% CI for the difference in conversion rates is \([-0.5\%, 3.1\%]\). What does this tell us?

Question 5 of 5

Which statement about p-values is correct?