What is majority voting in Random Forest?

Updated May 17, 2026

Short answer

Majority voting selects the most common prediction from all trees.

Deep explanation

Each tree votes for a class, and the class with the highest votes is selected as final output.

Real-world example

Used in spam detection systems.

Common mistakes

  • Assuming trees are weighted equally in all cases.

Follow-up questions

  • Can voting be weighted?
  • Is voting used in regression?

More Random Forest interview questions

View all →