Naive Bayes Classifier | Part 5 | Problem based upon Bayes Theorem — Transcript
Full transcript
- 0:01So, now let's do a sample problem using
- 0:03Bayes' theorem.
- 0:05So, let's say there is a factory.
- 0:10Let's say there is a factory. The
- 0:12factory, let's say, manufactures these
- 0:13markers, okay? And there are three
- 0:16machines in this factory.
- 0:18M1
- 0:21M2
- 0:24and M3.
- 0:26So, whatever is manufactured
- 0:34If all the data is available He didn't
- 0:36know the production all right. What is
- 0:38the 20%?
- 0:40M1 banana So, I got there are 100
- 0:43markers producing or manufacturing
- 0:45getting manufactured.
- 0:4720 out of those markers is made by M1.
- 0:5230%
- 0:57So,
- 1:03He didn't know the banana.
- 1:05What is my 5% manufacturing defect? What
- 1:08happened?
- 1:09You didn't know the banana. What is the
- 1:113% manufacturing defect? What happened?
- 1:13What is the banana?
- 1:15What is the 1% manufacturing defect?
- 1:17What happened? This is the data. Okay.
- 1:19So, I got it. Out of 120 banana What is
- 1:22the 5%? What happened? Okay. These are
- 1:24the 8 club over. Yeah, so I got it. What
- 1:27happened over? Okay, similarly
- 1:30What is the 3 club over? You didn't know
- 1:32the banana. What is the 8 club over?
- 1:34Okay.
- 1:38What is the question is this?
- 1:41This is the question.
- 1:43Question is
- 1:45He imagined
- 1:49When you randomly take marker with her
- 1:52And What you want to tell her you would
- 1:54defect it?
- 1:57It is defective.
- 1:58What is defective in the club?
- 2:00You have to tell me the probability
- 2:08I guess
- 2:10There are three different machines in a
- 2:12factory.
- 2:19Or other than that randomly example is a
- 2:21tell me
- 2:29Okay, and this is the problem that you
- 2:31have to solve.
- 2:32Now, if you think carefully
- 2:35First of all, you should always write to
- 2:37the bus guy guy here.
- 2:39So, I already know this P of M1
- 2:43is
- 2:45total
- 2:46divided by total
- 2:47so that is
- 2:501 by 5
- 2:5220 by 100 probability
- 2:54Similarly,
- 2:56probability of M2
- 2:59is
- 3:003 by 10
- 3:02And similarly, probability of M3 is
- 3:051 by 2
- 3:10Okay.
- 3:16P
- 3:18A cheese defective let's say I'm
- 3:21D signal defective only.
- 3:24So, you defective only probability given
- 3:29M1 You defective only probability given
- 3:32item M2 you defective only probability
- 3:34given item M3 so that
- 3:36So, I guess we can write that
- 3:37conditional probability so you can write
- 3:40it like this. Probability of defective
- 3:43given M1 is equal to 5 by 100 so you can
- 3:48write it like 1 by 20.
- 3:50Probability of D given M2
- 3:55is
- 3:56uh
- 3:593 by 100.
- 4:03And probability of
- 4:05uh
- 4:06M3 as in probability of D given
- 4:10M3 is equal to 1 by 100.
- 4:14Okay. So, you get all the probabilities.
- 4:16So, you get all the questions we have.
- 4:18Up to that important thing which is not
- 4:21important. It is about that.
- 4:22I mean randomly example draw here on the
- 4:24defective example.
- 4:25We need to find out the M3 from which it
- 4:28was made and it is a probability here.
- 4:30So, if you ask me, I would say I have to
- 4:33find out the probability of
- 4:35that item that we randomly draw drew out
- 4:38of the sample is from M3
- 4:42given it is defective.
- 4:46Given it was defective, was M3 made here
- 4:48or not, is the probability we need to
- 4:50find out.
- 4:50And by base theorem, you know this
- 4:53that this will be equal to probability
- 4:55of
- 4:57uh sorry, probability of defective given
- 5:02M3 multiplied by probability of
- 5:06M3 divided by probability of
- 5:09D.
- 5:10I guess base theorem you have
- 5:12probability of A given B is equal to
- 5:15probability of B given A multiplied by P
- 5:19of A divided by P of B.
- 5:23This is base theorem, right?
- 5:25I'm going to
- 5:26get these three things to get you to
- 5:28calculate the probability. And guess
- 5:29what, some of these two things are
- 5:30already here. You can totally see keep
- 5:34you want to seize just take that.
- 5:37Or you want to seize
- 5:40you want to seize that.
- 5:41There is only one thing that I need to
- 5:43calculate and that is this part.
- 5:48Probability of D.
- 5:50So basically, I have to find out
- 5:52uh
- 5:53I have to find out the overall data make
- 5:56my example draw
- 5:58to see the effective probability here.
- 6:00You want to show me I have to find out P
- 6:02of B.
- 6:04I'll put social media.
- 6:05How can I find out P of defective? We
- 6:07need to put the data in the total
- 6:08percent mild effective and you can see
- 6:10the data.
- 6:12Social media.
- 6:14Total defective mild out of the entire
- 6:17batch
- 6:18is basically coming from one of these
- 6:20machines. So don't you think you can
- 6:22write it like this?
- 6:23Probability of
- 6:25a defective piece is actually equal to
- 6:29probability of
- 6:31it being defective and coming from M1.
- 6:37Right?
- 6:38It's a lot of people I don't defective
- 6:40here
- 6:41or M1 set.
- 6:43Right?
- 6:44Plus probability of defective and coming
- 6:47from M2 plus probability of defective
- 6:51and coming from
- 6:53M3.
- 6:54Social media. It's so good English to
- 6:55read in the media you will actually
- 6:57understand the camera.
- 6:59Total defective only got probability is
- 7:01actually the summation of these three
- 7:03individual probabilities.
- 7:04Probability of a marker being defective
- 7:07and coming from M1. That is one way of
- 7:10getting a defective marker. Probability
- 7:12of being defective and coming from M2.
- 7:14That is the second way of getting a
- 7:15defective marker and probability of
- 7:17defective and coming from M3. This is
- 7:19the third way of getting a defective
- 7:20marker. So there are only three ways
- 7:22that I can get a defective marker in the
- 7:23something or whatever you have to leave
- 7:25here.
- 7:26It is I guess something you have to
- 7:27learn.
- 7:28Now, if you remember conditional
- 7:31probability
- 7:32uh we have to put out probability of A
- 7:36given B is actually equal to P A
- 7:39intersection B divided by P of B.
- 7:43What if I do this? B.
- 7:45What if I do this?
- 7:51probability of
- 7:54defective given
- 7:57M1
- 7:59multiplied by probability of
- 8:02M1
- 8:05plus probability of
- 8:08B
- 8:09given M2 multiplied by P of M2
- 8:14plus probability of B given
- 8:19M3 multiplied by probability of
- 8:22M3 So I'm going to PD calculate with the
- 8:25expression song and guess what?
- 8:31or you know PD
- 8:33will die or is the expression I just
- 8:35want to solve and guess
- 8:39using base theorem and conditional
- 8:40probability you're able to solve a
- 8:43difficult seeming a seemingly
- 8:47so easy
- 8:48Okay, so it will
- 8:52I guess for sure solve the problem. So
- 8:55thanks for watching.
About this transcript
This page contains the full transcript of Naive Bayes Classifier | Part 5 | Problem based upon Bayes Theorem by CampusX, generated from the public captions YouTube serves with the video. The transcript has 1,054 words across 208 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.