Implications of the Dirichlet Assumption for Discretization of Continuous Variables in Naive Bayesian Classifiers

  • Authors:
  • Chun-Nan Hsu;Hung-Ju Huang;Tzu-Tsung Wong

  • Affiliations:
  • Institute of Information Science, Academia Sinica, Nankang, Taipei City 115, Taiwan. chunnan@iis.sinica.edu.tw;Department of Computer and Information Science, National Chiao-Tung University, Hsinchu City 300, Taiwan. hungju@cis.nctu.edu.tw;Institute of Information Management, National Cheng-Kung University, Tainan City 701, Taiwan. tzutsung@mail.ncku.edu.tw

  • Venue:
  • Machine Learning
  • Year:
  • 2003

Quantified Score

Hi-index 0.00

Visualization

Abstract

In a naive Bayesian classifier, discrete variables as well as discretized continuous variables are assumed to have Dirichlet priors. This paper describes the implications and applications of this model selection choice. We start by reviewing key properties of Dirichlet distributions. Among these properties, the most important one is “perfect aggregation,” which allows us to explain why discretization works for a naive Bayesian classifier. Since perfect aggregation holds for Dirichlets, we can explain that in general, discretization can outperform parameter estimation assuming a normal distribution. In addition, we can explain why a wide variety of well-known discretization methods, such as entropy-based, ten-bin, and bin-log l, can perform well with insignificant difference. We designed experiments to verify our explanation using synthesized and real data sets and showed that in addition to well-known methods, a wide variety of discretization methods all perform similarly. Our analysis leads to a lazy discretization method, which discretizes continuous variables according to test data. The Dirichlet assumption implies that lazy methods can perform as well as eager discretization methods. We empirically confirmed this implication and extended the lazy method to classify set-valued and multi-interval data with a naive Bayesian classifier.