Docsity

QUEST Algorithm - Mathematics and Statistics - Study Notes, Study notes of Mathematical Statistics

Toggle sidebar
bg1
1
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}.
m
X, m = 1, …, M The set of all predictor variables. A predictor can be continuous (including
ordinal categorical) or nominal categorical.
{}
N
n
nn y1
,=
=x= The whole learning sample.
)(t= The learning samples that fall in node t.
n
f The frequency weight associated with case n. Non-integral positive value is
rounded to its nearest integer.
f
N Total number of learning cases,
āˆ‘
∈
=
=nnf fN
jf
N, Total number of class j learning cases,
āˆ‘
∈
==
=nnnjf jyIfN )(
,
)(tN f Total number of learning cases in node t, āˆ‘
∈
=
)(
)(
tn nf ftN
=
)(
,tN jf Total number of class j learning cases in node t,
āˆ‘
∈
==
)(
,)()(
tn nnjf jyIftN
=
.
Ļ€
()j, j = 1, …, J Prior probability of Y = j, j = 1, …, J.
),( tjp , j = 1, …, J The probability of a case in class j and node t.
)|( tjp , j = 1, …, J The probability of a case in class j given that it falls into node t.
)|( jiC The cost of miss-classifying a class j case as a class i case. Clearly
0)|( =jjC .
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.
pf3
pf4
pf5

Partial preview of the text

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

  1. 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.
  2. 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.

  1. 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 )

  1. 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.