Bayes’ Theorem
Transcript
Hi! This is Al, your probability and statistics instructor. Okay time to begin doing some probability. in this video i would like to talk about the uh following theorem the following result Bayes' theorem we are going to be uh revisiting this theorem in the future so that's why i gave this video the title Bayes' theorem part one okay we're going to play around with it again well to begin this introduction to Bayes' theorem we are going to solve a problem
that's a problem we are interested in solving okay there's uh an insurance company these guys have divided their policyholders into two different groups two mutually exclusive groups smokers and non-smokers it turns out that for a randomly chosen non-smoker the probability of dying during the year is 0.01 or one percent on the other hand for smokers the probability of dying during the year is five percent so the problem we want to solve is this
given that a policy holder has died what is the probability that the policy holder was a smoker since okay so just as we have been doing it lately let's use our fancy notation let us define our events of interest and translate the information from the problem into mathematical terms so our problem step number one let's uh define those events
s for smoker n for non smoker and since we're going to be using a capital s for the event smoker let me just remind you that we can use a different letter to refer to the entire sample space i don't want to have any sort of misunderstanding here s will be the sample space in this particular problem okay that omega that greek that capital greek O can also be used to represent the sample space
okay let's keep our translation let's go back to the information that we had we need those probabilities we need the probability for um dying when we need the probability of dying we need the probability of a smoker we need the probability of a non-smoker so on okay so ten percent of uh the of the company's life insurance policy holders are smokers so probability of s is ten percent which means that uh the probability of uh non-smokers is going to be the complement which means ninety percent right something else another
uh another important uh piece of information that we have here is that for each non-smoker right given that we have a non-smoker the probability of dying is one percent on the other hand if given the information that we have a smoker we have that the probability of dying is five percent okay so let's record that also here we need dying as an event so we said probability of being a smoker 10 percent probability of non-smoker 90
we also had that probability of um dying given smoker was five percent and probability of dying given non-smoker only one percent now
let's find out what's the probability that we want what is the probability that the policyholder was a smoker right but the thing is that it's a conditional probability it is not one of those regular probabilities given that a policyholder has died given that event what is the probability that the policy holder was a smoker so if we translate that what we have here is what we want is the probability of s given d
okay we have observed the occurrence of the event d what's the probability of s right solution here we go first this is what we want a conditional probability so a good starting point would be writing down the definition for that conditional probability right and from a previous video we know what's the formula for that conditional probability right let me remind you so by definition probability
of s given d equals probability of s and d divided by the probability of d makes sense probability of s and d divided by probability of d if we could find those two numbers the one at the top and the one at the bottom the one on the numerator the one on the denominator we're done okay so
we neither have the top part nor the bottom part so we have to find a way of finding those probabilities from the information that we've got okay note something we have these conditional probabilities and these conditional probabilities involve intersections right since we are interested in the probability of s and d the one that has those two ingredients those two events involved would be this makes sense
so let's use the definition in combination with this and see what happens okay okay let's write that down note that the probability of the given s is probability of d and s divided by the probability of d
but probability of d and s is the same as this right oh and this should be s probability of d and s is the same as probability of s and d okay then we what we are going to say is solving solving for this guy this is the one that we want the one at the top the intersection
oh what we have is probability of the given s times probability of s equals probability of s and d so probability of s
and d equals probability of d given s was 0.05 and probability of s 0.1 makes sense 0.05 times point one so we have the uh numerator we just have to find the denominator and then we're done
the denominator that we want is this the probability of d okay how do we find that guy well we will observe something observation the entire sample space equals the union of smokers and non smokers you guys agree something else note that s
the intersection between s and n equals the empty set so we have two events s and n that together the union equals the entire sample space and on the other hand the intersection s and n equals the empty set you remember that we have a special name for that sort of events we call them decompositions or partitions so s and n form a partition for the sample space interesting right okay so note that the uh denominator
that we are after is the uh event well the probability of the event d dying so we're going to do something here that at first looks kind of tricky but then you'll see oh yeah makes sense so we want the probability of d that's the bottom part uh d intersection between d and the sample space equals d you guys agree the intersection with the entire sample space it's going to be d okay on the other hand
we said that we could rewrite we could easily express the entire sample space in terms of those two events being a smoker or a non-smoker so the intersect s union n using uh distributive properties of union and intersection let me write this down what we have is probability of the in our section s and then union d
intersection okay make sense distributive properties here note something it can be shown that the intersection s and the intersection n are mutually exclusive
mutually exclusive and property three of probability functions remember that if you have if you want to find the probability of a union of mutually exclusive events then it's just the sum of these individual probabilities so what we have
is that the probability of d equals probability of d intersected with s plus probability of the intersect n okay make sense okay we are almost there we want these the probabilities of these two intersections to find the probability of d this one guess what we have already found it in terms of the information that we have right in terms of these conditional probabilities that we have so we apply the same trick that we applied for probability of
intersection between s and d for probability of intersection between d and n right and we are done right so this happens to be we already know this first term probability for that intersection is 0.05 times point 10 the other one will be the multiplication between the probability of uh dying given non-smoker times the probability of non-smoker right which is going to be 0.01 times 0.9
finally the probability that we want it which was this probability of s given the of smoker given dead will be this five percent times ten percent divided by this and if you do the math that turns out to be
which is 5 divided by 14 and if we use r 5 divided by 14 happens to be roughly 35 percent okay okay problem solved summary of what we just did so what we did is we discussed something very important here
base rule note that what we had initially as part of the information that we had was the probability of d given s but the one that we wanted was the probability of s given d so we wanted those two events to switch places we wanted to some people say we wanted to reverse that probability so when you want to reverse a probability like this you have to use Bayes' rule which is basically using a combination of the definition of a conditional probability to find the numerator of this expression and then using that trick
that decomposition that partition of the sample space and using again the definition of conditional probability to find the probability of these intersections okay this is a particular case an application of that rule of that important theory Bayes' rule and we're going to be using that theorem that rule when we're interested in reversing probabilities conditional probabilities make sense okay. So, that's it for now.
Take care see you next time. Keep working hard. Bye!

Ask anything
We've read this whole study set, so questions about it get the best answers.