A useful experimentation system turns a business question into a defined hypothesis, suitable comparison, reliable measurement and a documented decision. The aim is to learn which change is worth making, not simply to announce a winning variation.
On this page
Work through the guide.
Start at the beginning or use the key sections below. The accompanying worksheet gives you a place to record your decisions.
Record actions, responsibilities and evidence as you work.
Choose a business question that an experiment can answer
A website or marketing team may have several ideas for improvement. A service page could explain scope more clearly, an advertisement could communicate a different offer, or a form could remove an unnecessary field. An experiment should begin with a meaningful uncertainty rather than an arbitrary design variation.
Define the current problem, the proposed change and the outcome it is expected to affect. For example, an illustrative service website may want to know whether a clearer explanation of the consultation process increases genuine accepted enquiries from relevant visitors. The change should have a plausible relationship with the outcome.
Some problems do not need a controlled comparison to justify a correction. A contact form that never delivers the submission is a confirmed implementation defect. Repair and verify it rather than exposing more customers to a broken experience merely to run a test. Our landing-page conversion audit explains how to distinguish observed failures from optimisation hypotheses.
Define the hypothesis and measurement before launch
Write down the proposed intervention, comparison condition, population, randomisation unit where applicable, primary outcome, meaningful effect size and relevant safety or quality measures. Establish the planned duration, sample requirements and method for analysing the result.
For a website enquiry experiment, a primary outcome might be the proportion of eligible assigned visitors who generate a verified accepted enquiry. Guardrails could include form errors, unsuitable enquiries or significant performance deterioration. Use measures relevant to the business and customer experience rather than selecting whichever metric changes most favourably.
Estimate the sample needed for the chosen design using a reasonable baseline, the smallest effect worth detecting and appropriate statistical assumptions. Small websites may require impractically long tests for subtle changes. Do not treat an arbitrary two-week period as sufficient for every experiment. Where a controlled test is infeasible, choose a more suitable method and describe its limitations.
Microsoft Research's pre-experiment guidance emphasises designing a trustworthy experiment before analysing results. Define a suitable assignment unit, the outcome and quality checks; its sample-ratio mismatch investigation shows why missing or differently filtered observations can invalidate a superficially favourable result.
Create a fair and reliable comparison
Random assignment to a control and treatment can help estimate the effect of the tested change by making the groups comparable in expectation. The assignment unit needs to fit the intervention. A visitor-level website experiment and a geographic advertising experiment involve different conditions, potential interactions and analysis requirements.
Keep the comparison coherent. If a test changes the offer, traffic source, page design and form at once, the resulting evidence concerns that combined intervention, not the independent contribution of each element. A deliberately combined change can be legitimate, provided the question is defined accordingly.
Check whether participants can move between variants or whether changes in one group can affect another. For recurring visitors, a suitable consistent assignment may be necessary. Avoid running overlapping experiments whose interactions make the intended comparison difficult to interpret without an appropriate design.
Verify the experiment's data integrity
Before interpreting outcomes, verify that the intended variants are delivered, assignment is recorded correctly and events correspond to actual business actions. Check duplicate events, missing data, changes to consent behaviour and relevant downstream records. A successful deployment is not by itself proof that an experiment is correctly instrumented.
Microsoft's experimentation platform guidance describes sample-ratio mismatch as an important diagnostic: the observed distribution of assigned units can differ materially from the intended assignment ratio. Such a discrepancy can indicate an underlying problem that needs investigation.
Monitor relevant technical and customer guardrails. A serious defect or harmful experience can justify stopping a test under predefined safety rules. Investigate data integrity problems before treating a reported difference as meaningful. Record any interruptions or deviations from the planned design.
Interpret the result in practical and statistical terms
A measured difference can be affected by random variation. Use an analysis method appropriate to the experiment design and report the estimated effect and its uncertainty. Do not repeatedly check conventional significance results and stop immediately when a favourable result appears unless the procedure explicitly accounts for sequential monitoring.
For an illustration, a control conversion rate of 4% and a treatment rate of 5% represent an absolute difference of one percentage point and a relative difference of 25%. Without the sample sizes and appropriate uncertainty analysis, these numbers do not establish a reliable effect. Even a statistically supported difference may be too small to justify implementation costs or introduce other problems.
An inconclusive result is not proof that the variants are identical. It may mean the data cannot distinguish a useful effect from ordinary uncertainty. Consider whether further testing is justified rather than claiming either success or failure beyond the evidence.
Connect the finding to the decision and context
Review whether the estimated effect relates to the original business question. A form variation may increase submissions while reducing the proportion of useful enquiries. A change that improves one metric may increase support workload or make material conditions harder to understand. Evaluate the guardrails and actual customer outcomes alongside the primary measure.
Our customer acquisition economics guide explains how to compare acquisition costs with contribution. Use relevant economics when deciding whether a measured improvement is worth implementing. Avoid extrapolating one context-specific result into a guaranteed improvement across every website or market.
Where advertising incrementality is the question, an eligible controlled lift study may be more appropriate than comparing platform-attributed revenue before and after a campaign change. Our attribution guide explains why those evidence types differ.
Build a maintained experimentation register
Record the question, hypothesis, comparison, scope, planned analysis, responsible people, release identifiers, data quality checks, result, uncertainty and final decision. Retain the actual version of the tested implementation and relevant supporting evidence so the result can be investigated later.
Review the queue according to likely business value, unresolved uncertainty, implementation effort and feasibility. Do not continually test superficial variations while confirmed technical problems or unclear offers remain unresolved. Use findings to develop better subsequent questions.
Our website development service can help connect improvements with reliable implementation and measurement. A mature experimentation system creates a record of what the business has learned, the conditions under which that evidence applies and which decisions remain open. It should reduce guesswork, not manufacture certainty from every test.
Retain the original hypothesis even when subsequent exploration suggests a different question; label that analysis exploratory and plan a suitable follow-up.
Common questions
Frequently asked questions
What should I define before an A/B test?
Hypothesis, comparison, eligible population, primary metric, guardrails, sample requirements and analysis plan.
Do I need to test a known defect?
Usually correct and verify confirmed defects instead of deliberately retaining a broken experience.
What is sample-ratio mismatch?
A material discrepancy between intended and observed assignment proportions that requires investigation.
Can I stop when the result becomes significant?
Only use a stopping procedure appropriate to the design; unplanned repeated testing can distort conclusions.
What does an inconclusive result mean?
The available evidence does not resolve the question with sufficient confidence; it does not prove no effect.
Further reading
Sources & resources
Explore the references behind this article and continue your research.
- microsoft.comMicrosoft Research: pre-experiment trustworthiness
Planning and data-quality considerations for controlled experiments.
- microsoft.comMicrosoft Research: diagnosing sample ratio mismatch
Why mismatched assignment observations must be investigated before interpreting effects.
- microsoft.comMicrosoft Research: experimentation platform alerting
Data quality diagnostics and sample-ratio mismatch.
- support.google.comGoogle Ads: Conversion Lift
Controlled lift measurement for eligible advertising use cases.