On May 4, 4:12 pm, Rich Ulrich <
rich.ulr...@comcast.net> wrote:
I don't recall seeing it discussed, either, but here's how it might
be done. (This is for any number of dimensions, not just three).
Let n1 & n2 be the sample sizes,
let m1 & m2 be the sample mean vectors, and
let S1 & S2 be the sample covariance matrices.
Let m = m1 - m2, let S = S1/n1 + S2/n2,
and let w be a vector of weights on the coordinates.
Then t = w'.m/sqrt[w'.S.w],
where ' denotes vector transposition (column -> row),
and . denotes matrix multiplication.
To maximize |t|, take w = (S^-1).m; the Satterthwaite df =
(w'.S.w)^2 /( (w'.S1.w/n1)^2 / (n1-1) + (w'.S2.w/n2)^2 / (n2-1) )
(Note that ordinary discriminant analysis, which assumes the true
covariance matrices are equal, uses exactly the same approach but
with S = ((n1-1)S1 + (n2-1)S2)/(n1-1 + n2-1) and df = n1+n2-2.)