Understanding the ANOVA Method for Gage R&R Studies: Sum of Squares and Degrees of Freedom

Right triangle illustrating the relationship between total standard deviation, process standard deviation, and measurement system standard deviation

In the realm of measurement system analysis, the ANOVA (Analysis of Variance) method for Gage Repeatability and Reproducibility (R&R) studies stands as a powerful statistical tool. Unlike the traditional average and range method, ANOVA leverages variance analysis to dissect the results of a Gage R&R study, offering deeper insights into the sources of variation. While both methods often yield similar outcomes, ANOVA provides a more robust framework for understanding the nuances of measurement systems.

This article, the first in a multi-part series, delves into the ANOVA table—specifically, the sum of squares and degrees of freedom—and how they are calculated for a Gage R&R study. These concepts are foundational for interpreting the variability in measurement processes, ensuring accuracy, and improving system reliability.


The Importance of Variation in Gage R&R Studies

A Gage R&R study is fundamentally a study of variation. Without variation in the results, the study cannot provide meaningful insights. Occasionally, practitioners may encounter a scenario where all measurements are identical across parts and operators. While consistency might seem desirable, in the context of a Gage R&R study, the absence of variation indicates that the measurement process cannot distinguish between different samples. Thus, variation is not just expected—it is essential.

For those unfamiliar with conducting a Gage R&R study, refer to our guide on variable measurement systems and the average and range method for a comprehensive overview.


Sources of Variation in Measurement Processes

When monitoring a process by measuring a critical quality characteristic (X), the results will naturally vary. This variation stems from multiple sources, which can be categorized into three primary components:

  • Process Variation (σₚ²): Inherently tied to the production process itself.
  • Sampling Variation (σₛ²): Arises from the method of selecting samples.
  • Measurement System Variation (σₘₛ²): Introduced by the measurement tools and procedures.

These components are interrelated through the following equation:

σₜ² = σₚ² + σₛ² + σₘₛ²

Here, σₜ² represents the total process variance, while σₚ², σₛ², and σₘₛ² denote the variances due to the process, sampling, and measurement system, respectively. For simplicity, we often consolidate sampling variation into the process variance, simplifying the equation to:

σₜ² = σₚ² + σₘₛ²

This relationship can be visualized using a right triangle, where:

  • The hypotenuse represents the total standard deviation (σₜ).
  • One leg represents the process standard deviation (σₚ).
  • The other leg represents the measurement system standard deviation (σₘₛ).

Right triangle illustrating the relationship between total standard deviation, process standard deviation, and measurement system standard deviation

Right triangle illustrating the relationship between total standard deviation, process standard deviation, and measurement system standard deviation

This geometric representation highlights how changes in product variation and measurement system variation impact the total variation. If the measurement system variation (σₘₛ) becomes too large, it can dominate the total variation, undermining the reliability of the measurement process. Therefore, the primary objective in improving a measurement system is to minimize the percentage of variance attributed to the measurement system:

% Variance due to Measurement System = 100 × (σₘₛ² / σₜ²)


Breaking Down Measurement System Variation

In a Gage R&R study, the measurement system variation (σₘₛ²) can be further decomposed into two critical components:

  1. Repeatability:
    This refers to the ability of the measurement system to produce identical results when the same operator measures the same part under the same conditions. It assesses the consistency of measurements for a single operator and part combination.

  2. Reproducibility:
    This evaluates the consistency of measurements across different operators, parts, or conditions. It reflects the ability of the measurement system to yield the same results when different operators measure the same part.

The ANOVA method provides a systematic approach to quantifying both repeatability and reproducibility, thereby offering a comprehensive understanding of the measurement system’s performance.


Example Data for Gage R&R Study

To illustrate the calculations, we will use data from a previous study on the average and range method for Gage R&R. In this example:

  • 3 operators tested 5 parts, with 3 trials per part.
  • The layout of the study is depicted below:

Layout of the Gage R&R study showing operators testing parts with multiple trials

Layout of the Gage R&R study showing operators testing parts with multiple trials

Understanding the Sources of Variation

  • Within Variation (Repeatability):
    For a single operator measuring the same part multiple times (e.g., Operator 1 testing Part 1 three times), the variation in results is attributed solely to the measurement equipment. This is also known as equipment variation or within variation in ANOVA studies.

  • Between Variation (Reproducibility):
    When operators test different parts, the variation includes contributions from the parts themselves, the operators, and the interaction between operators and parts. This cumulative variation is referred to as reproducibility.

The data from the study is presented in the table below:

Gage R&R Study Data: Measurement Results by Operator and Part

OperatorPartTrial 1Trial 2Trial 3
A13.293.413.64
A22.442.322.42
A34.344.174.27
A43.473.503.64
A52.202.082.16
B13.083.253.07
B22.531.782.32
B34.193.944.34
B43.014.033.20
B52.441.801.72
C13.042.892.85
C21.621.872.04
C33.884.093.67
C43.143.203.11
C51.541.931.55

The ANOVA Table for Gage R&R

In practice, software tools (e.g., SPC for Excel) are typically used to perform the calculations for a Gage R&R study. However, understanding the manual calculations enhances comprehension of the underlying principles. The results are typically presented in an ANOVA table, which includes the following columns:

  1. Source of Variability: Identifies the factor contributing to variation (e.g., operator, part, interaction, equipment).
  2. Degrees of Freedom (df): The number of independent values that can vary in the analysis.
  3. Sum of Squares (SS): A measure of variation for each source, calculated as the sum of squared deviations from the mean.
  4. Mean Square (MS): The sum of squares divided by the degrees of freedom, providing an estimate of the variance for each source.
  5. F Value: A test statistic used to determine the statistical significance of each source of variability.
  6. p Value: The probability that the observed variation is due to random chance.

The ANOVA table for our example data is shown below:

ANOVA Table for Gage R&R Study

SourcedfSSMSFp Value
Operator21.6300.815100.3220.0000
Part428.9097.227889.4580.0000
Operator × Part80.0650.0080.1420.9964
Equipment301.7120.057
Total4432.317

Calculating the Sum of Squares and Degrees of Freedom

1. Total Sum of Squares (SST) and Degrees of Freedom

The total sum of squares (SST) is the sum of the squared deviations of each individual result from the overall average (the mean of all 45 results). Mathematically, it is expressed as:

where Xᵢⱼₘ represents the result for the i-th operator, j-th part, and m-th trial.

For our dataset, the overall average is calculated as 2.9867. The SST is then computed as 32.317, with the calculations detailed in the table below:

Calculations for Total Sum of Squares (SST)

OperatorPartTrial 1Trial 2Trial 3Squared Deviation (Trial 1)Squared Deviation (Trial 2)Squared Deviation (Trial 3)
A13.293.413.640.1200.2170.485
A22.442.322.420.2540.3890.274
A34.344.174.271.9491.5041.759
A43.473.503.640.2770.3090.485
A52.202.082.160.5530.7460.614
B13.083.253.070.0190.0940.016
B22.531.782.320.1711.3540.389
B34.193.944.341.5530.9921.949
B43.014.033.200.0041.1800.066
B52.441.801.720.2541.3081.498
C13.042.892.850.0090.0030.009
C21.621.872.041.7521.1530.817
C33.884.093.670.8771.3140.527
C43.143.203.110.0390.0660.028
C51.541.931.551.9711.028

The degrees of freedom (df) for the total sum of squares is 44 (45 results – 1).


2. Operator Sum of Squares (SSO) and Degrees of Freedom

The operator sum of squares (SSO) measures the squared deviations of each operator’s average from the overall average. The formula is:

where n is the number of parts (5), r is the number of trials (3), and nr is the number of results per operator (15).

The calculations for SSO are summarized in the table below:

Calculations for Operator Sum of Squares (SSO)

OperatorOperator AverageSquared Deviation for Operator
A3.15670.0453
B2.98000.0013
C2.69470.0621
Sum of Deviations0.1087
15 × (Sum of Deviations)1.6304

Thus, SSO = 1.6304.

The degrees of freedom for operators is 2 (3 operators – 1).

Variability chart showing results by operator and part, with operator averages and overall average

Variability chart showing results by operator and part, with operator averages and overall average


3. Parts Sum of Squares (SSP) and Degrees of Freedom

The parts sum of squares (SSP) is calculated similarly to the operator sum of squares, but it focuses on the deviations of part averages from the overall average. The formula is:

where k is the number of operators (3), r is the number of trials (3), and kr is the number of results per part (9).

The calculations for SSP are detailed in the table below:

Calculations for Parts Sum of Squares (SSP)

PartPart AverageSquared Deviation for Part
13.16890.0507
22.14890.6318
34.09891.3343
43.36670.1788
51.93561.0165
Sum of Deviations3.2122
9 × (Sum of Deviations)28.9094

Thus, SSP = 28.9094.

The degrees of freedom for parts is 4 (5 parts – 1).


4. Equipment (Within) Sum of Squares (SSE) and Degrees of Freedom

The equipment sum of squares (SSE) measures the variation within the three trials for each operator-part combination. It is calculated as the sum of squared deviations of each trial from the average of the three trials for that operator and part. The formula is:

The calculations for SSE are shown in the table below:

Calculations for Equipment (Within) Sum of Squares (SSE)

OperatorPartTrial 1Trial 2Trial 3Average of 3 TrialsSquared Deviation (Trial 1)Squared Deviation (Trial 2)Squared Deviation (Trial 3)
A13.293.413.643.4470.0250.0010.037
A22.442.322.422.3930.0020.0050.001
A34.344.174.274.2600.0060.0080.000
A43.473.503.643.5370.0040.0010.011
A52.202.082.162.1470.0030.004

Thus, SSE = 1.712.

The degrees of freedom for equipment variation is 30 (nk(r-1) = 3 operators × 5 parts × (3 trials – 1)).

Variability chart by part, showing results for each operator-part combinationVariability chart by part, showing results for each operator-part combination


5. Interaction Sum of Squares (SSO×P) and Degrees of Freedom

The interaction sum of squares (SSO×P) is derived from the relationship:

SST = SSO + SSP + SSO×P + SSE

Rearranging the equation to solve for SSO×P:

SSO×P = SST – (SSO + SSP + SSE)
SSO×P = 32.317 – (1.630 + 28.909 + 1.712) = 0.065

Similarly, the degrees of freedom for interaction is calculated as:

dfO×P = dfT – (dfO + dfP + dfE)
dfO×P = 44 – (2 + 4 + 30) = 8


Summary and Next Steps

This article provided a detailed explanation of how the sum of squares and degrees of freedom are calculated for an ANOVA-based Gage R&R study. These foundational concepts are critical for understanding the sources of variation in measurement systems and ensuring the reliability of your processes.

In the next installment of this series, we will complete the ANOVA table and finalize the Gage R&R calculations, including the estimation of repeatability, reproducibility, and total measurement system variation. Stay tuned for a deeper dive into the practical applications of ANOVA in measurement system analysis!