Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7709645
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T00:54:50+00:00 2026-06-01T00:54:50+00:00

I was talking with someone about the Naive Bayes classifier from a mathematics point

  • 0

I was talking with someone about the Naive Bayes classifier from a mathematics point of view. We were talking about how if you multiply a lot of probabilities together, eventually primitive types like a float or a double would not be able to store the resulting value and it would just get turned into a zero.

P(x1)* P(x2) * … = a number too small for a computer = 0

The person I spoke with said that a “workaround” would be to take the log of the probabilities and just add them together like so.

log( P(x1) ) + log( P(x2) ) + …

I understand the advantage of taking the log of the probability, it increases the magnitude of the number so that it doesn’t “fall off”, but how is it that you can just add them together after that? Is it so that when you run Naive Bayes as long as you do it consistently for all classification “buckets” you can still find the greatest one at the end of the day?

Any explanations are appreciated. Thanks,

mj

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T00:54:51+00:00Added an answer on June 1, 2026 at 12:54 am

    Because log(a*b) = log(a) + log(b). It’s a property of logarithms.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Talking from a 'best practice' point of view, what do you think is the
When someone talks about a variables storage class specifier, what are they talking about?
I'm obviously not talking about a full solution, but just a good starting point
I was talking with someone about iPhone and Android apps and they said there
Ok so basically I am talking with someone about building a way for users
I saw somewhere someone talking about FileReader in JavaScript. What is it? What could
So anyways, I was talking to someone about PHP about deobfuscating PHP code and
Not quite programming, but someone here will know what I'm talking about and didn't
I've been talking with someone about the possibility of a iPhone development contract gig.
Talking about hibernate and others ORMs, the ORMs evangelists talk about SQL like the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.