As a product manager, one of your most important tasks involves launching new products. Imagine you spend months conducting market research, determining your MVP, and troubleshooting bugs. Finally it comes time to get the word out about your product to your target audience. With your product marketing team, you decide to use three promotional channels: social media, email, and TV.
After, with your launch in the rearview, your stakeholders ask you whether you experienced a significant difference in sales generated by these campaigns. They want to know if certain campaigns performed better or worse than others to determine a best practice for the future.
How would you go about doing this?
One of the best ways to tackle the request would be to use ANOVA (analysis of variance). Keep reading to learn about what ANOVA is, the different types you can run, and how to perform it.
Key Takeaways
Editor’s note — We updated this article in November 2026 to clarify ANOVA assumptions. We also explain how the campaign–region design affects the conclusions a team can draw.
ANOVA, which stands for analysis of variance, is a statistical method researchers use to compare multiple groups simultaneously to determine whether there are any statistically significant differences between them.
ANOVA’s history dates back to the early 1900s when it was primarily developed by the renowned statistician Ronald Fisher. The core principle of ANOVA lies in partitioning the total variability in the data into variability between and within groups. ANOVA compares these two sources of variability and tests the null hypothesis that assumes that all group means are equal.
One-way ANOVA can compare the means of two or more groups. It is especially useful for an overall comparison across three or more groups.
Overall, ANOVA is best suited when:
ANOVA is widely applicable where comparing outcomes across groups is essential for decision-making. Some examples include:
As a statistical method, ANOVA comes with its own set of terms that are important to understand before you attempt to implement it within your product team. These include:
ANOVA is categorized based on the number of variables participating in the experiment and the involvement of subjects in the study. The most important ones include:

As the name suggests, one-way ANOVA tests the difference in groups with one independent variable.
For example, say you want to test the effect of different diets on weight loss. You divide participants into three groups based on their diet type (e.g., diet A, diet B, and diet C) and measure weight loss in kilograms. In this case, there is only one independent variable (diet type) with multiple (three) levels, and the dependent variable is weight loss.
Two-way ANOVA examines two factors and, when included in the model, their interaction on one outcome. An interaction means that the association with one factor depends on the level of the other.
In this case, you might run a study on the effect of exercise type (cardio, strength, no exercise) and diet type (diet A, diet B, diet C) on weight loss. Here, there are two independent variables: exercise type and diet type, and the dependent variable is weight loss.
Repeated measures ANOVA is used when you perform the tests on the same participants under different conditions or at different times. This type helps to assess if there are significant differences in the dependent variables across the repeated measurements within the same subjects captured under different conditions or times.
For example, if you measure participants’ blood pressure before, during, and after a treatment. Since each participant’s blood pressure is recorded three times in different conditions from the same subject, this requires repeated measures ANOVA.
Repeated measures can be applied on one-way or two-way ANOVA where tests are done based on certain conditions over time.
If you have multiple dependent variables, you might want to use multivariate ANOVA (MANOVA). It allows you to assess if the mean vectors of multiple dependent variables differ across the levels of one or more independent variables.
For example, if you were examining the effect of different teaching methods (in-person, online, hybrid) on students’ performance across several subjects (math, science, and language). Here, you have one independent variable (teaching method) with three levels, and multiple dependent variables (scores in math, science, and language).
The chart below illustrates the different types of ANOVA and when to use each:
| ANOVA Type | Independent Variables | Dependent Variables | Repeated Measures? | When to Use |
| One-way | One | One | No | Comparing one factor with two or more groups |
| Two-way | Two | One | No | Comparing main effects and their interaction effects |
| One-way Repeated | One | One | Yes | Same subjects but different conditions or multiple time points. |
| Two-way Repeated | Two | One | Yes | Two factors repeated measurements on the same subjects |
| MANOVA | One plus | Two plus | No | Multiple outcomes (mean vectors) measured |
To help you understand how to run ANOVA, consider the following example and the steps required:
Problem — A marketing team wants to compare sales across social media, email, and TV campaigns. The nine values below form an illustrative one-way ANOVA calculation. Its interpretation depends on how those observations were collected.
The marketing team wants to know if the average sales generated by different marketing campaigns are significantly different.
The example lists three sales observations per campaign:
If each campaign ran in different regions, region could be confounded with campaign: differences might reflect the markets, budgets, or audiences. If all campaigns ran in the same three regions, the observations share a regional context. A blocked or two-factor model may be more appropriate. With only one observation per campaign–region combination, you cannot separately estimate interaction and residual error in a full two-factor model.
The calculation below treats the nine values as independent observations. It teaches the arithmetic; a campaign-effect claim requires a design that supports that interpretation.
Use a model appropriate to the design and outcome. NIST’s one-way ANOVA guide explains the variance decomposition and model assumptions.
The group means are $55,000 for social media, $50,000 for email, and $47,333.33 for TV. The grand mean is $50,777.78, calculated from all nine observations.
Between-group sum of squares is the sum of each group’s size multiplied by its squared mean difference from the grand mean. Within-group sum of squares adds each observation’s squared difference from its own group mean.
| Source | Sum of squares | df | Mean square | F | p |
|---|---|---|---|---|---|
| Between groups | 90,888,888.89 | 2 | 45,444,444.44 | 1.4927 | 0.2977 |
| Within groups (residual) | 182,666,666.67 | 6 | 30,444,444.44 | — | — |
| Total | 273,555,555.56 | 8 | — | — | — |
Divide each sum of squares by its degrees of freedom to get its mean square. Then F = 45,444,444.44 ÷ 30,444,444.44 ≈ 1.4927. The upper-tail probability of an F distribution with 2 and 6 degrees of freedom gives p ≈ 0.2977. Values in the table are rounded for display.
Enter the observations as numbers in cells A1:C4, with the three campaign names in the header row:
Social media Email TV 50000 45000 40000 55000 50000 50000 60000 55000 52000
Then enter these formulas in column E. They use all nine observations and retain full precision until you format the results for display.
| Cell | Calculation | Formula |
|---|---|---|
| E2 | Grand mean | =AVERAGE(A2:C4) |
| E3 | Between-group sum of squares | =3*((AVERAGE(A2:A4)-E2)^2+(AVERAGE(B2:B4)-E2)^2+(AVERAGE(C2:C4)-E2)^2) |
| E4 | Within-group sum of squares | =DEVSQ(A2:A4)+DEVSQ(B2:B4)+DEVSQ(C2:C4) |
| E5 | F-statistic | =(E3/2)/(E4/6) |
| E6 | Upper-tail p-value | =F.DIST.RT(E5,2,6) |
You should get F ≈ 1.4927 and p ≈ 0.2977. The group-size multiplier of 3 and degrees of freedom of 2 and 6 apply to this example. Adjust the calculations for another dataset. Google Sheets F.DIST.RT reference.
At a preselected α = .05, p ≈ .298 leads us to fail to reject equal population means under this model. The data provide insufficient evidence of a mean difference. They do not establish that the campaigns are equivalent or that a meaningful difference is absent.
Use group estimates, uncertainty intervals, and the size of a decision-relevant difference alongside the test. Resolve the region/design issue before attributing sales differences to a campaign.
This example doesn’t provide an overall significant result at α = .05. If your analysis calls for pairwise follow-ups, choose a method suited to the model and control for multiple comparisons. Tukey’s HSD is a common choice under classical equal-variance assumptions. Planned contrasts can be specified in advance.
The campaign example gives insufficient evidence of a mean difference under the illustrative one-way model. Before choosing a campaign, resolve how region, budget, audience, and timing entered the comparison.
For the next study, define the sales improvement that would justify changing spend. Use it to plan the sample size and precision you need. Where feasible, randomize campaign exposure within comparable markets and account for region in the analysis. Include independent replication so the model can estimate the effects you want to study.
Report group estimates and uncertainty alongside the p-value. Use those results, campaign costs, and the study’s limits to decide whether to change spend or collect more evidence.
It is the probability, under the null hypothesis and model assumptions, of an F-statistic at least as large as the observed value. It doesn’t give the probability that the null hypothesis is true or measure the size of a business impact. ASA guidance on p-values.
Yes. One-way ANOVA can compare two or more groups. With two independent groups and equal-variance assumptions, the F-test is equivalent to the corresponding two-sided pooled t-test, with F equal to t squared.
No. The data may be too limited to detect a difference that matters. Report estimates and uncertainty, and use an appropriate equivalence-testing design if the question is whether groups are similar enough for a practical purpose.
LogRocket identifies friction points in the user experience so you can make informed decisions about product and design changes that must happen to hit your goals.
With LogRocket, you can understand the scope of the issues affecting your product and prioritize the changes that need to be made. LogRocket simplifies workflows by allowing Engineering, Product, UX, and Design teams to work from the same data as you, eliminating any confusion about what needs to be done.
Get your teams on the same page — try LogRocket today.

Learn to distinguish productive AI interactions from user frustration, diagnose production failures, and build more effective evaluations.

Build a discount pricing strategy with break-even calculations, contribution examples, genuine reference prices, and practical ways to evaluate subscription offers.

Learn how to prevent AI workslop with a 60-minute workshop to help product teams set quality standards, improve handoffs, and reduce rework.

LogRocket is now available in ChatGPT and Codex as an OpenAI plugin. Learn how to use it to answer product questions.