Naive Bayes Classifier | Part 4 | Bayes Theorem in Probability — Transcript
Full transcript
- 0:00Next, we're going to discuss Bayes
- 0:01theorem.
- 0:03I guess
- 0:04Bayes theorem is a very, very important
- 0:06theorem in probability. And in fact,
- 0:08it's a very old theorem, but uh
- 0:101700s may uh Thomas Bayes made the
- 0:12theorem.
- 0:13And this theorem is very applicable. In
- 0:15fact, statistics make a whole field of
- 0:17statistics. This is called Bayesian
- 0:19statistics or Bayesian thinking.
- 0:21Okay? So, it's a great theorem, to be
- 0:23honest. And the best part is it's very
- 0:25easy to understand. It's very simple.
- 0:27And it's very applicable. Okay? In fact,
- 0:29if you remember
- 0:31Our algorithm is called Naive Bayes.
- 0:33Naive
- 0:34Bayes. So, to be honest
- 0:39The Bayes theorem implementation is We
- 0:41just take an assumption on the Bayes
- 0:44theorem and we get our algorithm, Naive
- 0:46Bayes.
- 0:49Let's understand what Bayes theorem is.
- 0:52Okay? So, if there are two events, A and
- 0:55B
- 0:56According to Bayes theorem
- 0:59Probability of A given B is equal to
- 1:03probability of B given A multiplied by
- 1:07probability of A divided by probability
- 1:10of
- 1:11B.
- 1:13Obviously, given
- 1:16P of B
- 1:17is not equal to zero.
- 1:20This is what Bayes theorem is. Okay? Or
- 1:23You have to in terms of which one is
- 1:24that. I'll quickly write it down. This
- 1:27is known as the posterior probability.
- 1:32This is known as the likelihood.
- 1:37This is known as
- 1:39the prior.
- 1:41And this is known as the evidence.
- 1:45Okay? Uh In general, it's not so good to
- 1:48be honest.
- 1:50It's not that important to remember
- 1:52these things.
- 1:55Uh
- 1:57Now, let's do one thing.
- 1:58Uh it's about discussion.
- 2:02But before that, let's actually prove
- 2:05Bayes' theorem.
- 2:09So,
- 2:10you already know by the definition of
- 2:12conditional probability, P of A given B
- 2:17is actually equal to P of A intersection
- 2:21B divided by P of
- 2:24P. Right? This is conditional
- 2:26probability.
- 2:29Uh
- 2:30you know this,
- 2:31uh that A intersection B is equal to B
- 2:34intersection A.
- 2:38A B. This is A intersection B. Basic set
- 2:41theory is going to come out of it like A
- 2:43intersection B will be equal to B
- 2:45intersection A.
- 2:46So, what if
- 2:49P of B given A?
- 2:52This would be equal to P of
- 2:54uh B intersection A divided by P of A.
- 3:00Right? And this could be written as P of
- 3:03A intersection B divided by P of A.
- 3:08Right? Replaced that here.
- 3:10Uh but just give me a second to
- 3:12rearrange the formula.
- 3:14P of A intersection B would become P of
- 3:18B given A multiplied by P of A.
- 3:21Rearranged that here.
- 3:23Now, this is equation one.
- 3:25This is equation two.
- 3:30P of A given B would become P of B given
- 3:35A multiplied by P of A divided by P of
- 3:39B.
- 3:40And this is
- 3:42Bayes' theorem.
- 3:44What is simple proof conditional
- 3:45probability of the rearrangement here?
- 3:50Now, see Bayes' theorem is super
- 3:52important or the naive Bayes' formula is
- 3:54here. with an example of maths and
- 3:56probability
- 3:58is just meaning these are just symbols.
- 4:00But just actual problem solve let's say
- 4:03email spam classifier
- 4:05you will actually notice behind the
- 4:06scenes Bayes theorem is just working. So
- 4:09just be patient. In the next video what
- 4:12we are going to do is we are going to
- 4:14solve a problem using Bayes theorem. So
- 4:17the real world problem
- 4:18or then you will understand things a lot
- 4:21better.
- 4:21Okay, so thanks for watching.
About this transcript
This page contains the full transcript of Naive Bayes Classifier | Part 4 | Bayes Theorem in Probability by CampusX, generated from the public captions YouTube serves with the video. The transcript has 557 words across 105 segments, with the original timestamps preserved so you can click any line to jump to that moment in the embedded player.
What you can do with it
Use the transcript to take notes, quote the speaker, build a study guide, generate a summary with ChatGPT or Claude via the YouTube Summary tool, or export it as a timed subtitle file with YouTube to SRT. You can also re-open it in the transcriber to translate the transcript into 100+ languages.
Free YouTube transcript tool
YouTube2Text is a free YouTube transcript generator — no signup, no daily limit. Paste any YouTube link and get the full transcript instantly, with timestamps, click-to-jump, translation to 100+ languages, AI prompts for ChatGPT, Claude, and Gemini, and exports to TXT, SRT, VTT, or Markdown.