Probability
Abstract¶
Here are a few interesting problems that highlight non-trivial aspects of probability.
Definitions¶
Probability aims to put a numerical value on how likely it is for different events to occur; it is a number between 0 and 1, where 0 means it will never occur and 1 means it will occur with certainty.
The probability of outcome occurring can therefore be denoted as
If the event either happens or does not with certainty, then the probability that the event does not occur is given by
Marginal Probability¶
Consider now two events, and . The probability that event occurs independently of event , denoted , is called the marginal probability of . The marginal probability of event is then .
Joint Probability¶
The probability of both event and event occurring is called the joint probability, which is denoted
Conditional Probability¶
The probability of event occurring, given that event has already occurred, is called the conditional probability, and is denoted
Independent Events¶
Events and are independent if the occurrence of does not effect the probability of occurring.
In this case, the following relationship between the marginal, joint and conditional probabilites apply:
Mutual Exclusivity¶
Events and are mutually exclusive if they cannot both occur at the same time.
In this case, the joint probability of the two events, that is the probability that they both occur, must be zero:
Probability Equations¶
Here are some relationships between the marginal, joint and conditional probabilities.
Chain Rule of Probability¶
The chain rule of probability relates the marginal, joint and conditional probabilites of events and as
meaning that the probability of both event and occurring is equal to the probability of event occurring given event has occurred, multiplied by the probability that event occurs.
The rule extends to more events too. Consider now a third event, . It then holds that
where is the joint probability of events and occurring; is the joint probability of events and occurring, and is the probability of event occurring given that event and have occurred.
Bayes’ theorem¶
Bayes’ theorem relates the marginal distribution to as
It is commonly used to update the probability that an event will occur when some additional piece of evidence in the form of event has occurred.
Note, Bayes’ theorem arises from that fact the chain rule applies equally for both and , such that
Equating these two gives Bayes’ rule.
Alternative Form of Bayes’ theorem
From the chain rule it holds that
As noted above, it also follows that
Now, denoting event not occurring by , it holds that
Putting this together, one gets that
Probability Examples¶
The problems presented here were discussed during a Bristol Quantum Information Theory group meeting, they taught me something about probability so I thought I would share them here.
Problem 1
A couple has two children. One of the children is a . What is the probability that their other child is a ?
Assume that the probability of a or being born is equal.
Solution
This problem can be solved by first considering the number of different possible combinations of two children. Assuming each child can only be a or a (such that we have only two possible outcomes), there are four possible ways to have two children:
Now, we know that one of the children is a , hence the option (, ) cannot occur.
This leaves the following possible combinations that have at least one :
Of these three possible combinations, two contain a .
The probability that the second child is a given the first is a is then
As of the three possible outcomes above that all contained at least one , only two of the three also contained a .
An easy way to understand and expand this problem is by rephrasing it as bit-strings. Firstly, let
such that the four possibilities become the set of two-bit-string,
The condition that one child is a states that we want to only consider the bit-strings with at least one 0,
where the superscript stands for prior.
The condition that the other child is a then ask, of this reduced set of bit-strings , how many of the bit-string have a 1:
where the superscript stands for future.
The probability of this situation occurring is then given by
Using this notation it is easy to see that a question of this form is really just a problem of counting bit-strings.
The problem can now be expanded: if one has ten children, nine of which are a , what is the probability that the tenth is a ?
This question can then be rephrased as: of the ten-bit-strings with nine 0s, how many have one 1?
There are eleven ten-bit-strings with nine 0s. Of these eleven, ten have one 1. Hence, the probability of this occurring is given by
One can use the counting bit-string notion to now answer this problem for an arbitrary amount of s or s occurring. Moreover, any binary variable with equal probability of outcome could be treated this way.
Problem 2
A couple has two children. Their first child is a . What is the probability that their second child is a ?
Assume that the probability of a or being born is equal.
Solution
One can again use the bit-string notion developed above to answer this problem.
Assuming that the first bit represents the first born child and the second bit represents the second, this question asks: of the two-bit-strings with a 0 as the first bit, how many have a 1 in the second bit?.
We now have
and
From this, the probability can easily be found as
Interestingly, this probability remains the same for an number of children when the order of children is specified. If one lists the prior children in order i.e.,
the some -bit-string has been specified. When now considering the -bit-strings to model another child, there will always be only two -bit-strings that have as its first bits: and . Hence,
such that probability given this prior will always be .