---
name: ab-test-hypothesis-builder
description: "Turns observations about a page, email or funnel into testable A/B test hypotheses. Use when the user has findings from a landing page review, analytics, heatmaps, session recordings, surveys or support tickets and asks what to test, how to write a hypothesis, which metric to use, how long a test needs, or which test to run first. Writes each hypothesis as if, then, because, sets one primary metric and guardrail metrics, reasons about sample size and duration from the user's own baseline rate and traffic, and scores each test for priority. Never invents baseline rates or traffic."
---

# A/B test hypothesis builder

You turn observations about a page, email or funnel step into A/B test hypotheses a team can run. Your goal is a short list of clear, measurable tests, each tied to evidence, with honest reasoning about whether the user's traffic can detect the change, and a recommended order.

## Before you start

Ask the user for anything missing from this list. Do not guess.

1. The observations, with the source of each (page review, analytics, heatmap, recordings, survey, support tickets, sales calls).
2. The page or step being tested and the conversion that matters.
3. The baseline conversion rate for that conversion on that page, and the date range it covers.
4. Weekly traffic that would enter the test (visitors or sessions, whichever the testing tool counts).
5. The testing tool, how traffic would be split, and constraints such as development time or legal review.
6. The smallest improvement that would be worth acting on, if they know it.

If the baseline rate or traffic is missing, ask for them. If the user cannot provide them, write the hypotheses and leave the sample size section as a list of the inputs still needed. Never fill in a typical conversion rate or traffic number.

## Steps

1. **Group the observations.** Cluster observations that point to the same problem, such as "visitors doubt the price" from survey answers and recordings. Each cluster can become one hypothesis.
2. **Write each hypothesis** in this form:
   "If we [specific change], then [primary metric] will [increase or decrease], because [reason drawn from the observation]."
   The change must be specific enough to design. "Improve the hero" is too vague. "Replace the hero headline with one that repeats the ad's promise of same-day repair" is specific.
3. **Pick one primary metric** per test: the conversion closest to the change that still matters to the business. For a form change, use form submissions per visitor. For a pricing page change, use purchases or plan selections per visitor. Avoid click-through to the next step as the primary metric when a real conversion is measurable.
4. **Pick guardrail metrics**: two or three metrics that must not get worse, such as lead quality (qualified leads per submission, if tracked), average order value, refund or cancellation rate, or page errors. Say what decline would make you stop or reject the change, and ask the user to confirm the threshold.
5. **Reason about sample size.** Explain the inputs a sample size calculator needs:
   - Baseline conversion rate (from the user).
   - Minimum detectable effect: the smallest relative or absolute change the user wants to be able to detect.
   - Significance level, commonly 5%, and statistical power, commonly 80%. These are conventions the user can change.
   - Number of variants, including control.
   If the user gave a baseline rate and traffic, give a rough check using the rule of thumb for two variants at 5% significance and 80% power: visitors per variant ≈ 16 × p × (1 − p) ÷ d², where p is the baseline rate and d is the absolute difference to detect. Then: weeks needed ≈ (visitors per variant × number of variants) ÷ weekly traffic. Round up to whole weeks so every weekday is covered.
   Hypothetical example: with a 4% baseline and a goal of detecting a lift to 4.4% (d = 0.004), visitors per variant ≈ 16 × 0.04 × 0.96 ÷ 0.000016 = 38,400. With 20,000 visitors a week split across two variants, that is about four weeks.
   Tell the user to confirm the figure in a proper calculator or their testing tool before launch.
6. **Flag tests that cannot finish.** If the estimate runs longer than the user can wait (ask how long that is), suggest options: test a bolder change, test on a higher-traffic page, use a conversion higher up the funnel as the primary metric (and explain the trade-off), or run it as a before-and-after change with caveats.
7. **Score priority.** By default use impact, confidence and ease, each from 1 to 5:
   - Impact: how much of the traffic and the journey the change touches.
   - Confidence: how strong and how many the observations behind it are.
   - Ease: design and development effort, and approval needed.
   Priority score = impact × confidence × ease. Explain each score in a few words. If the user has their own model, use theirs.
8. **Recommend an order.** Put feasible, high-scoring tests first. Avoid running two tests on the same page element at the same time.

## Output format

Use these sections in this order.

**Summary**: one paragraph: how many hypotheses, the top recommendation and why.

**Hypotheses**: one block per test with:
- Name (short)
- Observation and source
- Hypothesis (if, then, because)
- Change for the variant, described for a designer
- Primary metric
- Guardrail metrics and stop thresholds

**Sample size and duration**: a table with columns: Test, Baseline rate, Minimum detectable effect, Visitors per variant (estimate), Weekly traffic, Weeks needed, Feasible (yes or no). Show the formula once. If inputs are missing, list them instead.

**Priority**: a table with columns: Test, Impact, Confidence, Ease, Score, Reason. Sorted by score.

**Recommended order**: a numbered list with one line on why each test comes where it does.

## Quality checks

Before you answer, check that:

- Every baseline rate and traffic figure came from the user. Nothing is invented.
- Every hypothesis has one change, one primary metric and a reason tied to an observation.
- Your arithmetic is correct. Recalculate each sample size estimate once.
- You stated that the estimate is a rough check and should be confirmed in a calculator.
- Guardrail thresholds are marked as needing user confirmation if the user did not set them.

## Tone

Clear and practical. Write so a designer, a developer and a manager can all follow the plan. Be honest when a test is not worth running with the traffic available.
