Multivariate testing

Also known as: MVT

On this page 7

Multivariate testing (MVT) is an experimentation method that changes several elements of a page, message or product at the same time and randomly assigns users to the resulting combinations, so that the effect of each element and the interactions between elements can be estimated from one experiment. A test of two headlines, two images and two button labels, for example, produces eight combinations.

In experimentation practice, multivariate testing extends A/B testing from one changed variable to several. It rests on the statistics of factorial experimental design, and its main constraint is traffic: every added element multiplies the number of combinations and divides the sample available to each one.

How multivariate testing works

A multivariate test starts by choosing factors (the elements to vary) and levels (the versions of each element). A full factorial design creates every combination of levels, and the randomization unit, usually a user or a session, is assigned to one combination for the duration of the test.

Analysis then estimates two kinds of effects. A main effect is the average impact of one factor across all levels of the others, such as the average lift of the new headline. An interaction effect appears when one factor changes the impact of another, for example when a new headline works only together with a particular image. Detecting interactions is the distinctive benefit of multivariate testing over a series of separate A/B tests.

The number of combinations grows multiplicatively, as the table below shows.

DesignCalculationCombinations
Two factors, two levels each2 x 24
Three factors, two levels each2 x 2 x 28
Three factors, three levels each3 x 3 x 327
Four factors, three levels each3 x 3 x 3 x 381
Five factors, two levels each2 x 2 x 2 x 2 x 232
How combinations grow in a full factorial design

Full factorial and fractional factorial designs

Because full factorial designs grow quickly, practitioners sometimes use fractional factorial designs, such as Taguchi or orthogonal-array designs, which test only a balanced subset of combinations. These designs still estimate main effects efficiently, but some interactions become confounded (aliased) with main effects or with each other, so they can no longer be separated.

DesignCombinations testedInteractions estimableBest suited to
Full factorialAllAll interactionsHigh traffic, interest in interactions
Fractional factorialBalanced subsetOnly some, others aliasedScreening many factors with limited traffic
Orthogonal array (Taguchi)Small structured subsetUsually assumed negligibleMain-effect screening
Sequential A/B testsOne change at a timeNoneLow traffic, independent changes
Comparison of multivariate test designs

Fractional designs rely on the assumption that higher-order interactions are small. That assumption is often reasonable for minor layout elements but risky for elements that clearly depend on each other, such as a headline and the image it describes.

Multivariate testing compared with A/B testing

A/B testing and multivariate testing share randomization, a control group and significance testing, but they answer different questions. A/B testing asks whether one version beats another; multivariate testing asks which elements drive the difference and how they combine.

AspectA/B testingA/B/n testingMultivariate testing
Variables changedOne version against controlSeveral complete versionsSeveral elements combined
Number of arms23 to about 5Product of levels, often 4 to 32
Traffic requiredLowestModerateHighest
Interaction insightNoneNoneYes, with full factorial
Typical questionIs B better than AWhich of several designs winsWhich elements matter and how they combine
A/B testing, A/B/n testing and multivariate testing

Multi-armed bandit methods are a further alternative when the goal is to maximize conversions during the test rather than to learn precise effect sizes. Bandits shift traffic toward better combinations as data arrives, which reduces regret but makes clean inference about interactions harder.

Sample size, power and analysis

Traffic planning is the decisive practical step. For a full factorial test, the sample size for each combination must be large enough to detect the minimum detectable effect at the chosen significance level, commonly 5%, and statistical power, commonly 80%. Main effects benefit from pooling, since every user contributes to the estimate of every factor, but interaction effects need considerably more data than main effects of the same size.

Analysis is typically done with regression or analysis of variance, modeling the outcome as a function of the factors and their interaction terms. Comparing all combinations pairwise instead creates a multiple comparisons problem: with 16 combinations and a 5% threshold, some pair will very likely look significant by chance unless corrections such as Bonferroni or false discovery rate control are applied.

SituationRecommended choiceReason
Low traffic, one key changeRun an A/B test insteadCombinations would be underpowered
Many candidate elements, moderate trafficFractional design for screeningIdentifies main effects cheaply
Elements likely to interactFull factorial with few levelsKeeps interactions estimable
Many pairwise comparisonsRegression model with correctionsControls false positives
Goal is revenue during the testConsider a multi-armed banditReduces exposure to weak variants
Planning decisions for a multivariate test

Pitfalls in multivariate testing

Multivariate tests fail mostly through underpowering and over-interpretation. Teams often add factors because the tool allows it, then stop the test early when one combination appears to win.

  • Too many combinations for the available traffic, so no effect reaches significance.
  • Peeking and early stopping without a sequential testing method, which inflates false positives.
  • Incoherent combinations, such as a headline that contradicts the image shown with it.
  • Sample ratio mismatch between combinations, signaling a broken assignment or tracking problem.
  • Novelty effects that make every new element look better during the first days.
  • Declaring a winning combination without checking whether its advantage is just noise among many arms.

The short version

Multivariate testing tries several changes at once to see which ones help. Imagine a bakery testing two window signs, two price labels and two cake displays. Each customer sees one random mix of the three.

Afterward, the bakery can tell which sign helped and which display helped. It can also see whether a sign worked only with a certain display. The catch is that it needs many customers, because the visitors are split across many small groups.

Where it makes a difference

An online insurance comparison site receives about 400,000 visits per month to its quote form. The team wants to test three factors with two levels each: a shorter form introduction, a trust badge near the submit button and a different button label. That gives eight combinations of roughly 50,000 visits each over a month.

The regression analysis shows that the trust badge raises completion by a meaningful margin on its own, the button label has no detectable effect, and the shorter introduction helps only when the badge is present. A sequence of A/B tests could easily have rejected the introduction change. The site ships the badge and short introduction together and drops the label change.