Probablistic Equations
Joint Probability
Marginalization or Total Probability Theorem
When variable b
is dependent/independent on variable a
then we have:
Here we say the distribution is marginalized wrt to distribution .
Note that are disjoint for
Marginalization as Expected Value
Intuitively, the marginal probability of X is computed by examining the conditional probability of X given a particular value of Y, and then averaging this conditional probability over the distribution of all values of Y.
This follows from the definition of expected value (after applying the law of the unconscious statistician)
Conditional Probability
i.e "If I know B is the case, then what is the probability that A is also the case"
To understand the intuition behind the concept of conditional probability, note that if B has occurred then we know that the selected ω belongs to B. Therefore, when evaluating A, one should ignore all ω’s that are not in B. Thus, a revised measure of the likeliness of A should depend on P(A ∩ B). Intuitively this is equivalent to reducing the effective sample space from Ω to B ⊂ Ω. However, according to the second axiom of probability, the total probability measure must be equal to one. Hence, we re-scale P(A ∩ B) by P(B) to obtain P(Ω|B) = P(B|B) = 1.
Example: Consider rolling a dice example: Ω = {1, 2, . . . , 6}. Let A = {6} and B = {2, 4, 6}. In this example, the unconditional probability of rolling a six is P(A) = 1/6. Now suppose you know that a player rolled an even number, however, you do not know what number exactly. In that case, you can update the probability of rolling a six to P(A|B) = P(A ∩ B)/P(B) = P({6})/P({2, 4, 6}) = 1/3.
There is one more way to express conditional probability, let me take an to explain it. Suppose you have to tell if a person is man or women given he/she have long hair. How would you calculate that. You are having information about ratio of male to female and percentage of long hair in each of gender i.e you have and we have to find , note that , hence finding anyone will suffice. Using Bayes Theorem:
This shows that is the just the ratio of women with long here to the total people with long hair.
Bayes Theorem/ Conditional Probability
Using joint probability equation:
A common scenario for applying the Bayes Rule formula is when you want to know the probability of something “unobservable” given an “observed” event.
Considering conditionality in Bayes theorem, let's say that we condition the probability on some event . So it is basically probability of given (conditioned on )now. Now will just conditional the every probability on in above equation. So we get:
Also, using total probability theorem
Bayes with Relative Probabilities
There are times when we would like to use Bayes Theorem to update a belief, but there is no way to calculate the probability of the event observed, P(F). All hope is not lost. In such situations we can still calculate the relative probability of events. For example, imagine we would like to answer the question, is even A or event B more likely given an observation F. We can express this mathematically as calculating whether P(A|F)/P(B|F) is greater than or equal to 1. Both of those terms can be expanded using Bayes, and when they are expanded the P(F) term cancels out:
Distributing two variables over Third Variable
Event independence
When events and are independent of each other, then
Conditional Independence
In this, two event and are indepentent given some event , i.e if you know the value of then and become independent of each other which initially they were not. Note: Coniditional Indpendence doesn't imply normal independence.
Chain Rule of Probability
Marginalization of Conditional Probability
Breaking Independence
But I wanted to pass on this surprising insight so that you have a more full understanding of probability. If two events E and F are independent, it is possible that there exists another event G such that E|G is no longer independent of F|G. As an example, Let’s say a person has a fever (G) if they either have malaria (E) or have an infection (F). We are going to assume that getting malaria (E) and having an infection (F) are independent: knowing if a person has malaria does not tell us if they have an infection. Now, a patient walks into a hospital with a fever (G). Your belief that the patient has malaria, given that they have a fever, P(E|G), is high and your belief that the patient has an infection given that they have a fever, P(F|G), is high. Both explain the fever. Interestingly, at this point in time (conditioned on G), given our knowledge that the patient has a fever, gaining the knowledge that the patient has malaria will change your belief the patient has an infection! The malaria explains why the patient has a fever, and so the alternate explanation becomes less likely. The two events (which were previously independent) are dependent now that we have conditioned on the patient having a fever.
Resources
Last updated