Lecture 2 Probability
Lecture 2 Probability
Lecture 2 Probability
Theory
Outline
Basic concepts in probability theory
Bayes’ rule
Observation - refers to any recorded information
(numerical or categorical)
M = {a,e,i,o,u} and
N = {r,s,t}: then it follows that
M ∩ N = ???
M∩N=Ø
That is, M and N have no elements in common
and, therefore, cannot both occur simultaneously.
The union of the two events A and B,
denoted by the symbol A U B, is the event
containing all the elements that belong to A
or B or both.
Example. Let A = {a,b,c} and B = {b,c,d,e};
then A U B = ???
A U B = {a,b,c,d,e}.
A ∩ B = regions 1 and 2,
B ∩ C = regions 1 and 3, S
A U C = regions 1, 2, 3, 4,
5, and 7, A B
2
B‘ ∩ A = regions 4 and 7, 7 6
A ∩ B ∩ C = region 1, 1 3
4
and so forth. 5
C
Sample space – rectangle
Events - circles
A ∩ B = regions 1 and 2,
B ∩ C = regions 1 and 3, S
A U C = regions 1, 2, 3, 4,
5, and 7, A B
2
B‘ ∩ A = regions 4 and 7, 7 6
A ∩ B ∩ C = region 1, 1 3
4
and so forth. 5
C
A permutation is an arrangement of all or part of a set of
objects.
Theorem 2.3 The number of permutations of n objects is
n!.
4! = 24.
Theorem 2.5 The number of permutations of n objects
arranged in a circle is (n — 1)!.
Number of ways of selecting r objects from n without regard to
order. These selections are called combinations.
You might be interested in finding out a patient’s probability of having liver disease if
they are an alcoholic. “Being an alcoholic” is the test for liver disease.
A could mean the event “Patient has liver disease.” Past data tells you that 10% of
patients entering your clinic have liver disease. P(A) = 0.10.
B could mean the test that “Patient is an alcoholic.” Five percent of the clinic’s patients
are alcoholics. P(B) = 0.05.
You might also know that among those patients diagnosed with liver disease, 7% are
alcoholics.
This is your B|A: the probability that a patient is alcoholic, given that they have liver
disease, is 7%.
There are several forms of Bayes’ Theorem out there, and they are all equivalent (they
are just written in slightly different ways).
In this next equation, “X” is used in place of “B.” In addition, you’ll see some changes in
the denominator. If you come across a question involving medical tests, you’ll likely be
using this alternative formula to find the answer:
Example 2: The Medical Test
A slightly more complicated example involves a medical test (in this case, a genetic test):
Sol’n: The first step into solving Bayes’ theorem problems is to assign letters to events:
A = chance of having the faulty gene. That was given in the question as 1%.
That also means the probability of not having the gene (~A) is 99%.