Machine Learning - Probability and Counting Rules - Conditional Probability
17K views
Oct 17, 2024
Machine Learning - Probability and Counting Rules - Conditional Probability https://www.tutorialspoint.com/market/index.asp Get Extra 10% OFF on all courses, Ebooks, and prime packs, USE CODE: YOUTUBE10
View Video Transcript
0:00
In this session, we are discussing a very important topic that is conditional probability
0:06
Now, what is the conditional probability? When the outcome or occurrence of the first event affects the outcome or occurrence of the second event
0:15
in such way that the probability is changed. The events are said to be dependent events
0:24
Two events will be dependent if the probability of occurrence of the first event
0:30
affects the probability calculation of occurrence of the second event. If it is so, then you can say that
0:35
two events are dependent. The conditional probability of an event B in relationship to an event
0:44
A is the probability that event B occurs after event A has already occurred. So the notation
0:53
for the conditional probability is probability of BA, such that A has occurred
1:00
already. So, that means we are calculating the probability of occurrence of B after the
1:07
event A has occurred. So, when the event A has occurred, that will affect the calculation
1:13
of the probability of event B. So, probability of event B given event A. So when two events
1:22
are dependent, the probability of both occurring can be expressed in this way. That means probability
1:29
of A and B is equal to probability of A into probability of B given A So in this way you can write this one
1:40
So when two events are dependent, the probability of both occurring will become this one
1:46
So now let us go for one better understanding through some examples and all
1:52
But at first, we are considering this very example. There were five bugleries reported in 2003, 16 in 2004, 23, 232, in 2005
2:05
If a researcher wishes to select a random two bugleries to further investigation, find
2:11
the probability that both will be occurring on the same year, that is 2004
2:18
In this case, the events are dependent, and since the researcher wishes to investigate two
2:25
distinct cases, hence the first case is selected and not replaced. So now we are considering this one, so probability of C1 and C2 is equal to probability
2:37
of C1 into probability of C2 for given C1. So here we can write in this way, so 16 by 53, why 53
2:48
Because if you go on adding this respective 5 plus 16 plus 32, we are going to get here 53
2:55
So, 16 by 53, because we are interested to select two cases, buglery cases for the year 2004
3:02
So that why 2004 was having 16 number of bugleries So 16 by 53 into 15 by 52 So if you go on multiplying them we are going to get this respective value So this is known as this is known as the
3:21
conditional probability. So I think the previous slide is clear to us, and we have implemented
3:27
the same in this respective example. The probability that the second event B occurs given that
3:35
the first event A has occurred can be found by dividing the probability that both event occurred
3:43
by the probability that the first event has occurred. The formula can be written in this way
3:50
So, this is the respective formula whichever we are going to get finally. But let us derive
3:56
this formula. So from where you can derive? Because already we are having this one. This
4:01
formula we are already having. So, P of A and a. and b is equal to p of a into probability of b given a so we have written that one that is p of
4:14
a and b is equal to p of a into p of b given a now on the both side we are just dividing this one
4:23
using probability of occurrence of event a on the both side so now they will cancel out ultimately
4:29
we are remaining with the same with the value with this particular expression which we wrote here so in the
4:35
next problem we shall be applying this respective formula. So responses obtained on a survey question as below So male answers given yes and no total is this and female given the answers yes or no total is this So this number of total yes this number
4:54
of total no, and this is the total number of response that is 100. Find the probability that
5:02
the respondent has, was a male given that the respondent answered no. So let me repeat
5:10
the problem once again. Find the probability that the respondent was a male given that the
5:17
respondent answered no. So, the probability is to find probability of male given the answer
5:25
no in this way. We are writing this one. So, that is probability of male given the answer
5:31
no. So, now it can be written in this way. It is already we have written. That is probability
5:37
of p and a by probability of a. So, we have written the same thing. So, probability of
5:45
n and m by probability of n. So, what is probability of n and m at the same time, N
5:52
and m will be true? In that case, male and no. So, here we are getting this one as
5:57
18. So, 18 by 100. And probability of no, here the sum is 60. So 60 by 100. If you go
6:05
on doing the simplification, the probability does obtain is 3 by 10. So, in this way
6:11
we have explained with some examples that how this conditional probability can be calculated
6:18
for a given problem. Thanks for watching this video
#Computer Science
#Machine Learning & Artificial Intelligence
#Statistics