Weighted majority algorithm (machine learning)

Method of using a pool of algorithms


title: "Weighted majority algorithm (machine learning)" type: doc version: 1 created: 2026-02-28 author: "Wikipedia contributors" status: active scope: public tags: ["machine-learning-algorithms"] description: "Method of using a pool of algorithms" topic_path: "technology/algorithms" source: "https://en.wikipedia.org/wiki/Weighted_majority_algorithm_(machine_learning)" license: "CC BY-SA 4.0" wikipedia_page_id: 0 wikipedia_revision_id: 0

::summary Method of using a pool of algorithms ::

In machine learning, weighted majority algorithm (WMA) is a meta learning algorithm used to construct a compound algorithm from a pool of prediction algorithms, which could be any type of learning algorithms, classifiers, or even real human experts.{{cite journal | last1 = Littlestone | first1 = N. | last2 = Warmuth | first2 = M. | title = The Weighted Majority Algorithm | journal = Information and Computation | volume = 108 | issue = 2 | date = 1994 | pages = 212–261 | doi=10.1006/inco.1994.1009| doi-access = free | url = http://www.dklevine.com/archive/refs4575.pdf | last1 = Littlestone | first1 = N. | last2 = Warmuth | first2 = M. | title = Weighted Majority Algorithm | conference = IEEE Symposium on Foundations of Computer Science. | date = 1989}} The algorithm assumes that we have no prior knowledge about the accuracy of the algorithms in the pool, but there are sufficient reasons to believe that one or more will perform well.

Assume that the problem is a binary decision problem. To construct the compound algorithm, a positive weight is given to each of the algorithms in the pool. The compound algorithm then collects weighted votes from all the algorithms in the pool, and gives the prediction that has a higher vote. If the compound algorithm makes a mistake, the algorithms in the pool that contributed to the wrong predicting will be discounted by a certain ratio β where 0

It can be shown that the upper bounds on the number of mistakes made in a given sequence of predictions from a pool of algorithms \mathbf{A} is

:\mathbf{O(log|A|+m)}

if one algorithm in \mathbf{x}_i makes at most \mathbf{m} mistakes.

There are many variations of the weighted majority algorithm to handle different situations, like shifting targets, infinite pools, or randomized predictions. The core mechanism remains similar, with the final performances of the compound algorithm bounded by a function of the performance of the specialist (best performing algorithm) in the pool.

References

::callout[type=info title="Wikipedia Source"] This article was imported from Wikipedia and is available under the Creative Commons Attribution-ShareAlike 4.0 License. Content has been adapted to SurfDoc format. Original contributors can be found on the article history page. ::

machine-learning-algorithms