A fast and simple algorithm for finding the modes of a multinomial distribution
W.T.J. White and
M.D. Hendy
Statistics & Probability Letters, 2010, vol. 80, issue 1, 63-68
Abstract:
Suppose a trial has r possible outcomes, with the i-th outcome having probability pi, and . The outcome of n independent trials can be described by the frequencies , , where outcome i was selected with frequency . A mode (there can be multiple modes) is an outcome with maximal likelihood over all possible outcomes. Despite the ubiquity of multinomial distributions in statistical applications, the best algorithm to date for finding modes has unknown computational complexity and highly variable performance in practice. It is also vulnerable to precision problems due to accumulated roundoff error. We propose a new algorithm, GreedyModeFind, for calculating the mode(s) of this distribution, given n and . GreedyModeFind is simple, efficient and numerically robust, requiring O(rlogr) time and O(r) space to find one mode. A concise representation of the full set of joint modes can be found for an additional time cost of O(rlogr). In practice this algorithm drastically improves on the performance of earlier algorithms. We provide a freely available C++ implementation of GreedyModeFind.
Date: 2010
References: View references in EconPapers View complete reference list from CitEc
Citations:
Downloads: (external link)
http://www.sciencedirect.com/science/article/pii/S0167-7152(09)00354-X
Full text for ScienceDirect subscribers only
Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.
Export reference: BibTeX
RIS (EndNote, ProCite, RefMan)
HTML/Text
Persistent link: https://EconPapers.repec.org/RePEc:eee:stapro:v:80:y:2010:i:1:p:63-68
Ordering information: This journal article can be ordered from
http://www.elsevier.com/wps/find/supportfaq.cws_home/regional
https://shop.elsevie ... _01_ooc_1&version=01
Access Statistics for this article
Statistics & Probability Letters is currently edited by Somnath Datta and Hira L. Koul
More articles in Statistics & Probability Letters from Elsevier
Bibliographic data for series maintained by Catherine Liu ().