TapCub is live — analytics, insights and live chat, free on one platform
Glossary

Orthogonal array: definition and L4 / L8 examples in experiment design

An orthogonal array is a balanced table of test runs that estimates each factor's main effect with far fewer runs than a full factorial. Notation, an L4 landing-page example, confounding with interactions and how much traffic you need.

Chen Yu Reviewed by Sophia Bennett Also called OA design Last updated Nov 29, 2026 Glossary

Quick answer

An orthogonal array is a table of experimental runs in which every pair (or set of t) factor columns contains each combination of levels equally often. It estimates each factor's main effect with a fraction of full-factorial runs, for example 7 two-level factors in 8 runs instead of 128.

Formula: Full factorial runs = levels^factors; an L8(2^7) array tests up to 7 two-level factors in 8 runs instead of 2^7 = 128

What is an orthogonal array?

An orthogonal array is a table of test runs in which every pair of factor columns (or, more generally, every set of t columns) contains each combination of levels the same number of times. Rows are runs, columns are factors, and entries are factor levels. That balance lets you estimate the main effect of each factor from far fewer runs than testing every combination.

Two notations are common. Statisticians write OA(N, k, s, t): N runs, k factors, s levels per factor, strength t. Taguchi's catalogue writes L_N(s^k), so L8(2^7) is an 8-run array for up to seven two-level factors. The NIST/SEMATECH e-Handbook describes Taguchi's designs as related to, and similar to, ordinary fractional factorial designs; an orthogonal array is the table behind a fractional factorial experiment.

Full factorial vs orthogonal array: how many runs?

A full factorial design tests every combination: runs = levels^factors. An orthogonal array keeps only a balanced subset.

Factors and levelsFull factorial runsOrthogonal arrayArray runs
3 factors × 2 levels2^3 = 8L4(2^3)4
7 factors × 2 levels2^7 = 128L8(2^7)8
4 factors × 3 levels3^4 = 81L9(3^4)9
15 factors × 2 levels2^15 = 32,768L16(2^15)16

For a website, a "run" is one page version that receives a share of traffic. Halving or eliminating most versions matters because every version needs its own share of visitors, as the multivariate testing page shows for full-factorial designs.

Worked example: an L4(2^3) landing-page test

Sample data: three two-level factors on a sign-up page. Headline (A: 1 = current, 2 = benefit-led), call-to-action colour (B: 1 = blue, 2 = green), hero image (C: 1 = product shot, 2 = customer photo). The L4 array uses four page versions, each shown to 5,000 visitors:

RunA headlineB colourC imageVisitorsSign-upsRate
11115,0002004.0%
21225,0002304.6%
32125,0002605.2%
42215,0002505.0%

Balance check: for every pair of columns (A–B, A–C, B–C), the level pairs (1,1), (1,2), (2,1) and (2,2) each appear exactly once. That is strength 2, and it is why each factor's effect can be read with the other two balanced out.

Main effects (mean rate at level 2 − mean rate at level 1):

  • Headline A: runs 3–4 average (5.2 + 5.0) ÷ 2 = 5.1%; runs 1–2 average 4.3%; effect +0.8 points.
  • Colour B: runs 2 and 4 average 4.8%; runs 1 and 3 average 4.6%; effect +0.2 points.
  • Image C: runs 2 and 3 average 4.9%; runs 1 and 4 average 4.5%; effect +0.4 points.

Each comparison pits 10,000 visitors against 10,000. With the pooled rate of 4.7%, the standard error of a difference is √(0.047 × 0.953 × 2 ÷ 10,000) = 0.30 points, giving z ≈ 2.67 for the headline (two-sided p ≈ 0.008), z ≈ 0.67 for colour (p ≈ 0.50) and z ≈ 1.34 for the image (p ≈ 0.18). Only the headline effect is distinguishable from noise.

When the shortcut breaks: interactions and confounding

The L4 array saves four runs by giving up information. Coding level 1 as −1 and level 2 as +1, column C equals −(A × B) in every row, so the image effect is confounded (aliased) with the headline × colour interaction. NIST's handbook shows the same structure for the 2^(3−1) half fraction: each main effect is confounded with a two-factor interaction, and the design only works if those interactions are small (the sparsity-of-effects assumption).

In the example, the +0.4-point "image" effect could be a real image effect, a headline × colour interaction, or a mix. Decision rules:

  1. If you expect factors to interact (for example, a headline and an image that make the same promise), do not put an interaction you care about on an aliased column; use a larger array or a full factorial.
  2. If a confounded effect looks important, run the complementary half (the four combinations not tested: −1 × −1 × +1 and so on). The two halves together form the full 2^3 design and separate C from A × B.
  3. If effects are small and you only need to rank factors, a strength-2 array is usually enough.

Sample size and power with an orthogonal array

Every visitor contributes to every main-effect comparison, which is the efficiency gain: four versions of 5,000 visitors give each factor a 10,000-vs-10,000 comparison. The statistical power to detect a main effect therefore depends on the half-sample size, not the run size.

With the numbers above, the minimum detectable effect at 80% power and a two-sided α of 0.05 is about (1.96 + 0.84) × 0.30 = 0.84 points. The headline's +0.8 sits right at that line; the colour and image effects sit well below it. If a 0.4-point effect matters, the sample size has to roughly quadruple, because the standard error shrinks with the square root of traffic.

Orthogonal array vs full factorial vs A/B test

DesignVersions for 3 two-level factorsWhat you can estimateMain risk
A/B test, one factor at a time2 per test, 3 tests in sequenceOne factor per testSlow; misses interactions completely
Full factorial (multivariate)8All main effects and interactionsTraffic spread over many versions
Orthogonal array L4(2^3)4Main effects onlyConfounding with interactions

All three are controlled experiments: random assignment is what makes the differences causal. The orthogonal array changes only which combinations are tested.

Orthogonal array testing in software QA

The same arrays are used to cut test cases. With four configuration parameters (browser, operating system, language, plan), each with three values, exhaustive testing needs 3^4 = 81 cases. An L9(3^4) array covers every pair of values across any two parameters in 9 cases. That catches defects triggered by one parameter value or a pair of values, but not by a specific three-way combination, which is the same trade-off as confounding in an experiment.

Common mistakes

  • Reading a confounded column as a pure effect. Check the alias structure before reporting.
  • Too little traffic per half. The array cuts versions, not the visitors needed per comparison.
  • Unequal traffic across runs. Balance holds only if each run gets a comparable share; reweight or rerun otherwise.
  • Counting bots in the denominator. Automated traffic dilutes every rate equally and hides small effects.

Measuring an orthogonal-array test in TapCub

TapCub does not split traffic or assign variants; the assignment of visitors to runs 1–4 happens in your experiment tool or your own code. TapCub measures the outcome of each run:

  1. Tag each visit with its run. Send the run number and factor levels as event properties (for example oa_run = 3, headline = 2) on the page view or a custom event.
  2. Count conversions per run. In All-platform analytics › Behavior › Event analysis, break the sign-up event down by oa_run, and compare with page views per run from the same breakdown, to rebuild the four-row table.
  3. Compute the main effects. In All-platform analytics › Behavior › Metrics & SQL, group by each factor property instead of by run to get the level-1 and level-2 rates directly.
  4. Keep the denominators human. Bots and AI crawlers are counted separately in Web analytics › Bots and do not enter visitor counts or conversion rates.

Sources

Was this explanation clear?

We use your answers to fix and expand this page.

Chen Yu

Technical Engineer

Focuses on tracking code, SDKs, and API integrations, with practical guidance on implementation checks and troubleshooting.

FAQ

Questions people ask

Short answers to the follow-up questions that come up most.

Still have a question?

Chat with the team behind TapCub — we usually reply within a few hours on business days.

What is an L8 orthogonal array?

L8(2^7) is an 8-run orthogonal array that can hold up to seven two-level factors. Every pair of its columns contains each level combination equally often, so it estimates seven main effects from 8 versions instead of the 128 a full factorial needs, at the cost of confounding main effects with interactions.

What is the difference between an orthogonal array and a full factorial design?

A full factorial tests every combination of levels and can estimate all interactions. An orthogonal array tests a balanced subset, so it needs far fewer runs but can only estimate main effects cleanly when interactions are small.

Is an orthogonal array the same as a Taguchi design?

Taguchi's designs are built on orthogonal arrays, and the NIST e-Handbook describes them as similar to ordinary fractional factorial designs. 'Taguchi design' usually also implies his robust-design approach with inner and outer arrays, while 'orthogonal array' names only the table.

When should you not use an orthogonal array?

When you expect factors to interact and the interaction matters to the decision, for example two elements that make the same promise. A main effect read from a confounded column could then be the interaction. Use a full factorial, a larger array or run the complementary half.

See this number on your own site

Add one script tag for web and apps, and the first reports fill in within minutes.

See your data clearly. Find your growth.

Every click, backed by data. Install one line of code and see your first numbers in a minute.

No credit card · Free plans for analytics and chat · Cookieless analytics