//pragmatic leaders

Hypothesis Testing

Reading time
6 min
Section
Career & Communication
6 min left0%
hypothesis testing0%
6 min left
Hypothesis testing is the formal way to check if your product decisions are backed by data, not just gut feelings.
Talvinder Singh, from a Pragmatic Leaders Data Science for PMs session

Hypothesis testing is not just a statistical exercise. It is the rigorous guardrail that keeps product decisions grounded in evidence rather than opinion or hope. The trap most PMs fall into is acting on gut feelings without validating their assumptions. Hypothesis testing gives you a structured way to test those assumptions before investing heavily in a product feature or change.

This lesson will take you through the core concepts of hypothesis testing, how to formulate hypotheses that are actionable, the types of errors you must watch out for, and the tests you can use to analyze your data — all with the lens of a product manager making real decisions.

The product manager’s hypothesis journey

Imagine you observe a problem in your product. For example, new users take too long to start using core features. You form a hypothesis: "Introducing an intro video will reduce the time to first action." You launch the video and collect data on user behavior before and after the change.

This is where hypothesis testing enters formally. It uses statistics to determine the probability that your observed effect (say, reduced time to first action) is real and not due to random chance.

The process looks like this:

  • Observation: New users take too long to start using the product.
  • Hypothesis: An intro video will reduce that time.
  • Action: Implement the video.
  • Measurement: Collect and compare funnel data before and after.
  • Test: Use hypothesis testing to confirm if the difference is statistically significant.

This approach is the backbone of A/B testing and data-driven product decisions.

// scene:

Product team review meeting at a Series A startup in Bangalore

You (PM): “Our analytics show first-time users spend on average 5 minutes before their first meaningful action.”

Data Analyst: “We introduced an onboarding video last week. The average time dropped to 3.5 minutes in the new cohort.”

You (PM): “Great. Let's run a hypothesis test to check if this reduction is statistically significant or just noise.”

Engineering Lead: “What’s the null hypothesis here?”

You (PM): “The null hypothesis is that the intro video has no effect on the time to first action.”

Data Analyst: “The alternative hypothesis is that the video reduces the time.”

You (PM): “Exactly. If the test rejects the null, we can confidently roll out the video to all new users.”

// tension:

The team must avoid costly rollouts based on random fluctuations in data.

What is a hypothesis?

A hypothesis is a testable statement that you make to move forward with a product decision. It is not a vague hope or a gut feeling. It is a precise claim about the effect of an intervention that can be measured.

For example:

  • "Introducing the intro video reduces the average time to first action by at least 20%."
  • "Changing the call-to-action button text increases click-through rate by 5 percentage points."

The key word is testable — you must be able to measure the outcome and decide if the hypothesis holds.

Null and Alternative Hypotheses

Hypothesis testing always involves two competing statements:

Hypothesis TypeDescriptionSymbolImplication if Accepted
Null HypothesisAssumes no effect or no difference; the status quo.H₀No change; your intervention did nothing.
Alternative HypothesisAssumes there is an effect or difference caused by your intervention.H₁ or HₐThe intervention caused a measurable effect.

The null hypothesis is the default assumption. Your test tries to find evidence to reject it in favor of the alternative.

For example, if you test whether the intro video reduces time to first action:

  • H₀: The video does not reduce the time.
  • H₁: The video reduces the time.

Rejecting H₀ means you have statistical evidence to support that the video works.

Characteristics of a good hypothesis

A good hypothesis has these attributes:

  • Specific: It clearly states the expected effect and direction.
  • Measurable: You can collect data to validate it.
  • Testable within reasonable time: It can be evaluated with available resources and timeframe.
  • Clear and simple: Avoid jargon or ambiguity.
  • Relevant to your product: It addresses a meaningful user or business problem.

Vague statements like "Users will like the new feature" are not hypotheses. Precise statements like "User retention will improve by 10% in the next 30 days after feature launch" are.

How hypothesis testing works

The hypothesis test calculates a p-value — the probability of observing your data (or something more extreme) assuming the null hypothesis is true.

  • A low p-value (usually < 0.05) means the observed effect is unlikely due to chance, so you reject the null hypothesis.
  • A high p-value means you do not have enough evidence to reject the null.

This statistical rigor prevents you from making decisions based on random fluctuations.

Decision errors every PM must know

When testing hypotheses, you face two types of errors:

Error TypeWhat it meansRisk Example in Product Context
Type I errorFalse positive — rejecting a true null hypothesisYou conclude a feature improves conversion when it actually does not, leading to wasted engineering effort.
Type II errorFalse negative — failing to reject a false null hypothesisYou miss a feature that actually improves retention because your test was underpowered or noisy.

Understanding these errors helps you set appropriate significance levels and sample sizes.

Decision rules and test statistics

Your decision rule depends on the test statistic and the type of test:

  • Lower-tailed test: Reject H₀ if test statistic <critical value.
  • Upper-tailed test: Reject H₀ if test statistic > critical value.
  • Two-tailed test: Reject H₀ if test statistic is either significantly lower or higher than critical bounds.

For example, if you expect the intro video to reduce time, you use a lower-tailed test. If you want to test if the video changes time (up or down), you use a two-tailed test.

Types of hypothesis tests relevant to PMs

Selecting the right test depends on your data and question:

Test NamePurposeWhen to Use (Example)
T-testCompare means between two groupsComparing average time to first action before/after video
Chi-Square Test for IndependenceTest association between categorical variablesTesting if feature adoption differs by user segment
ANOVA (Analysis of Variance)Compare means across more than two groupsComparing conversion rates across multiple landing pages
Mood’s Median TestCompare medians between groups when data is not normally distributedComparing median session duration across variants
Normality testsCheck if data is normally distributed, a prerequisite for many parametric testsBefore running a t-test, validate data distribution
Welch’s T-testCompare means when variances between groups are unequalWhen variance in time to action differs between cohorts
Kruskal-Wallis H testNon-parametric alternative to ANOVA for ranked dataWhen data is ordinal or not normal, comparing multiple groups

Hypothesis testing in the Indian product context

In India, data challenges like noisy signals, smaller sample sizes, and heterogeneous user bases often complicate hypothesis testing.

For example, a fintech startup in Mumbai testing a new onboarding flow may have to account for language preferences, device types, and regional behaviors.

The actual job is to design tests that are robust to these nuances. That might mean segmenting your data, using non-parametric tests, or running longer experiments.

From hypothesis to decision: A practical example

// thread: #product-analytics — PM and data team discussing hypothesis testing results
PMWe hypothesized that the new signup video reduces time to first action by 20%.
Data AnalystThe mean time dropped from 5 minutes to 3.8 minutes. The p-value is 0.03.
PMSince p < 0.05, we reject the null hypothesis that the video has no effect.
Data AnalystCorrect. This supports rolling out the video to all new users.
PMDid we check for Type I error risk?
Data AnalystOur significance level is 5%, so there's a 5% chance this is a false positive.
PMGood. Let's monitor the rollout and run a follow-up test for retention impact.

Building a data-driven product culture with hypothesis testing

Hypothesis testing is the foundation of data-driven decision making. It shifts conversations from "I think" and "I feel" to "The data shows" and "The test confirms."

Indian companies like Razorpay and Swiggy have embraced experimentation and hypothesis testing to optimize user flows and features continuously.

The pattern is consistent: Start with a clear hypothesis, collect data, run the right test, interpret the results rigorously, and decide.

Field exercise: Formulate and test your hypothesis (20 min)

  1. Identify a product assumption you or your team have debated recently (e.g., "Changing the signup button text will increase signups").
  2. Write a clear, measurable hypothesis statement with a null and alternative hypothesis.
  3. Define your primary metric and decide what data you need to collect.
  4. Choose the appropriate hypothesis test for your data and scenario.
  5. Sketch a plan for running the test (sample size, duration, data sources).
  6. If possible, conduct a small-scale test or simulate data to run the test.

This exercise will ground your understanding in practice.

Test yourself: The feature launch dilemma

// learn the judgment

You are a PM at a Series B SaaS startup in Hyderabad. Your team launched a new dashboard feature to improve user engagement. You want to test if the feature increases average session duration. You have data from 500 users with the feature and 500 users without. The average session duration is 12 minutes with the feature and 11.5 minutes without. The p-value from your t-test is 0.07.

The call: Do you conclude the feature improves session duration? What is your next step?

Your reasoning:

// practice

You are a PM at a Series B SaaS startup in Hyderabad. Your team launched a new dashboard feature to improve user engagement. You want to test if the feature increases average session duration. You have data from 500 users with the feature and 500 users without. The average session duration is 12 minutes with the feature and 11.5 minutes without. The p-value from your t-test is 0.07.

Your task: Do you conclude the feature improves session duration? What is your next step?

your reasoning:

0 chars (min 80)

From the field: Talvinder on MVP experiments and hypothesis testing

Where to go next