Skip to Content
Machine Learning for Business Analytics, 2nd Edition
book

Machine Learning for Business Analytics, 2nd Edition

by Peter C. Bruce, Mia L. Stephens, Galit Shmueli, Muralidhara Anandamurthy, Nitin R. Patel
May 2023
Beginner to intermediate
608 pages
18h 48m
English
Wiley
Content preview from Machine Learning for Business Analytics, 2nd Edition

8 THE NAIVE BAYES CLASSIFIER

In this chapter, we introduce the naive Bayes classifier, which can be applied to data with categorical predictors. We review the concept of conditional probabilities, then present the complete, or exact, Bayesian classifier. We next see how it is impractical in most cases, and learn how to modify it and instead use the “naive Bayes” classifier, which is more generally applicable.

Naive Bayes in JMP: Naive Bayes is only available in JMP Pro.

8.1 INTRODUCTION

The naive Bayes method (and, indeed, an entire branch of statistics) is named after the Reverend Thomas Bayes (1702–1761). To understand the naive Bayes classifier, we first look at the complete, or exact, Bayesian classifier. The basic principle is simple.

For each new record to be classified:

  1. Find all of the training records with the same predictor profile (i.e., records having the same predictor values).
  2. Determine what classes the records belong to and which class is most prevalent.
  3. Assign that class to the new record.

Alternatively (or in addition), it may be desirable to adjust the method so that it answers the question: “What is the propensity of belonging to the class of interest?” instead of “Which class is the most probable?” Obtaining class probabilities allows using a sliding threshold to classify a record as belonging to class i, even if i is not the most probable class for that record. This approach is useful when there is a specific class of interest that we want to identify ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Machine Learning for Business

Machine Learning for Business

Richard Nichol, Doug Hudgeon
Data Mining for Business Analytics

Data Mining for Business Analytics

Galit Shmueli, Peter C. Bruce, Peter Gedeck, Nitin R. Patel

Publisher Resources

ISBN: 9781119903833Purchase Link