Download QUEST Algorithm - Mathematics and Statistics - Study Notes and more Study notes Mathematical Statistics in PDF only on Docsity!
QUEST Algorithm
This document describes the tree growing process of the QUEST algorithm. QUEST is proposed by Loh and Shih (1997), and stands for Quick, Unbiased, Efficient, Statistical Tree. It is a tree-structured classification algorithm that yields a binary decision tree. A comparison study of QUEST and other algorithms was conducted by Lim et al (2000).
Notations
Y The dependent variable, or target variable. It has to be nominal categorical. If Y is categorical with J classes, its class takes values in C = {1, ā¦, J }.
X m , m = 1, ā¦, M
The set of all predictor variables. A predictor can be continuous (including ordinal categorical) or nominal categorical.
N
= = x n , y nn = 1
The whole learning sample.
=( t ) The learning samples that fall in node^ t.
f n
The frequency weight associated with case n. Non-integral positive value is rounded to its nearest integer.
N f Total number of learning cases, ā
ā
n =
Nf fn
N f , j Total number of class j learning cases, ā
ā
n =
N f , j fnI ( yn j )
N f ( t ) Total number of learning cases in node t , ā
ā
()
n t
N f t fn
= N (^) f , j ( t ) Total number of class j learning cases in node t ,
ā
()
, (^ ) ( )
n t
N f j t fnI yn j
=
.
Ļ ( ) j ,^ j^ = 1, ā¦,^ J^ Prior probability of^ Y^ =^ j ,^ j^ = 1, ā¦,^ J.
p ( j , t ), j = 1, ā¦, J The probability of a case in class^ j^ and node^ t.
p ( j | t ), j = 1, ā¦, J The probability of a case in class^ j^ given that it falls into node^ t.
C ( i | j ) The cost of miss-classifying a class^ j^ case as a class^ i^ case. Clearly
C ( j | j )= 0.
QUEST Tree Growing Process
The QUEST tree growing process consists of the selection of a split predictor, selection of a split point for the selected predictor, and stopping. In this algorithm, only univariate splits are considered.
Selection of split predictor
- For each continuous predictor X , perform an ANOVA F test that tests if all the different classes of the dependent variable Y have the same mean of X , and calculate the p -value according to the F statistics. For each categorical predictor, perform a Pearsonās chi- square test of Y and X ās independence, and calculate the p -value according to the chi- square statistics.
- Find the predictor with the smallest p -value and denote it
X.
3. If this smallest p -value is less than α / M , where α ā( , )0 1 is a user specified level of
significance and M is the total number of predictor variables, predictor X * is selected
as the split predictor for the node. If not, go to 4.
- If this smallest p -value is greater than or equal to α / M , then
- For each continuous predictor X , compute a Leveneās F -statistic based on the absolute deviation of X from its class mean to test if the variances of X for different classes of Y are the same, and calculate the p -value for the test.
- Find the predictor with the smallest p -value and denote it as **
X.
- If this smallest p -value is less than α /( M + M 1), where M 1 is the number of
continuous predictors, X **is selected as the split predictor for the node. Otherwise,
this node is not split.
ANOVA F test
Suppose, for node t , there are Jt classes of dependent variable Y. The F -statistic for a
continuous predictor X is given by
( ()) ( () )
()
( )^2
1
() 2 ,
f t n t
y n n
J
j
t
j fj X
f x x t N t J
N t x t xt J
F
n
t
ā
ā
ā
=
=
where
,
() ()
N t
f xI y j
x t
fj
n t
n n n j
ā ā
= ,
()
N t
f x
xt
f
n t
ā n n ā
= .
Its corresponding p -value is given by
pX = Pr ( F ( Jt ā 1 , Nf ( t )ā Jt )> FX )
- Group classes of dependent variable Y into two super-classes. If there are only two classes of Y , go to step 2. Otherwise, calculate the sample mean of X for each class of Y. If all class means are identical, the class with the most cases is gathered as super-class A and the other classes as super-class B. If there are two or more classes with the same maximum number of cases, the one with the smallest class index j is chosen to form A and the rest to B. If not all the class means are identical, a k -means clustering method, with the initial cluster centers set at the two most extreme class means, is applied to class means to divide classes of Y into two super-classes: A and B.
Let x A and s A^2 denote the sample mean and variance for super-class A , x B and s B^2 the
sample mean and variance for super-class B.
2. If min( s^2 A^ , s^2 B )= 0 , order the two super-classes by their variance in increasing order
and denote the variances by s 12 (^) ⤠s 22 , and the corresponding means by x 1 (^) , x 2. Let ε be a very small positive number, say ε = 10 ā^12.
If x^1^^ <^ x^2 , d^ =^ x^1 (^1 +^ ε). Else, d^ =^ x^1 (^1 ā^ ε).
3. If min( sA^2 , sB^2 )ā 0 , quadratic discriminant analysis (QDA) is applied to determine the
split point d. QDA assumes that X follows a normal distributions in each super-class with the calculated sample mean and variance. The split point is among the roots that make
probability Pr( x , A | t )= Pr( x , B | t )for node t , where
2
exp
Pr( , | ) ( | ,) ( | ) ( | )
A
A
A
s
x x
s
x A t P x AtP A t P A t
Ļ
with
ā ā
ā ā ā
j A j
j A p jt
p jt
p A t p j t
f j
f j
N
jN t
p jt
,
Ļ
Solving P ( X , A | t )= P ( X , B | t ) is equivalent to solving the following quadratic
equation
ax^2^ + bx + c = 0 ,
where
2 2 a = sA ā s B , ( )
b = xA sB ā xBsA ,
A
B B A A B A B
pB t s
p A t s
c x s x s ss
22 22 log
2 2 2
If there is only one real root, it is chosen to be the split point, provided this yields two non-
empty nodes. If there are two real roots, choose the one that is closer to x A , provided this
yields two non-empty nodes. Otherwise use the mean ( xA + xB )/ 2 as split point.
Note: In step 3, the prior probability distribution for the dependent variable is needed. When user specified costs are involved, the altered priors can be used to replace the priors
(optional). The altered prior is defined as Ļ ā²( j )=
C j j C j j j
ā Ļ
, where C ( j ) = (^) ā i (^) C i j ( | ).
Nominal splitting predictor
If the selected predictor variable X is nominal and with more than two categories (if X is binary, the split point is clear), QUEST first transforms it into a continuous variable (call it ξ ) by assigning the largest discriminant coordinates to categories of the predictor. QUEST then applies the split point selection algorithm for continuous predictor on ξ to determine the split point.
Transform a categorical predictor into a continuous predictor
Let X be a nominal categorical predictor taking values in the set { b 1 , ā¦, b (^) I }. Transform X into a continuous variable ξ such that the ratio of between-classes to within-classes sum squares of ξ is maximized (the classes here refer to the classes of dependent variable). The details are as following.
- Transforms each value x of X in = into an I -dimensional dummy vector v = ( v 1 , ā¦, vI )ā,
where
0 otherwise
1 i
i
x b
v.
- Calculate the overall and class j mean of ν.
f
n
n n
N
ā f
v
v ,
f j
n
n n n j
N
f I y j
,
()
ā ( ) ā
v
v.
- Calculate the following I Ć I matrices.
ā
J
j
j j
Nf j
1
() ()
B , ( v v )( v v )
ā ā
n =
T f n ( v n v )( v n v )
Reference
Lim, T. S., Loh, W. Y. and Shih, Y. S., 2000. A Comparison of Prediction Accuracy, Complexity, and Training Time of Thirty-three Old and New Classification Algorithms. Machine Learning, 40, 2000.
Loh, W. Y. and Shih, Y. S., 1997. Split selection methods for classification trees. Statistica Sinica , Vol. 7, p. 815 - 840.