Docsity

PRINCALS Algorithm: Multivariate Analysis for Missing Values & Measurement Levels, Study notes of Mathematical Statistics

Toggle sidebar
bg1
1
PRINCALS
The PRINCALS algorithm was first described in Van Rijckevorsel and De Leeuw
(1979) and De Leeuw and Van Rijckevorsel (1980); also see Gifi (1981, 1985).
Characteristic features of PRINCALS are the ability to specify any of a number of
measurement levels for each variable separately and the treatment of missing
values by setting weights in the loss function equal to 0.
Notation
The following notation is used throughout this chapter unless otherwise noted:
n Number of cases (objects)
m Number of variables
p Number of dimensions
For variable j, jm=1, ,K
hj n-vector with categorical observations
kj Number of categories (distinct values) of variable j
Gj Indicator matrix for variable j, of order nk
j
×
The elements of Gj are defined as inrk
j
==11,,; ,,KK
gir j
ir j
jir
16 =%
&
'
1
0
when the th object is in the th category of variable
when the th object is not in the th category of variable
Mj Binary, diagonal nn
× matrix
The diagonal elements of Mj are
mik
ik
jii j
j
16 =%
&
'
11
01
when the th observation is within the range [
when the th observation is outside the range [
,]
,]
Dj Diagonal matrix containing the univariate marginals; that is, the column
sums of Gj
pf3
pf4
pf5
pf8
pf9

Partial preview of the text

Download PRINCALS Algorithm: Multivariate Analysis for Missing Values & Measurement Levels and more Study notes Mathematical Statistics in PDF only on Docsity!

1

The PRINCALS algorithm was first described in Van Rijckevorsel and De Leeuw (1979) and De Leeuw and Van Rijckevorsel (1980); also see Gifi (1981, 1985). Characteristic features of PRINCALS are the ability to specify any of a number of measurement levels for each variable separately and the treatment of missing values by setting weights in the loss function equal to 0.

Notation

The following notation is used throughout this chapter unless otherwise noted:

n Number of cases (objects) m (^) Number of variables p (^) Number of dimensions

For variable j, (^) j = 1, K,m h (^) j n-vector with categorical observations

k (^) j Number of categories (distinct values) of variable^ j

G (^) j Indicator matrix for variable j, of order n ×k (^) j

The elements of G (^) j are defined as i = 1 , K , n ; r = 1 , K,k (^) j

g

i r j

1 6j ir i r j

% & '

when the th object is in the th category of variable when the th object is not in the th category of variable

M (^) j Binary, diagonal^ n^ ×^ nmatrix

The diagonal elements of M (^) j are

m

i k j ii i k

j

1 6 j

% & '

when the th observation is within the range [ when the th observation is outside the range [

, ]
, ]

D (^) j Diagonal matrix containing the univariate marginals; that is, the column sums of G (^) j

The quantification matrices and parameter vectors are:

X Object scores, of order n ×p

Y j Multiple category quantifications, of order k (^) j ×p

y (^) j Single category quantifications, of order k (^) j

a (^) j Variable weights (equal to component loadings) of order^ p

Q (^) Transformed data matrix of order n × mwith columns q (^) j = G y j j

Y Collection of multiple and single category quantifications

Note: The matrices G (^) j , M (^) j , and D (^) j are exclusively notational devices; they are stored in reduced form, and the program fully profits from their sparseness by replacing matrix multiplications with selective accumulation.

Objective Function Optimization

The PRINCALS objective is to find object scores X and a set of Y (^) j (for j = 1, K ,m) — the underlining indicates that they are possibly restricted—so that the function

σ 1 X Y ; 6 = 4 X − G Y (^) 9 4 X G Y 9

  

 

1 m∑ (^) j tr j (^) j Mj j (^) j

is minimal, under the normalization restriction X M X ′ (^) ∗ =mn I , where the matrix

M (^) ∗ = (^) ∑ M j j

, and I is the p × p identity matrix. The inclusion of M (^) j in

σ 1 X Y ; 6 ensures that there is no influence of data values outside the range [ , 1 k (^) j ], which may be really missing or merely regarded as such; M ∗ contains the number of “active” data values for each object. The object scores are also centered; that is, they satisfy u M X ′ (^) ∗ = 0 , with u denoting an n-vector with ones.

(3) Orthonormalization

(4) Update category quantifications

(5) Convergence test: repeat (2)–(4) or continue

(6) Rotation

The first time (for the initial configuration) initialization (a) described below is used and all single variables are temporarily treated as single numerical. Multiple nominal variables are treated as multiple nominal. The second time (for the final configuration) initialization (b) is used. Steps (1) through (6) are explained below.

(1) Initialization

(a) The object scores X are initialized with random numbers, which are

normalized so that u M X ′ (^) ∗ = 0 and X M X ′ (^) ∗ =mn I , yielding

X. For multiple variables, the initial category quantifications are obtained as

Y (^) j = D −j 1 G X^ ′j. For single variables, the initial category quantifications are defined as the first k (^) j successive integers, normalized so that u D y ′ (^) j ~^ j= 0 and ~ y D y^ ′j (^) j ~j =n , and

the initial variable weights are calculated as the vector ~^

a (^) j = X G y ′ (^) j j, rescaled to unit length.

(b) All relevant quantities are copied from the results of the first cycle.

(2) Update object scores

First, the auxiliary score matrix Z is computed as

Z ← (^) ∑ M G Y j j j j

and centered with respect to M ∗ :

~ Z ← (^) < M (^) ∗ − 1 M uu M (^) ∗ ′ (^) ∗ u M u ′ ∗ (^) 6 A Z.

These two steps yield locally the best updates when there are no orthogonality constraints.

(3) Orthonormalization

The orthonormalization problem is to find an M ∗ -orthonormal X +^ that is closest

to

Z in the least squares sense. In PRINCALS, this is done by setting

X +^ ← m1 2 M^ (^) ∗−^ 1 2^ GRAM M (^) ∗−1 2 Z

4 9

which is equal to the genuine least squares estimate up to a rotation—see (6). The

notation GRAM( ) is used to denote the Gram-Schmidt transformation (Björk and

Golub, 1973).

(4) Update category quantifications; loop across variable j = 1, K , m

(a) For multiple nominal variables, the new category quantifications are computed as:

Y (^) j^ + = D −j 1 G X^ ′j

(b) For single variables, first an unconstrained update is computed in the same way: ~ Y (^) j = D −j 1 G X ′j +

Next, one cycle of an ALS algorithm (De Leeuw et al., 1976) is executed for computing a rank-one decomposition of

Y j , with restrictions on the left-hand vector. This cycle starts from the previous single quantifications ~ y (^) j with

a^ +j = Y D y j′ j j

When the current variable is numerical, we are ready; otherwise we compute

y^ ∗j = Y a j +j

Now, when the current variable is single nominal you can simply obtain y^ +j^ by

normalizing y^ ∗j^ in the way indicated below; otherwise the variable must be ordinal, and you have to insert the weighted monotonic regression process

y^ ∗j ← WMON4 9 y ∗j

which make y^ ∗j^ monotonically increasing. The weights used are the diagonal elements of D (^) j , and the subalgorithm used is the up-and-down-blocks minimum violators algorithm (Kruskal, 1964; Barlow et al., 1972). The result is normalized:

y +j n y ∗j y (^) j∗ D y^ j ∗j^

− = 1 2^ ′

1 2 4 9

Finally, we set

Y^ +j = y a +j ′j+

p n k (^) j m m m j J

max =^ min^ −^ ,^ + max^ , max^ ,





 





 





 





 

% &

K

'

K

( )

K

∈ K

(^1 16) ∑ 2 2 1 1 0 1 267 ,

where m 1 is the number of multiple variables with no missing values, m 2 is the number of single variables, and J is an index set recording which variables are multiple. Although the number of nontrivial dimensions may be less than pmax when m = 2 , PRINCALS does allow dimensionalities all the way up to pmax. When, due to empty categories in the actual data, the rank deteriorates below the specified dimensionality, the program stops.

Marginal Frequencies

The frequencies table gives the univariate marginals and the number of missing values (that is, values that are regarded as out of range for the current analysis) for each variable. These are computed as the column sums of D (^) j and the total sum of M (^) j.

Fit and Loss Measures

When the HISTORY option is in effect, the following fit and loss measures are reported: (a) Total fit. This is the quantity TFIT defined in (5).

(b) Total loss. This is σ 1 X Y ; 6 , computed as the sum of multiple loss and single loss defined below. (c) Multiple loss. This measure is computed as

TMLOSS = p − m (^) ∑ tr ′j j j j

1 Y D Y

(d) Single loss. This measure is computed only when some of the variables are single:

SLOSS = tr ′ + ′ ∉ ∉

1 m (^) ∑ j j j ∑ j J

j j j J

Y D Y a a

Eigenvalues and Correlations between Optimally Scaled Variables

If there are no missing data, the eigenvalues printed by PRINCALS are those of 1 m R Q 1 6, where R Q 1 6 denotes the matrix of correlations between the optimally scaled variables in the columns of Q. For multiple variables, q (^) j is defined here as G y j (^) 1 6j 1. When all variables are single or when (^) p = 1 , R Q 1 6 itself is also printed. If there are missing data, then the eigenvalues are those of the matrix with elements q M ′j (^) ∗−^1 q^1 , which is not necessarily a correlation matrix, although it is positive semidefinite.

References

Barlow, R. E., Bartholomew, D. J., Bremner, J. M., and Brunk, H. D. 1972. Statistical inference under order restrictions. New York: John Wiley & Sons, Inc.

Björk, A., and Golub, G. H. 1973. Numerical methods for computing angles between linear subspaces. Mathematics of Computation, 27: 579–594.

De Leeuw, J., and Van Rijckevorsel, J. 1980. HOMALS and PRINCALS—Some generalizations of principal components analysis. In: Data Analysis and Informatics, E. Diday et al, eds. Amsterdam: North-Holland.

De Leeuw, J., Young, F. W., and Takane, Y. 1976. Additive structure in qualitative data: an alternating least squares method with optimal scaling features. Psychometrika, 31: 33–42.

Gifi, A. 1981. Nonlinear multivariate analysis. Leiden: Department of Data Theory.

Gifi, A. 1985. PRINCALS. Leiden: Department of Data Theory, Internal Report UG-85–02.

Kruskal, J. B. 1964. Nonmetric multidimensional scaling: a numerical method. Psychometrika, 29: 115–129.

Van Rijckevorsel, J., and De Leeuw, J. 1979. An outline of PRINCALS. Leiden: Internal Report RB 002–’79, Department of Data Theory.