










Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!











1
No analysis is done for any subfile group for which the number of non-empty groups is less than 2 or the number of cases or sum of weights fails to exceed the number of non-empty groups. An analysis may be stopped if no variables are selected during variable selection or the eigenanalysis fails.
The following notation is used throughout this chapter unless otherwise stated:
g Number of groups p Number of variables q Number of variables selected Xijk Value of variable i for case k in group j f (^) jk Case weights for case k in group j mj Number of cases in group j nj Sum of case weights in group j
n Total sum of weights
Mean
X f X n i j
X f X n
i
ij jk ijk k
m j
i jk ijk k
m
j
g
j
j
F
H
G G
I
K
J J
F
H
G G
I
K
J J
=
โ
โโ
1
1 1
variable in group
variable
b g
a f
Variances
f X n X
n
i j
f X nX
n
i
ij
jk ijk k
m j ij
j
i
jk ijk k
m i j
g
j
j
2
2
1
2
2
2
1
2
1
F
H
G G
I
K
J J
โ
F
H
G G
I
K
J J
โ
=
= =
โ
โโ
d i
b g
a f
a f
variable in group
variable
Within-groups Sums of Squares and Cross-product Matrix ( W )
w (^) il f (^) jk X (^) ijk X (^) ljk f X f X n i l p k
m
j
g jk ijk k
m jk ljk k
m j j
j g j j = โ
F
H
G G
I
K
J J
F
H
G G
I
K
J J
= = = = =
โ โ โ โ โ 1 1 1 1 1
Total Sums of Squares and Cross-product Matrix ( T )
t (^) il f (^) jk X (^) ijk X (^) ljk f X f X n k
m
j
g jk ijk k
m
j
g jk ljk k
m
j
j j g j = โ
F
H
G G
I
K
J J
F
H
G G
I
K
J J = = = = = =
โ โ โ โ โโ 1 1 1 1 1 1
Within-groups Covariance Matrix
n g
n g a f
Both direct and stepwise variable entry are possible. Multiple inclusion levels may also be specified.
For direct variable selection, variables are considered for inclusion in the order in which they are written on the ANALYSIS = list. A variable is included in the analysis if, when it is included, no variable in the analysis will have a tolerance less than the specified tolerance limit (default = 0.001).
At each step, the following rules control variable selection:
A variable with an odd inclusion number is considered ineligible for inclusion if:
A variable with an even inclusion number is ineligible for inclusion if the first condition above is met.
During variable selection, the matrix W is replaced at each step by a new matrix W โ^ using the symmetric sweep operator described by Dempster (1969). If the first q variables have been included in the analysis, W may be partitioned as:
11 12 21 22
L N M
O Q P
where W 11 is q ร q. At this stage, the matrix W โ^ is defined by
โ โ โ โ โ
โ โ = (^) โ โ
L
N
M M
O
Q
P P
L
N
M M
O
Q
P P
11
1 11
1 12 21 11
1 22 21 11
1 12
11 12 21 22
In addition, when stepwise variable selection is used, T is replaced by the matrix T โ^ , defined similarly.
The Approximate F Test for Lambda (the โoverall F โ), also known as Raoโs R (Tatsuoka, 1971)
r s qh qh
s = (^) s
e jb^ g
where
s
q h q h
q h
r n q g h g
R
S
||
T
| | = โ โ + = โ
2 2 2 2
if
otherwise a (^) f
with degrees of freedom qh and r s + 1 โ qh 2. The approximation is exact if q or h is 1 or 2.
Raoโs V (Lawley-Hotelling trace) (Rao, 1952; Morrison, 1976)
V n g w (^) il t (^) il wil l
q
i
q = โ โ โ โ = =
a fโ (^) โ b g 1 1
When n โ g is large, V , under the null hypothesis, is approximately distributed as ฯ 2 with q g a โ 1 f degrees of freedom. When an additional variable is entered, the
freedom.
The Squared Mahalanobis Distance (Morrison, 1976) between groups a and b
Dab n g w (^) il X (^) ia X (^) ib X (^) la Xlb l
q
i
q 2
1 1
= =
a fโ (^) โ c hc h
The F value for Testing the Equality of Means of Groups a and b
n q g n n q n g n n ab a^ bD a b
= (^) ab
b 1 g^2 b gb g
The Sum of Unexplained Variations (Dixon, 1973)
R Dab b a
g
a
g = + = = +
โ โ โ^4
2 1 1
1 e j
Once a set of q variables has been selected, the classification functions (also known as Fisherโs linear discriminant functions) can be computed using
b (^) ij n g w Xil lj i q j g l
q = โ โ = = =
a f โ 1
for the coefficients, and
a (^) j p (^) j b Xij ij j q i
q = โ = =
log (^) โ , , ,
1
for the constant, where pj is the prior probability of group j.
The canonical discriminant function coefficients are determined by solving the general eigenvalue problem
Testing the significance of all the discriminating functions after the first k :
ฮ k i i k
m = + k = m โ = +
โ1 1^ 0 1^1 1
b ฮปg , ,^ โฆ,
The significance level is based on
ฯ 2 = โ (^) c n โ a q + g (^) f 2 โ (^1) hln ฮ (^) k ,
which is distributed as a ฯ 2 with (^) a q โ k (^) fa g โ k โ (^1) f degrees of freedom.
The standard canonical discriminant coefficient matrix D is computed as
where S (^) = diag w w w e 11 ,^22 ,^ โฆ, pp j S 11 = partition containing the first q rows and columns of S V = matrix of eigenvectors such that V W โฒ 11 V = I
The correlations between the canonical discriminant functions and the discriminating variables are given by
If some variables were not selected for inclusion in the analysis (^) a q < p f, the eigenvectors are implicitly extended with zeroes to include the nonselected variables in the correlation matrix. Variables for which Wii = 0 are excluded from S and W for this calculation; p then represents the number of variables with non-zero within-groups variance.
The unstandardized coefficients are calculated from the standardized ones using
B = a n โ g f S โ 111 D
The associated constants are:
a (^) k bik Xi i
q = โ (^) โข =
โ 1
The group centroids are the canonical discriminant functions evaluated at the group means:
f (^) kj a (^) k b (^) ik Xij i
q = + =
โ 1
Boxโs M is used to test for equality of the group covariance matrices.
M n g n (^) j j j
g = โ โฒ โ โ =
a f (^) โd i
1
where
e n n g
p p g p
e n n g
p p g
t g p p
t t e e
b
t e t t
e e
t e t
e e
j j
g
j j
g
1 1
2
(^2 ) 1
2
1
2 1 2 1
2
1 1 1 2
2 1
2
2 1 2
2 1
2
F
H
G G
I
K
J J
F
H
G G
I
K
J J
R
S
||
T
| |
=
=
โ
โ
a fa f
a fa f a f
a f a f
b g
if
if
If e 1^2 โ e 2 is zero, or much smaller than e (^) 2 , t 2 cannot be computed or cannot be
computed accurately. If
e (^) 2 = e (^) 2 + 0 0001. (^) e e (^) 2 โ e 12 j
ฯ 2 = M (^) b 1 โ e 1 g
with t 1 degrees of freedom.
For testing the group covariance matrix of the canonical discriminant functions, the
D โฒ, where
is the group covariance matrix of the discriminant functions. The pooled covariance matrix in this case is an identity, so that
D โฒ = n โ g I (^) m โ (^) โ nj โ D j j
a f (^) d 1 i
where the summation is only over groups with singular D (^) j.
The basic procedure for classifying a case is as follows:
d^ f^ f^ i D^ d f^ f i
where D (^) j is the covariance matrix of canonical discriminant functions for group j and f j is the group centroid vector. If the case is a member of group j ,
P e
P e
j
j j
j j j
g
j
j
โ (^) โ
โ (^) โ
=
โ
1 2 (^2)
1 2 (^2)
1
2
2
ฯ
ฯ
where pj is the prior probability for group j. A case is classified into the group for which P ( G (^) j | X ) is highest.
The following notation is used in this section:
X ~ (^) jk ( X , , X ) jk qjk
T 1 โฆ
M ~ (^) j Sample mean of jth group
n j f^ X j
jk jk k
m (^) j
โ
1 M ~ (^) jk Sample mean of j th group excluding point (^) X ~ (^) jk
n f jk f^ X j jk
jl jl l l k
m (^) j
โ
โ
1
ฮฃ (^) Polled sample covariance matrix ฮฃ (^) j Sample covariance matrix of j th group ฮฃ (^) jk Polled sample covariance matrix without point X ~ (^) jk
ฮฃ โ jk^1 = โ^ โ โ
โ
โ โ
โ
n g f n g n X M X M
n f n g n X M X M
jk
j j jk j jk j
T j
j jk j j jk j
T j jk j
~ ~^ ~ ~
~ ~ ~ ~
1
1 1
1
d (^) 02 ( , a b ~ ~ ) = ( (^) ~ a โ (^) ~ b ) T^ ฮฃ โ jk^1 ( (^) ~ a โ b ~) T
Cross-validation applies only to linear discriminant analysis (not quadratic). During
cross-validation, SPSS loops over all cases in the data set. Each case, say (^) X ~ (^) jk , is
extracted once and treated as test data. The remaining cases are treated as a new
data set.
Here we compute d (^) 02 ( X ~ (^) jk , M ~ jk )and d (^) 02 ( X ~ (^) jk , M ~ i )( i = 1 , ..., g. i โ j ). If there is
an i ( i โ j ) that satisfies (log( Pi ) โ d (^) 02 ( (^) ~ X (^) jk , M ~ (^) i ) / 2 > log( P (^) j ) โ d (^) 02 ( (^) ~ X (^) jk , (^) ~ Mjk ) / 2 ) ,
then the extracted point X ~ (^) jk is misclassified. The estimate of prediction error rate is
the ratio of the sum of misclassified case weights and the sum of all case weights. To reduce computation time, the linear discriminant method is used instead of the canonical discriminant method. The theoretical solution is exactly the same for both methods.
Varimax rotations may be performed on either the matrix of canonical discriminant function coefficients or on that of the correlation between the canonical discriminant functions and the discrimination variables (the structure matrix). The actual algorithm for the rotation is described in FACTOR. For the Kaiser normalization
h
w w
r
i
ii ii
ik k
m
2 2 1
R
S
| ||
T
| | |
โ
=
โ
squared multiple correlation
if coefficients rotated
if correlations rotated
The unrotated structure matrix is
If the rotation transformation matrix is represented by K , the rotated standardized coefficient matrix D R is given by