Bayesian probability

Bayesian probability figures out the likelihood that something will happen based on available evidence. This is different from frequency probability which deter…

Bayesian probability

Bayesian probability figures out the likelihood that something will happen based on available evidence. This is different from frequency probability which determines the likelihood something will happen based on how often it occurred in the past.

You might use Bayesian probability if you don't have information on how often the event happened in the past.

Example

As an example, say you want to classify an email as "spam" or "not spam". One thing you know about this email is that it has an emoji in the subject line. Say it's the year 2017, and 80% of the emails you got with emoji in them were spam. So you can look at an email with emoji in the subject and say it's 80% likely to be spam.

But if only 1% of your emails were spam and 80% of the emojis were spam, that's different than if half your emails are spam and 80% of emoji emails were spam.

Then you can use Bayes's Theorem to determine one probability of whether this email is spam:

p (is_spam | contains_emoji) = [ p(contains_emoji | is_spam) * p(is_spam) ] / p(contains_emoji)

P(xy) = P(xy) * Px / Py


Content Disclaimer

Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.

  1. The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
  2. There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
  3. It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
  4. Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
  5. Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.