Rana Maninder Singh
Lesson 11 of 11Business Analytics

Statistics Reference (Optional)

Lesson opener

In one line: Optional statistics reference — business-first A/B rules and a plain-language glossary when someone asks for p-values.

Why it matters: You should not stall a recommendation waiting for theory — but you must not fake statistical certainty either.

Before this lesson: Complete core path modules 0–8 first; open this only when Exercise 8 or a stakeholder needs a term.

Not on your core path. This lesson is optional reference only — not required for the core certificate path. Complete modules 0-8 and 10 first. Open this file only when you need a formula or term for an exercise (e.g. A/B tests).

When to use this page

SituationWhat to do
Summarizing sales or operational dataUse Lesson 1 (mean, median, groupbys) — enough for most work
Comparing campaign A vs BDo Exercise 8 with the business rules below
Someone asks for a p-valueRead the short glossary here, then return to the business recommendation
Deep theory (distributions, proofs)Skip unless you choose to study it later

Business-first decision rules (A/B tests)

A/B test decision
A/B test decision
  1. Calculate the lift — e.g. B conversion 9.5% vs A 8.0% → +1.5 percentage points.
  2. Check sample size — very small samples are unreliable; thousands of users per variant is better.
  3. Practical significance — would leadership act on this lift? (e.g. ≥ 0.5 pp for marketing).
  4. Statistical check (optional) — run a test in Python only to support your story, not replace judgment.
import pandas as pd
exp = pd.read_csv("data/experiments.csv")
rates = exp.groupby("variant")["conversion"].mean()
print(rates)
print("Lift (B - A):", (rates["B"] - rates["A"]) * 100, "percentage points")

Mini-glossary (plain language)

TermMeaning for business
p-valueHow surprising the difference would be if there were no real effect. Small (e.g. < 0.05) → safer to say “likely real.”
Confidence intervalRange of plausible values for a metric; narrow range = more precision
CorrelationTwo metrics move together; does not prove one causes the other
Sample / populationYour data extract = sample; all future orders = population

Reference only (formulas)

Probability & sampling (expand if needed)
  • P(A) — chance of event A (0 to 1)
  • Sample bias — data not representative → wrong conclusions
  • Larger n → more stable averages
Hypothesis test steps (expand if needed)
  1. H₀ — no difference (e.g. A and B same)
  2. H₁ — there is a difference
  3. α — often 0.05
  4. Reject H₀ if p < α — and check business impact
from scipy import stats
import pandas as pd
df = pd.read_csv("data/experiments.csv")
a = df[df["variant"] == "A"]["conversion"]
b = df[df["variant"] == "B"]["conversion"]
t, p = stats.ttest_ind(a, b, equal_var=False)
print(f"p-value: {p:.4f}")

Teacher walkthrough: decide on variant B without theatre

All figures illustrative.

Step 1 — Lift. From experiments.csv, conversion B − A in percentage points.

Step 2 — Sample size honesty. If n is tiny, say so; do not lead with p.

Step 3 — Practical bar. e.g. ≥ 0.5 pp for this channel — would we re-platform for less?

Step 4 — Optional p-value. Supports the story; does not replace Steps 1–3.

Step 5 — Prescribe. Roll out, iterate, or stop — with risk if underpowered.

Failure example: p < 0.05, tiny lift, huge cost

Symptom: Team shipped a redesign because p = 0.04. Lift was 0.1 pp; engineering cost large; metrics later noisy.

Diagnosis: Statistical significance without practical significance or cost check.

Correction: Decision table: lift, n, cost to ship, reverse risk. p-value is optional evidence.

Validation: Experiment review template requires practical bar before "ship."

Guided practice

A = 8.0%, B = 9.5%, n large. Lift? If practical bar is 0.5 pp, prescribe what?

Complete solution: Lift = +1.5 pp. Above bar → prescribe roll-out B (still monitor; cite optional p if run).

Independent practice (optional lesson)

Acceptance criteria:

Common mistakes

  1. Leading the slide with p-value and burying lift.
  2. Peeking mid-test and stopping at first green p.
  3. Claiming cause from correlation alone.
  4. Treating optional Lesson 9 as a blocker for the capstone.

Practice (optional)

Core path uses: Exercise 8 — A/B test (business decision) → — do this in week 9 of the study guide, not only here.

Checklist (only if you chose this lesson)

  • [ ] I can explain p-value in one sentence a manager would understand
  • [ ] I completed Exercise 8 using lift + practical significance
  • [ ] I know I do not need this lesson to finish the capstone
  • [ ] Acceptance criteria above are met (if you studied this page)