Skip to main content

Welcome to a Grasp lesson

Create a free account to keep studying and create your own study path.

Lesson 73

Crafting A/B Test Hypotheses

Recommended resources

Hello! Welcome to your next lesson in Business Analytics and Experimentation.

In our last session, we dove into cohort analysis and saw how it can reveal powerful insights about user behavior over time. For example, you might use it to discover that a new feature is negatively impacting user retention for a specific group of customers. This is excellent for identifying problems.

Today, we'll take the critical next step: proposing a solution. This lesson covers how to formulate a testable hypothesis for an A/B test based on a business problem. This skill is the bridge between identifying an issue in your data and creating a structured, data-driven plan to fix it. Mastering this will be invaluable for your transition into a formal Business Analyst role, as it's a cornerstone of modern product and business decision-making.

1. From Problem to Hypothesis: The A/B Testing Workflow

First, let's briefly define A/B testing. It's an experiment where you compare two versions of something—like a webpage, an app screen, or an email—to see which one performs better. You show the original version (the 'control' or 'A') to one group of users, and a new version (the 'variation' or 'B') to another group. By measuring the results, you can make decisions based on data, not just intuition.

The 3 Step Formula for Creating an A/B Testing Hypothesis
This diagram shows the logical flow from identifying a business problem to formulating a hypothesis to test a solution.

The entire A/B testing process is guided by a hypothesis. A hypothesis isn't just a random idea; it's a clear, testable statement about the relationship between a change you want to make and the outcome you expect. It's based on the research and analysis you've already done—like the cohort analysis from our last lesson. Without a solid, data-backed hypothesis, you're essentially guessing, which can be a costly mistake.


2. How to Write a Good Hypothesis

A well-formulated hypothesis turns a business problem into a scientific question. To start, let's explore a foundational article that breaks down the components of a strong hypothesis and common pitfalls to avoid.

A/B Testing Hands-On: Creating a Hypothesis to Sell More ...

The article 'A/B Testing Hands-On: Creating a Hypothesis' provides an excellent starting point. It clearly distinguishes between a hypothesis and a prediction and introduces a very common framework for writing them.

Please read the first three sections, up to and including 'The Good, the Bad, and the Ugly of Hypotheses'. Pay close attention to: The difference between a hypothesis and a prediction. The 'If/Then/Because' framework. The examples of good vs. bad hypotheses.

As the article explains, a very effective way to structure your thinking is the "If... Then... Because..." framework.

Hypothesis Formulation: If... Then... Because...
This visual breaks down the 'If/Then/Because' framework, connecting the change (independent variable), the expected result (dependent variable), and the rationale.

Let's dissect it:

  • If you make a specific change (the independent variable). This is the action you will take.
    • Example: "If we change the 'Sign Up' button color from blue to green..."
  • Then you expect a specific outcome (the dependent variable). This is the metric you predict will change.
    • Example: "...then the number of new user sign-ups will increase..."
  • Because you have a specific reason or rationale. This is the most important part, as it's your underlying assumption based on data, user research, or analysis.
    • Example: "...because our user survey indicated that the blue button doesn't stand out against our website's background."

The "Because" clause is your core hypothesis. The "If/Then" part is your prediction for a specific experiment designed to test that hypothesis. In a BA role, your stakeholders will want to know why you believe a change will work, and your "Because" is the answer.


3. A Formal Framework for Documenting Hypotheses

While "If/Then/Because" is great for thinking and communicating, in a formal setting, you'll often need a more detailed structure to document your testing plan. This ensures all stakeholders are aligned and that you've thought through every aspect of the experiment.

The following video introduces a five-part framework that is perfect for creating this kind of formal documentation.

A/B Testing Course 021: Set Your Hypothesis!

This video from Data36 presents a five-part structure for an A/B testing hypothesis. This framework is excellent for ensuring your test is well-researched and your goals are clearly defined.

Please watch the segments covering the five-part hypothesis framework (00:39 - 02:22) and the practical e-commerce example that follows (02:22 - 03:54). Notice how this structure forces you to explicitly state the research that supports your idea.

This more rigorous structure—including the research, the specific change, the expected result, and even the required sample size—is exactly the kind of thoroughness expected from a BA in a data-driven company. It forces you to prove you've done your homework before committing development resources to an experiment.


4. The Statistical Hypothesis: Null vs. Alternative

When you get closer to data science teams or in technical interviews, you'll hear hypotheses discussed in statistical terms: the Null Hypothesis () and the Alternative Hypothesis ().

  • Null Hypothesis (): This is the default assumption that there is no difference between the control and the variation. It states that your proposed change will have no effect on the outcome. For example: "Changing the button color has no effect on the sign-up rate."
  • Alternative Hypothesis (): This is what you are trying to prove. It states that your change will have an effect on the outcome. For example: "Changing the button color will increase the sign-up rate."

The goal of A/B testing is to collect enough evidence to confidently reject the null hypothesis in favor of the alternative.

The following short clips from a Google Data Scientist clearly explain this concept in the context of an interview.

A/B Testing in Data Science Interviews by a Google Data Scientist | DataInterview

To prepare you for job interviews, let's quickly cover the statistical definitions of a hypothesis. This video from DataInterview explains the concept concisely.

Watch from 01:23 to 01:42 to understand the definition of the null and alternative hypothesis. Then, watch the practical example from 08:04 to 08:37. This terminology is standard in the industry.

Understanding this terminology shows a deeper level of analytical maturity and is essential when communicating with data analysts and data scientists.


5. Putting It All Together

Let's apply what you've learned. Imagine you are a Business Analyst at an AdTech company.

Test your understanding!

Scenario: An AdTech platform provides a dashboard for advertisers. Your analysis shows that advertisers who use the "Automated Bidding" feature have a 20% higher 3-month retention rate. However, user analytics reveal that only 15% of new advertisers ever enable this feature, which is currently located within an 'Advanced Settings' menu.

Task: Based on this business problem, formulate a testable hypothesis using the "If... Then... Because..." framework. Then, state the corresponding Null Hypothesis ().

Show answer

Here is one possible answer. Your version might be slightly different, which is fine as long as the logic is sound.

  • Hypothesis ("If... Then... Because..."): If we add a call-to-action prompt on the main dashboard to set up "Automated Bidding," then the adoption rate of this feature among new advertisers will increase, because the data suggests the feature is valuable but its current low visibility in an advanced menu is the primary barrier to adoption.

  • Null Hypothesis (): Adding a call-to-action prompt on the main dashboard will have no statistically significant effect on the adoption rate of the "Automated Bidding" feature.


Conclusion

Today you've learned how to translate a business problem into a structured, testable hypothesis—a crucial skill for any Business Analyst. This process ensures that your proposed solutions are not just guesses, but are grounded in data and designed to be measured.

Key Takeaways:

  • A hypothesis is a data-backed, testable statement that guides an A/B test.
  • The "If... Then... Because..." framework is a simple, powerful tool for structuring your hypothesis, ensuring you've identified the change, the expected outcome, and the reason why.
  • For formal documentation, a more detailed framework (including research and sample size) adds necessary rigor.
  • The Null Hypothesis () assumes no effect, while the Alternative Hypothesis () assumes your change will have an effect. Your goal is to gather enough evidence to reject the null.

Preview of the Next Lesson:

We've formulated a hypothesis, but how do we measure success? Just saying "it will increase" isn't enough. In our next lesson, we will focus on how to define primary and secondary metrics for evaluating an A/B test. This will enable you to quantify the impact of your changes and understand their effects on the broader user experience.