← All examples

05 / 06 · Two-way ANOVA

Teaching example. Synthetic data.

Does a coating behave the same under different loads?

Compare two coatings under three load levels. Is the difference between coatings constant, or does it depend on the load?

Open a copy and recalculate A separate copy of the example opens in a new tab. Changes there won’t affect your current project.

Theory: Two factors and repeated measures →

24 specimens · 2 × 3 design

Points show observations. Mean intervals: 95%.
Coating effect: p
1.102e-8
Load effect: p
4.037e-8
Factor interaction, p
0.1607
Inspect the original observations
CoatingLoadSpecimenValue
Coating ALow19
Coating ALow210.4
Coating ALow311.2
Coating ALow49.4
Coating AMedium511
Coating AMedium612.4
Coating AMedium713.2
Coating AMedium811.4
Coating AHigh913
Coating AHigh1014.4
Coating AHigh1115.2
Coating AHigh1213.4
Coating BLow1312
Coating BLow1413.4
Coating BLow1514.2
Coating BLow1612.4
Coating BMedium1715
Coating BMedium1816.4
Coating BMedium1917.2
Coating BMedium2015.4
Coating BHigh2118
Coating BHigh2219.4
Coating BHigh2320.2
Coating BHigh2418.4

Calculated by the Linza engine from this example’s data. Opening it in the editor runs a fresh calculation.

Why this method

Two-way ANOVA separates coating, load and their interaction. Each cell contains four different specimens, making this an independent rather than repeated design. The model assumes independent errors, normal residuals and a common variance.

Explore the theory: Two factors and repeated measures →

Work through it in Linza

In Data, check six factor combinations and distinct specimen IDs. In Analyses, read the three effects separately. The coating effect averages over loads; interaction asks a different question: does the coating difference change with load?

Open a copy and recalculate

Try changing one condition

Add 2 to every coating B observation at every load. Does the pattern of differences across loads change?

Show the explanation

The gaps become 5, 6 and 7. The overall coating gap increases, but its change across loads stays the same. A constant shift does not introduce a new interaction. Read the inference for each effect separately.

Data and reproducibility

Teaching studies with synthetic data. The scenarios reflect practical questions, but do not report real experimental findings.

Next exampleHow long does a device remain failure-free? →