Excellent question. It gets to the heart of what "orthogonal" means in the context of experimental design and ANOVA. Let's break it down.
Short Answer
-
Do orthogonal factors have identical group sizes?
Yes, in the way that matters for orthogonality. For factors to be orthogonal, the design must be balanced, which means the group sizes for each level within a factor are identical.
-
Do they have identical variance?
No, not necessarily. The variance of a coded factor depends on its number of levels, so two orthogonal factors with a different number of levels will not have identical variance.
Detailed Explanation
To understand why, we need to define what makes factors orthogonal in a linear model.
What are Orthogonal Factors?
In the context of linear models (like ANOVA), factors are considered orthogonal if their effects can be estimated independently of one another. Statistically, this means the columns representing these factors in the model's design matrix are orthogonal to each other (their dot product is zero).
This property is achieved through a balanced design. A design is balanced if there is an equal number of observations in every single cell (i.e., for every combination of the factor levels).
1. Orthogonality and Group Size
Let's use an example. Imagine a study with two factors:
- Factor A: Treatment (Drug A, Placebo) - 2 levels
- Factor B: Gender (Male, Female) - 2 levels
The "cells" of this design are the four possible combinations:
- Drug A / Male
- Drug A / Female
- Placebo / Male
- Placebo / Female
Balanced Design (Orthogonal Factors)
If the design is balanced, we have an equal number of subjects, let's say n=20, in each cell.
| Male | Female | Total |
|---|
| Drug A | 20 | 20 | 40 |
| Placebo | 20 | 20 | 40 |
| Total | 40 | 40 | 80 |
Now, let's look at the group sizes for each factor individually (the marginal totals):
- Factor A (Treatment):
- Size of "Drug A" group = 40
- Size of "Placebo" group = 40
- These are identical.
- Factor B (Gender):
- Size of "Male" group = 40
- Size of "Female" group = 40
- These are identical.
Why this matters: Because the design is balanced, knowing a subject's gender gives you no information about which treatment they received. The proportion of males receiving Drug A (20/40 = 50%) is the same as the proportion of females receiving Drug A (20/40 = 50%). The factors are completely independent, or orthogonal.
Unbalanced Design (Non-Orthogonal Factors)
If the design is unbalanced, the factors become correlated (confounded).
| Male | Female | Total |
|---|
| Drug A | 30 | 10 | 40 |
| Placebo | 10 | 30 | 40 |
| Total | 40 | 40 | 80 |
Notice the marginal group sizes are still identical (40 in each group for both factors), but the cell sizes are unequal. In this case, the factors are not orthogonal. Knowing a subject is male makes it much more likely they received Drug A. Their effects are confounded.
Conclusion on Group Size: Orthogonality requires a balanced design (equal cell sizes). A direct consequence of a balanced design is that the marginal group sizes for the levels within any given factor are identical.
2. Orthogonality and Variance
The "variance of a factor" refers to the variance of the numerical vector used to represent that factor in the design matrix. This representation is done via contrast coding (e.g., dummy coding, effects coding, Helmert coding).
Let's use a balanced 2x3 design to illustrate.
- Factor A: Has 2 levels (A1, A2)
- Factor C: Has 3 levels (C1, C2, C3)
- Design: Balanced, with n observations per cell. Total observations N=2×3×n=6n.
The design is balanced, so Factor A and Factor C are orthogonal.
Let's code them using effects coding (where the codes sum to zero).
Comparison of Variance:
- The sum of squares for the Factor A vector is 6n.
- The sum of squares for one of the Factor C contrast vectors is 8n.
Since the sum of squares are different, their variances will be different.
Why this matters: The variance of a factor's coded vector is a function of its number of levels and the specific contrast codes used. Two factors can be perfectly orthogonal (because the design is balanced), but if they have a different number of levels, the numerical properties (like variance) of their vector representations in the design matrix will not be identical.
Summary
| Question | Answer | Why? |
|---|
| Identical Group Size? | Yes (for levels within a factor) | Orthogonality requires a balanced design (equal cell sizes). This structure mathematically guarantees that the marginal group sizes for each level of a factor are identical. |
| Identical Variance? | No, not necessarily | The variance of a factor's coded vector depends on its number of levels and the coding scheme. Factors with different numbers of levels will have different variances, even if they are perfectly orthogonal. |