Written in 2020 while I was Head of Data at Go1. First published in Product Coalition on Medium. Lightly edited in 2026.
From time to time, we come up with ideas and speculate about how they might play out in reality. Take a food scientist who believes a new flavour enhancer could lift consumer demand, or a pharmaceutical company that has developed a medication it believes could relieve high blood pressure. At other times, we have two or more variations of an idea and need to choose between them. Consider a chemist who needs to find out which of two new fertiliser formulations delivers the best growth for nightshade plants, compared with the current one.
Controlled experiments, which have their roots in science, are a good way to collect data to learn more about an idea and compare it with others. In a controlled experiment, we assemble two or more groups of items or subjects and expose them to almost identical conditions, except for the factor whose effect we are trying to understand. Typically, we keep a control group in which the factor of interest stays at its current level, or is absent altogether. In the remaining groups, the factor of interest is changed, and we observe how the items or subjects respond. The control group is the benchmark against which comparisons are made.
In our chemist example, the factor of interest is the fertiliser formulation, and we want to understand its effect on growth. We can create three or more groups of nightshade plants and make sure the plants, and the conditions they are kept in, are practically identical in every way (temperature, light, soil) except for the fertiliser. The plants in the first and second groups are treated with the chemist’s two new formulations, and the third group gets the current formulation. Depending on the goal of the experiment, a fourth group can be given no fertiliser at all. The chemist then observes and records how fast the plants in each group grow. If the experiment was planned and run properly, we can rely on the results to establish cause and effect: for example, the plants in group 2 grew fastest, and that can be attributed to the second formulation.
Controlled experiments also extend to the online world, in the form of A/B testing. For instance, a data scientist who believes a new data source could improve click-through for a product recommendation engine can use an A/B test to compare that idea with the status quo. Similarly, a product team that has narrowed down, through user testing, either blue or red as potentially better colours for an existing sign-up button can run an online controlled experiment to choose between the two new colours and the current one.
Much has been written about highly successful tech companies such as Google and Amazon using A/B testing to iterate on ideas quickly. Beyond the tens and hundreds of millions of dollars in revenue attributed to their online controlled experiments, this data-driven way of assessing ideas has been praised by some as an answer to taming the HiPPO, where people in authority unduly sway decisions. If it sounds too good to be true, there is often a catch, or two. Broadly, the main pitfalls are (1) poor experimental set-up, and (2) the urge to test anything and everything, because A/B testing and hypotheses sound sophisticated and businesses want to appear scientific or metric-driven.
In this article, we unpack the first point: the importance of proper experimental design in product testing. It assumes a basic understanding of A/B testing, and aims to build on it by diving into three important concepts, and recommended practices for designing online controlled experiments, with the help of an example. Planning and running an experiment is only the first half of the exercise. During the experiment, data is collected on how the items or subjects in each group respond to the factors being changed (or not). The second half is analysing that data and interpreting the results to answer the questions of interest or establish causality, which is a topic for another day.
The importance of well-thought-out experiments comes from my firm belief that no experiment is better than a poorly run one. The reason is simple. The results of a flawed experiment may lead you to the wrong decision. That on its own may not be a big issue, as you can call it a learning experience. It becomes far less defensible when you consider the opportunity cost, and the time and effort spent on the experiment, only to arrive at the same bad decision you could have reached on gut feel, or even by picking one of the ideas at random. That is a poor return on effort. If you are a product manager, or anyone with a vested interest in an idea or product who relies on A/B testing, or a data scientist responsible for the experiments, you do not want too many poorly run experiments.
Important experimental design concepts
Thinking upfront and planning experiments properly ensures that the right type of data, and enough of it, is collected to answer the questions of interest or establish causality. This process is called experimental design. It works by keeping the focus on the thing being tested (the fertiliser formulation, say) and removing whatever influence other variables might have (temperature, light). Designing an experiment requires an understanding of three core concepts.

Variables are the things we want to change, see affected, or control. There are three types to think about for every experiment.
- Independent variables (also known as input or predictor variables) are the ones we change, such as the colour of a button, the order in which search results are displayed, or the composition of a fertiliser. We also call this the treatment.
- Dependent variables (sometimes called output or response variables) are the ones we want to see change, such as users’ likelihood of clicking on a button or a search result, or the rate at which a plant grows.
- Control variables (or constant variables) are the things we are aware of but are not investigating, such as the characteristics of the users who see the button or the search results, or the temperature a plant grows in. If these are not managed or kept constant during the experiment, they can influence the dependent variables and make us believe the effects we see come from our independent variables when they do not.
Sampling strategies are the different ways of putting users into groups for testing. There are three common ones.
- Randomisation splits users into groups at random. It gives the experimenter some control over variables that cannot easily be held constant, reducing potential confounding effects by spreading whatever effects those variables have across the test groups.
- Stratification, sometimes called blocking, splits the entire population we want to study into relatively similar sub-populations, or strata, based on known traits, so that the variability within each stratum is lower than across the whole population. At Go1, common examples included splitting users by industry, activity level or the devices they use: stratum A might be all users in healthcare, stratum B all users in finance, and so on. We can then randomise within a stratum to create samples for the test groups, or across several strata to create test groups that represent each sub-population.
- Convenience sampling (also known as accidental or opportunity sampling) selects users for testing from the part of the population that is close at hand. The test groups are built from users simply because they are readily available, or because it is the easiest process. Conclusions drawn from an experiment that uses this strategy cannot be scientifically generalised to the whole population, which makes it most useful for pilot testing.
Metrics are how we capture and quantify the variables we are affecting or controlling. It is good practice to keep two types of metrics for each experiment.
- Evaluation metrics (also called success metrics) detect the changes we want to see in the dependent variables. They must target those variables specifically: if we think changing the colour of a button will affect the likelihood of clicks, the metrics need to capture exactly that.
- Guardrail metrics (also called invariant or sanity metrics) monitor for unintended side effects, or for violations of our assumptions during the experiment. They are commonly used to watch critical business indicators we do not want the treatment to harm, or to keep an eye on the control variables we are holding constant.
At the level of each subject, a metric can take one of three forms:
- Continuous metrics have one numeric value, such as clicks per user.
- Proportion metrics have one binary indicator, such as the proportion of searches with a click.
- Ratio metrics, as the name implies, have a numerator and a denominator, such as the ratio of impressions to clicks.
Good experimental design practices
The three concepts above are the basis of any experiment, and good design revolves around them. A properly designed and run experiment lets the experimenter reliably draw causal conclusions about the relationship between the independent and dependent variables. In this section, we use an example experiment to illustrate the thinking around those three concepts.
The example involves a common technique for improving search engines called query expansion. We apply it to users’ queries as they come in, typically adding more words to the original query so that more relevant results are returned. Imagine that, in an online marketplace, a buyer searches for ads using the query “bike”, while some sellers write their ads using only the word “bicycle” for the same item. In a traditional search engine that has not been optimised, the query will not match the ads that contain only “bicycle”, so they will not be returned. This makes things even worse for search terms that already return very few results, or none.
The goal of the example experiment is to show that query expansion, the treatment, reduces the number of users abandoning search sessions because of too few relevant results, or none. By extension, the number of ads clicked on, and the number users eventually transact on, should increase. The details of query expansion are covered in Search quality in practice.
With some context on the idea to be tested, let us plan the experiment. The first step is to think about the variables we want to change and those that would be affected. In our case, the independent variable is the number of relevant ads users get when their queries are expanded (or not). Several dependent variables matter, all about how our subjects, prospective buyers searching for ads, react to the change. The main ones are:
- Whether users engage with the search results or not.
- How intensely they engage, in terms of clicks on ads and transactions.
In my experience, identifying the independent and dependent variables tends to be straightforward. The challenge is usually working out which other variables need to be controlled for the conclusions to be valid. For this example, the first two that come to mind are:
- Consumer psychology. If a user intends to buy a low-cost item, like a smartphone screen protector, their engagement with the search results can be inherently lower. The opposite tends to be true for big-ticket items, such as a $2,000 electric scooter, where users invest more time in weighing up the options.
- Inventory supply and demand. Where there are pockets of demand with scarce supply, those queries tend to return smaller sets of ads anyway, so engagement with the results will be low. If there are only one to three ads, users can only click on them so many times, compared with three to five pages of ads, which will inevitably attract more clicks.
Based on the above, the variables we need to be aware of, and potentially control, include users’ search queries, the number of ads available before the experiment, and the nature of the items. This is where access to users’ past purchasing patterns, or their profiles, comes in handy.
In the second step, we block what we can and randomise what we cannot when creating test groups from the population. This is typically based on the analysis of the variables above as candidates to hold constant, together with our understanding of how the treatment works. In this example, let us also assume that query expansion mostly affects queries about outdoor and sports equipment, such as bike, bicycle, trike, scooter and skate. With that in mind, we need to control for the categories of ads or items users are likely to search for, which we do by blocking on ad category. We split users into two strata, or blocks: users whose searching and purchasing habits fall into the outdoor and sports equipment category, and users in all other categories.

From here, what we do with the control variable depends on the conclusions we want to draw. If we also want to know how users in other categories respond, we sample randomly from both blocks into the test groups, so that users more likely to look for outdoor and sports equipment, and those interested in other categories, are equally represented. If we do not need to generalise the treatment effect to the whole population, and are happy for the conclusion to hold only for users with a keen interest in outdoor and sports, we can build the test groups by sampling randomly from that block alone and ignoring the others. The same randomised block design can be applied to other variables we want to control, to reduce the impact of confounding factors or variance in the data.
Lastly, the metrics we choose to detect the effects of the treatment on the dependent variables have to be sensitive and robust. Even before that, best practice suggests that if we can monitor the treatment at work quantitatively, we should. In our case, we want indicators that the treatment is working as expected, which means the size of the search results growing. Some valid sanity metrics are:
- Number of results per search, either overall or for the queries we are expanding. This should rise.
- Percentage of searches with zero results. This should fall.
These two metrics should be sensitive enough to detect changes very quickly, without many observations. The success metrics, on the other hand, should capture any increase in engagement from more, and more relevant, results, in line with our dependent variables. They include:
- Number of clicks per search session and per user. If query expansion works as expected, this should increase.
- Number of transactions per user. This matters because we need to know whether more transactions happened as a result of buyers seeing more relevant ads in their results.
Robustness is the other characteristic to think about. Ideally, metrics should be robust to changes we are not interested in: a metric should not move much when variables other than the independent one change. For our metric of transactions per user, we have to ask what else in our search engine or experience could cause a substantial rise or fall in it. Perhaps the quality of the photos in the ads? If we suspect, or know, that buyers are less likely to transact when the images are grainy, we need to reconsider whether the metric is suitable. Otherwise, we go back to identifying the variables we might want to control, and apply blocking and sampling.