Advanced Business Statistics

Chapter 5
Analysis of Variance and Experimental Design

Post Graduate Program in Business Analytics
Advanced Business Statistics   •   Post Graduate

Analysis of Variance and Experimental Design

Introduction

Business analytics frequently asks whether observed differences between products, processes, customer segments, campaigns, or operating conditions are large enough to support a managerial conclusion. Comparing two means with a t-test is useful in limited settings, but modern business experiments often involve three or more groups, several controllable factors, nuisance sources of variation, and possible interactions. Analysis of variance (ANOVA) and experimental design provide a unified framework for these problems.

ANOVA separates total variation in an outcome into systematic variation attributable to specified factors and unexplained residual variation. Experimental design determines how observations should be collected so that causal conclusions are credible, estimates are precise, and resources are used efficiently. The two subjects are therefore complementary: design protects the validity of the data, while ANOVA provides an appropriate method for analysing it.

Applications include comparing advertising campaigns, evaluating website interfaces, optimising manufacturing settings, testing service processes, assessing training methods, and identifying combinations of product attributes that influence demand.

Learning Objectives

By the end of this chapter, the reader should be able to:

  1. Explain the logic, assumptions, and decomposition underlying ANOVA.
  2. Conduct and interpret one-way and two-way ANOVA.
  3. Distinguish main effects from interaction effects.
  4. Design experiments using randomisation, replication, blocking, and factorial structures.
  5. Interpret effect sizes, confidence intervals, post-hoc comparisons, and practical significance.
  6. Apply response-surface principles to process and product optimisation.
  7. Evaluate limitations, ethical issues, and implementation risks in business experiments.

1. Variation, Causality, and the Logic of ANOVA

Suppose a retailer compares the mean sales generated by four promotional strategies. Differences in sample means may reflect genuine treatment effects, random customer-to-customer variation, store differences, seasonality, or measurement error. ANOVA asks whether the between-group variation is sufficiently large relative to within-group variation.

The central model for one-way ANOVA is:

yij = μ + τi + εij

Here, yij is observation j in group i; μ is the overall population mean; τi is the effect of group i; and εij is random error. A common identifying restriction is ∑τi = 0, so that effects are measured relative to the overall mean. The usual assumptions are independent errors, normally distributed errors within groups, and a common error variance σ2. ANOVA is often reasonably robust to moderate non-normality, especially with balanced samples, but independence and severe variance inequality require particular attention.

The null and alternative hypotheses are:

H0: μ1 = μ2 = ⋯ = μk
H1: At least one group mean differs

The alternative does not identify which groups differ. That question requires planned contrasts or post-hoc procedures.

Partitioning the Sum of Squares

Let yij be the observations, ni the sample size in group i, N = ∑ni the total sample size, ȳi the mean of group i, and ȳ the grand mean. Total variation is:

SST = ∑i ∑j (yij − ȳ)2

It can be partitioned into between-group and within-group variation:

SST = SSB + SSW

where

SSB = ∑i ni(ȳi − ȳ)2

and

SSW = ∑i ∑j (yij − ȳi)2

The degrees of freedom are k−1 for between groups and N−k for within groups. Mean squares are sums of squares divided by their respective degrees of freedom:

MSB = SSB/(k−1), MSW = SSW/(N−k)

The F statistic is:

F = MSB/MSW

Under H0 and the model assumptions, F follows an F distribution with k−1 and N−k degrees of freedom. A small p-value indicates evidence against equal means, but it does not measure the size or managerial importance of the differences.

Worked Example: One-Way ANOVA

A firm records customer satisfaction scores for three service scripts, with four observations per script:

Script AScript BScript C
687
798
579
688

The group means are 6, 8, and 8; the grand mean is 22/3 ≈ 7.33. The between-group sum of squares is:

SSB = 4(6−7.33)2 + 4(8−7.33)2 + 4(8−7.33)2 ≈ 5.33.

Within-group sums of squares are 2, 2, and 2, so SSW = 6. Therefore:

  • dfB = 3−1 = 2
  • dfW = 12−3 = 9
  • MSB ≈ 5.33/2 = 2.67
  • MSW = 6/9 = 0.67
  • F ≈ 2.67/0.67 = 4.00

At the 5% level, the critical value for F2,9 is approximately 4.26. Thus, this small illustrative sample does not reject equal means at 5%, despite the observed difference. The example demonstrates why visual impressions and mean differences must be evaluated against within-group variability and sample size.

2. Inference Beyond the Omnibus F-Test

A significant omnibus F-test only establishes that at least one mean differs. It does not justify conducting many unadjusted t-tests, because repeated testing increases the familywise probability of a false positive.

Common follow-up methods include:

  • Tukey’s honestly significant difference procedure: useful for all pairwise comparisons and controls familywise error under standard conditions.
  • Bonferroni adjustment: simple and conservative; if m comparisons are planned, each comparison may use level α/m.
  • Dunnett’s procedure: appropriate when several treatments are compared with one control.
  • Planned contrasts: theoretically motivated comparisons specified before examining results.

A confidence interval for a difference is often more informative than a p-value because it communicates precision and plausible effect sizes. Analysts should report the estimated difference, interval estimate, p-value, and practical meaning.

Effect size measures include eta-squared:

η² = SSB/SST

Eta-squared is the proportion of observed total variation associated with the factor in a fixed-effects one-way ANOVA. It can be upward biased in small samples. Omega-squared is often preferred as a less biased estimate:

ω² = [SSB − (k−1)MSW]/[SST + MSW]

These measures describe association within the experimental context; they do not automatically establish generalisable business impact.

3. Experimental Design Principles

Statistical analysis cannot repair a fundamentally weak design. Four principles are central.

Randomisation

Randomisation assigns experimental units to treatments by a chance mechanism. It balances both observed and unobserved characteristics in expectation and protects against systematic assignment bias. In a digital experiment, users may be randomly assigned to versions; in a factory, production runs may be randomly assigned to settings within operational constraints.

Randomisation is distinct from random sampling. Random sampling supports generalisation to a population, whereas random assignment supports causal inference about treatment effects. A study may have one without the other.

Replication

Replication means applying each treatment to multiple independent experimental units. It estimates experimental error and improves precision. Repeated measurements on the same unit are not automatically independent replication; they may be subsamples or longitudinal observations requiring a repeated-measures or mixed-effects model.

Blocking

A block is a group of relatively homogeneous experimental units. Blocking controls a known nuisance source, such as store, geographic region, production day, machine, or customer tenure. Treatments are randomised within each block.

For a randomised block design with one observation per treatment in each block, a model is:

yij = μ + τi + βj + εij

where τi is the treatment effect and βj is the block effect. The block variation is removed from the residual error, often increasing power. Blocking is beneficial when block differences are substantial and treatment effects are reasonably consistent across blocks.

Control and Blinding

A control condition provides a meaningful benchmark. In marketing, it may be the current campaign; in product testing, a standard formulation; in service research, the existing procedure. Blinding reduces measurement and behavioural bias when feasible. In business settings, full blinding may be impossible, but automated allocation, standardised instructions, and objective outcome definitions remain valuable.

4. Factorial Designs and Interaction

A factorial experiment studies two or more factors simultaneously. In a 2 × 2 design, two factors each have two levels, producing four treatment combinations. Factorial designs are efficient because they estimate main effects and interactions using the same observations.

For factors A and B, a two-factor model is:

yijk = μ + αi + βj + (αβ)ij + εijk

Here, αi is the main effect of A, βj is the main effect of B, and (αβ)ij is their interaction. The interaction is present when the effect of one factor depends on the level of the other.

For a balanced design, the degrees of freedom are:

SourceDegrees of freedom
Factor Aa − 1
Factor Bb − 1
A × B(a − 1)(b − 1)
Errorab(n − 1)
Totalabn − 1

where a and b are the numbers of levels and n is the number of replicates per cell.

Interpreting Interaction Correctly

Suppose an online advertisement is tested with two landing pages. Advertisement A performs better on Landing Page 1, while Advertisement B performs better on Landing Page 2. The best advertisement cannot be selected without specifying the landing page. This is an interaction.

When an interaction is important, main effects averaged across the other factor can be misleading. Analysts should examine estimated cell means, interaction plots, simple effects, and confidence intervals. A graphical interaction plot is especially useful: approximately parallel lines suggest little interaction, whereas nonparallel or crossing lines suggest interaction. Statistical significance should be supplemented by operational significance and replication.

5. Extensions of ANOVA

Repeated Measures and Mixed Models

When the same customer, store, machine, or employee is observed repeatedly, observations are correlated. Ordinary ANOVA assuming independence may underestimate uncertainty. Repeated-measures ANOVA or linear mixed-effects models can represent subject-specific variability and time effects. A simple mixed model is:

yij = μ + τi + uj + εij

where uj is a random effect for unit j, usually assumed to have mean zero and variance σu2. The residual εij represents occasion-specific error. More complex correlation structures may be needed for time series or unequal intervals.

Unbalanced Designs

Missing observations, unequal group sizes, or unequal cell sizes produce unbalanced designs. In factorial ANOVA, the interpretation of main effects can depend on the type of sums of squares and the coding of the model. Analysts should report the model specification, inspect missingness, and avoid treating a mechanically generated ANOVA table as self-explanatory.

Nonparametric Alternatives

If the response is ordinal, heavily skewed, or strongly affected by outliers, the Kruskal–Wallis test can compare distributions across independent groups. It tests a distributional difference, not necessarily a difference in means. For repeated or blocked data, the Friedman test is a possible alternative. Robust methods, transformations, generalized linear models, or permutation tests may be preferable depending on the outcome and estimand.

6. Diagnostics and Model Adequacy

ANOVA conclusions depend on the quality of the model and data. Essential diagnostics include:

  1. Residual-versus-fitted plot: assesses nonconstant variance and mean structure.
  2. Normal Q–Q plot: identifies strong departures from normality.
  3. Residual-versus-order plot: can reveal time trends, drift, or dependence.
  4. Outlier and influence analysis: identifies observations that disproportionately affect results.
  5. Cell-size and missing-data review: detects imbalance and selective attrition.

Transformations such as a logarithm may stabilise variance for positive, right-skewed outcomes. For a log-transformed response, effects are interpreted on the multiplicative scale after back-transformation, so the business interpretation must be stated carefully. Alternatives include Welch’s ANOVA when group variances differ and robust or bootstrap procedures when assumptions are doubtful.

Statistical significance is not a substitute for effect size, precision, feasibility, or return-on-investment analysis. A very large sample can make a trivial difference significant, while a valuable effect may remain uncertain in a small experiment.

7. Response-Surface Methodology and Optimisation

When the objective is optimisation rather than simple comparison, response-surface methodology (RSM) models a quantitative response as a function of controllable factors. A first-order model is:

y = β0 + β1x1 + β2x2 + ⋯ + βpxp + ε

A second-order model includes curvature and interactions:

y = β0 + ∑βixi + ∑βiixi2 + ∑i<jβijxixj + ε

The variables xi are often coded so that the centre of the experimental region is zero and factor steps are comparable. The coefficients describe local behaviour within the studied region; extrapolation beyond it is risky.

Central composite designs and Box–Behnken designs are common RSM designs. A sequential strategy is often effective: screen many factors using a fractional factorial design, identify important factors, then use a response-surface design to estimate curvature and locate an operating region. Optimisation should consider multiple responses, constraints, robustness, and confirmation runs rather than accepting the model optimum without verification.

For multiple responses, a desirability function can combine standardised objectives, such as maximising conversion while minimising cost and defect rate. The resulting compromise is a decision aid, not an objective truth; weights and constraints must be documented.

8. Illustrative Case: Improving an E-Commerce Promotion

Background

A fictional online retailer wants to increase completed purchases. The analytics team suspects that both message framing and landing-page design matter, and that their effects may interact.

Problem and Design

The team tests two message frames—value and urgency—and two landing pages—standard and simplified. Eligible visitors are randomly assigned to one of four combinations. Assignment is blocked by device type because mobile and desktop users have different baseline conversion behaviour. The primary outcome is conversion within 24 hours; secondary outcomes include average order value and refund rate.

The factorial design estimates:

  • the average effect of message frame;
  • the average effect of landing page;
  • the message × page interaction;
  • variation associated with device blocks.

The analysis plan is written before examining outcomes. It defines the primary metric, experiment duration, exclusion rules, minimum detectable effect, stopping criteria, and correction for multiple secondary outcomes.

Analysis and Interpretation

Suppose the simplified page improves conversion for the value message but performs poorly with the urgency message. The interaction plot shows nonparallel lines. The correct conclusion is not simply that one page is superior overall. Instead, the firm should deploy the value message with the simplified page if the estimated uplift is sufficiently precise and does not materially increase refunds or reduce contribution margin.

A confidence interval for the conversion-rate difference should accompany the point estimate. If the result is statistically significant but the uplift is smaller than the implementation threshold, rollout may not be justified. Conversely, a promising but imprecise result may warrant a larger confirmatory experiment.

Outcome and Learning Points

The retailer adopts the best-performing combination only after a confirmation test and a monitoring period. It also checks whether effects differ by device, customer tenure, and geography. The case illustrates that factorial design is more informative than testing each factor in isolation, while blocking and pre-specified governance protect against misleading conclusions.

9. Managerial, Ethical, and Governance Considerations

Experimental decisions affect real customers, employees, suppliers, and communities. Good governance requires:

  • a clearly defined estimand and outcome;
  • documented assignment and analysis procedures;
  • protection of personal and commercially sensitive data;
  • compliance with privacy, consent, and sector-specific requirements;
  • safeguards against discriminatory treatment or harmful targeting;
  • monitoring for adverse effects and unintended spillovers;
  • reproducible code, data dictionaries, and an audit trail;
  • transparent reporting of exclusions, missing data, failed experiments, and uncertainty.

A/B testing can create interference when one customer’s treatment affects another, as in network platforms or shared inventory. In such settings, cluster randomisation, switchback designs, or network-aware methods may be needed. Operational constraints can also compromise randomisation. Any deviations should be recorded and incorporated into the analysis.

Artificial intelligence can assist with experiment design, power simulation, anomaly detection, heterogeneous-treatment-effect exploration, and automated diagnostics. However, AI-generated analyses require human review. Automated subgroup discovery can produce false positives, and adaptive experimentation can invalidate ordinary p-values if the stopping and allocation rules are not modelled. Transparency, pre-registration where appropriate, and independent validation remain essential.

10. Best-Practice Workflow

A rigorous business experiment typically follows this sequence:

  1. Define the managerial decision and estimand.
  2. Specify the experimental unit, outcome, treatment levels, and constraints.
  3. Identify nuisance variables and choose blocking or clustering where appropriate.
  4. Determine sample size using a meaningful minimum detectable effect, significance level, desired power, and plausible variance.
  5. Randomise treatment assignment and document the algorithm.
  6. Pre-specify the primary analysis, contrasts, stopping rule, and missing-data approach.
  7. Check implementation fidelity and data quality.
  8. Fit the appropriate model and examine residuals, balance, and influential observations.
  9. Report estimates, confidence intervals, p-values, effect sizes, and practical implications.
  10. Conduct confirmation, sensitivity, and robustness analyses before scaling.

Power calculations should reflect the actual design, including clustering, blocking, multiple comparisons, and attrition. Post-hoc power calculations based on the observed p-value are generally uninformative; confidence intervals and design-stage power analysis are preferable.

Challenges and Limitations

ANOVA is powerful but not universal. Its limitations include sensitivity to dependence, unequal variances, poor measurement, non-random assignment, missing data, and model misspecification. A significant factor may be a proxy for an omitted cause if the experiment was observational. Factorial designs become expensive as factors and levels increase, and interactions can be difficult to interpret when treatment combinations are not operationally feasible.

External validity also requires caution. Results from one market, season, device population, or production line may not transport automatically to another context. Replication across relevant environments and explicit analysis of treatment heterogeneity improve generalisability.

Chapter Summary

ANOVA evaluates whether systematic differences among group means are large relative to residual variation. Its logic rests on partitioning total sum of squares into between-group and within-group components and comparing corresponding mean squares through an F statistic. Correct interpretation requires attention to assumptions, effect sizes, confidence intervals, and post-hoc error control.

Experimental design establishes the credibility and efficiency of the analysis. Randomisation supports causal inference, replication estimates error, blocking controls known nuisance variation, and factorial designs estimate main effects and interactions efficiently. When observations are repeated or clustered, mixed models or other dependence-aware methods are needed.

Response-surface methodology extends factorial experimentation to quantitative optimisation, including curvature, interactions, constraints, and multiple responses. In professional practice, statistical significance must be integrated with practical impact, risk, ethics, privacy, reproducibility, and confirmation testing.

Key Terms

ANOVA: A method that partitions variation to test differences among means.

Analysis of variance: The full statistical framework underlying ANOVA models and tests.

Between-group variation: Variation among group or treatment means.

Within-group variation: Variation among observations receiving the same treatment.

F statistic: The ratio of treatment-related mean square to error mean square.

Randomisation: Chance assignment of experimental units to treatments.

Replication: Applying a treatment to multiple independent experimental units.

Blocking: Grouping similar units and randomising treatments within groups.

Factor: A controllable explanatory variable in an experiment.

Level: A specific value or category of a factor.

Main effect: The average effect of one factor across levels of another factor.

Interaction: A condition in which the effect of one factor depends on another factor.

Factorial design: An experiment containing combinations of levels of two or more factors.

Contrast: A specified linear comparison among means.

Post-hoc comparison: A comparison conducted after an omnibus test, with error control.

Effect size: A measure of the magnitude of an observed or estimated effect.

Response-surface methodology: Experimental modelling for understanding and optimising quantitative responses.

Experimental unit: The smallest unit independently assigned to a treatment.

Residual: The difference between an observed and model-predicted outcome.

Mixed-effects model: A model containing fixed effects and random effects for clustered units.

Review Questions

Short Answer Questions

  1. What is the purpose of partitioning total variation in ANOVA?
  2. Distinguish randomisation from random sampling.
  3. Why is replication important in an experiment?
  4. What does an interaction between two factors mean?
  5. Why should effect sizes and confidence intervals accompany p-values?

Long Answer Questions

  1. Explain the one-way ANOVA model, derive the decomposition of total variation, and discuss its assumptions.
  2. Compare randomisation, replication, blocking, and control as principles of experimental design.
  3. Explain the interpretation of main effects and interactions in a two-factor factorial experiment.
  4. Discuss diagnostic procedures and remedies for non-normality, unequal variances, dependence, and outliers.
  5. Describe how response-surface methodology can support sequential product or process optimisation.

Analytical / Application Questions

  1. A firm compares four pricing messages across stores that differ substantially in customer traffic. Propose an experimental design, identify the experimental unit, and explain whether blocking is appropriate.
  2. In a 2 × 2 campaign experiment, Campaign A outperforms Campaign B on Landing Page X, but Campaign B outperforms Campaign A on Landing Page Y. Explain the likely interaction and recommend an analysis and managerial decision process.
  3. An online experiment shows a statistically significant 0.3 percentage-point conversion increase but a confidence interval ranging from −0.1 to 0.7 percentage points. Explain what can and cannot be concluded and recommend the next step.

Multiple Choice Questions with Answers

Question 1

In a one-way ANOVA, the F statistic is calculated as:

A. Within-group sum of squares divided by total sum of squares

B. Between-group mean square divided by within-group mean square

C. Total mean square divided by between-group mean square

D. Between-group sum of squares divided by sample size

Correct Answer: B. Between-group mean square divided by within-group mean square

Question 2

A significant omnibus ANOVA F-test establishes that:

A. Every group mean differs from every other group mean

B. The largest group has the highest population mean

C. At least one population mean differs

D. The treatment caused the observed difference in all settings

Correct Answer: C. At least one population mean differs

Question 3

Which design principle primarily protects against systematic assignment bias?

A. Randomisation

B. Blocking

C. Replication

D. Post-hoc testing

Correct Answer: A. Randomisation

Question 4

Blocking is most useful when:

A. All experimental units are identical

B. A known nuisance variable creates meaningful heterogeneity

C. There is only one treatment level

D. The response variable is always normally distributed

Correct Answer: B. A known nuisance variable creates meaningful heterogeneity

Question 5

In a factorial experiment, an interaction means that:

A. The sample size is unequal across groups

B. The error variance is zero

C. One factor has no measurable effect

D. The effect of one factor depends on the level of another

Correct Answer: D. The effect of one factor depends on the level of another

Question 6

If SSB = 30 and SST = 100, eta-squared is:

A. 0.03

B. 0.30

C. 0.70

D. 3.00

Correct Answer: B. 0.30

Question 7

Which procedure is specifically designed for comparing several treatments with one control while controlling familywise error?

A. Dunnett’s procedure

B. Levene’s test

C. Friedman’s test

D. Shapiro–Wilk test

Correct Answer: A. Dunnett’s procedure

Question 8

Repeated observations on the same customer violate which common one-way ANOVA assumption if treated as independent?

A. Equal treatment labels

B. Independence of errors

C. Existence of a grand mean

D. Presence of a factor

Correct Answer: B. Independence of errors

Question 9

A second-order response-surface model adds which important feature beyond a purely linear model?

A. Only randomisation

B. Only categorical outcomes

C. Curvature through squared terms

D. Removal of all residual error

Correct Answer: C. Curvature through squared terms

Question 10

Which statement about a small p-value is most accurate?

A. It proves the effect is practically important

B. It proves the alternative hypothesis is true

C. It indicates evidence against the null under the model assumptions

D. It identifies which specific groups differ without further analysis

Correct Answer: C. It indicates evidence against the null under the model assumptions

Advanced Business Statistics
Chapter 5 of 15