Averaged one-dependence estimators

From HandWiki
Revision as of 20:48, 20 December 2020 by imported>Unex (url)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Averaged one-dependence estimators (AODE) is a probabilistic classification learning technique. It was developed to address the attribute-independence problem of the popular naive Bayes classifier. It frequently develops substantially more accurate classifiers than naive Bayes at the cost of a modest increase in the amount of computation.[1]

The AODE classifier

AODE seeks to estimate the probability of each class y given a specified set of features x1, ... xn, P(y | x1, ... xn). To do so it uses the formula

[math]\displaystyle{ \hat{P}(y\mid x_1, \ldots x_n)=\frac{\sum_{i:1\leq i\leq n \wedge F(x_i)\geq m} \hat{P}(y,x_i)\prod_{j=1}^n\hat{P}(x_j\mid y,x_i)}{\sum_{y^\prime\in Y}\sum_{i:1\leq i\leq n \wedge F(x_i)\geq m} \hat{P}(y^\prime,x_i)\prod_{j=1}^n\hat{P}(x_j\mid y^\prime,x_i)} }[/math]

where [math]\displaystyle{ \hat{P}(\cdot) }[/math] denotes an estimate of [math]\displaystyle{ P(\cdot) }[/math], [math]\displaystyle{ F(\cdot) }[/math] is the frequency with which the argument appears in the sample data and m is a user specified minimum frequency with which a term must appear in order to be used in the outer summation. In recent practice m is usually set at 1.

Derivation of the AODE classifier

We seek to estimate P(y | x1, ... xn). By the definition of conditional probability

[math]\displaystyle{ P(y\mid x_1, \ldots x_n)=\frac{P(y, x_1, \ldots x_n)}{P(x_1, \ldots x_n)}. }[/math]

For any [math]\displaystyle{ 1\leq i\leq n }[/math],

[math]\displaystyle{ P(y, x_1, \ldots x_n)=P(y, x_i)P(x_1, \ldots x_n\mid y, x_i). }[/math]

Under an assumption that x1, ... xn are independent given y and xi, it follows that

[math]\displaystyle{ P(y, x_1, \ldots x_n)=P(y, x_i)\prod_{j=1}^n P(x_j\mid y, x_i). }[/math]

This formula defines a special form of One Dependence Estimator (ODE), a variant of the naive Bayes classifier that makes the above independence assumption that is weaker (and hence potentially less harmful) than the naive Bayes' independence assumption. In consequence, each ODE should create a less biased estimator than naive Bayes. However, because the base probability estimates are each conditioned by two variables rather than one, they are formed from less data (the training examples that satisfy both variables) and hence are likely to have more variance. AODE reduces this variance by averaging the estimates of all such ODEs.

Features of the AODE classifier

Like naive Bayes, AODE does not perform model selection and does not use tuneable parameters. As a result, it has low variance. It supports incremental learning whereby the classifier can be updated efficiently with information from new examples as they become available. It predicts class probabilities rather than simply predicting a single class, allowing the user to determine the confidence with which each classification can be made. Its probabilistic model can directly handle situations where some data are missing.

AODE has computational complexity [math]\displaystyle{ O(ln^2) }[/math] at training time and [math]\displaystyle{ O(kn^2) }[/math] at classification time, where n is the number of features, l is the number of training examples and k is the number of classes. This makes it infeasible for application to high-dimensional data. However, within that limitation, it is linear with respect to the number of training examples and hence can efficiently process large numbers of training examples.

Implementations

The free Weka machine learning suite includes an implementation of AODE.

See also


References

  1. Webb, G. I., J. Boughton, and Z. Wang (2005). "Not So Naive Bayes: Aggregating One-Dependence Estimators". Machine Learning, 58(1), 5–24. doi: 10.1007/s10994-005-4258-6