PROBABILITY
PROBABILITY
PROBABILITY
DISTRIBUTION
p(x)
1/6
x
1 2 3 4 5 6
P(x) 1
all x
Probability mass function (pmf)
x p(x)
1 p(x=1)=1/6
2 p(x=2)=1/6
3 p(x=3)=1/6
4 p(x=4)=1/6
5 p(x=5)=1/6
6 p(x=6)=1/6
1.0
Cumulative distribution function (CDF)
1.0 P(x)
5/6
2/3
1/2
1/3
1/6
1 2 3 4 5 6 x
Cumulative distribution function
x P(x≤A)
1 P(x≤1)=1/6
2 P(x≤2)=2/6
3 P(x≤3)=3/6
4 P(x≤4)=4/6
5 P(x≤5)=5/6
6 P(x≤6)=6/6
Examples
12 .25
1.0
Answer (b)
4 (3-4)/2=-.5
Answer (c)
x 10 11 12 13 14
P(x) .4 .2 .2 .1 .1
• Binomial
– Yes/no outcomes (dead/alive,
treated/untreated, smoker/non-smoker,
sick/well, etc.)
• Poisson
– Counts (e.g., how many cases of disease
in a given area)
Continuous case
p(x)=e-x
p(x)
2 x
2
P(x 2) 1 - e 1 - .135 .865
Practice Problem
4. Suppose that survival drops off rapidly in the year following diagnosis of a
certain type of advanced cancer. Suppose that the length of survival (or
time-to-death) is a random variable that approximately follows an
exponential distribution with parameter 2 (makes it a steeper drop off):
2 x 2 x
[note : 2e e 0 1 1]
0
0
The probability of dying within 1 year can be calculated using the cumulative
distribution function:
1 (1 e 2(1) ) .135
Expected Value and Variance
One standard
deviation from the
Mean ()
mean ()
Fundamental Counting
Principle
Fundamental Counting Principle can be used
determine the number of possible outcomes
when there are two or more characteristics .
A Permutation is an arrangement
of items in a particular order.
3*2*1 = 6 3! = 3*2*1 = 6
ABC ACB BAC BCA CAB CBA
Permutations
5! 5!
5 p3 5 * 4 * 3 60
(5 3)! 2!
Permutations
Practice:
A combination lock will open when the
right choice of three numbers (from 1
to 30, inclusive) is selected. How many
different lock combinations are possible
assuming no number is repeated?
Permutations
Practice:
A combination lock will open when the
right choice of three numbers (from 1
to 30, inclusive) is selected. How many
different lock combinations are possible
assuming no number is repeated?
30! 30!
30 p3 30 * 29 * 28 24360
( 30 3)! 27!
Fundamental Theorem of Counting
If an operation can be performed in many ways, and if for each
of these a second operation can be performed in n2 ways, then
the two operations can be performed together in n1n2 ways.
24! 24!
24 p5
( 24 5)! 19!
24 * 23 * 22 * 21 * 20 5,100,480
Medical Example:
- in a medical study involving the thyroid
gland, patients are classified according to their
Uptake Test (depressed, normal, or elevated,
Thyroid Scan (normal, enlarged, small, with
modules) and Clinical Picture ( hyperthyroid,
hypothyroid, euthyroid). Find the number of
ways in which a patient can be classified .
Solution:
The first operation is to classify the
uptake test which would mean a patient may
be classified in n1 ways= 3. the second
operation (classifying the scan results) can
be done in n2 ways =4. the third operation
(about the clinical picture) can be done in n3
ways =3. hence by theorem of counting, the
total number of ways classifying the patients
simultaneously is (3) (4) (3) = 36.
Remember: if there are m simultaneous
operations, the total number of ways of
performing the m operations: n= n1n2n3n4…
n
If the m operation are not simultaneous, the
total number of ways of doing the operations
is n=n1+n2+n3+n4+…+nm
Combinations
A Combination is an arrangement
of items in which order does not
matter.
ORDER DOES NOT MATTER!
Since the order does not matter in
combinations, there are fewer combinations
than permutations. The combinations are a
"subset" of the permutations.
Combinations
5! 5! 5 * 4
5 C3 10
3! (5 3)! 3!2! 2 * 1
Combinations
Practice:
A basketball team consists of two
centers, five forwards, and four
guards. In how many ways can the
coach select a starting line up of
one center, two forwards, and two
guards?
Combinations
Practice: A basketball team consists of two centers, five forwards,
and four guards. In how many ways can the coach select a
starting line up of one center, two forwards, and two
guards?
Center: Forwards: Guards:
2! 5! 5 * 4 4! 4 * 3
2 C1 25 2
C 10 4 C2 6
1!1! 2!3! 2 * 1 2!2! 2 * 1
2 C1 * 5 C 2 * 4 C 2
n Cr= n! / r! (n-r)!
11 C5=11!/[(6!)(5!)]=462
b) Using the theorem of counting, the 1st operation is
the selection of 2 Pharmacists from 5
professionals. The number of ways of doing this is
11C5=5!/[(2!)(3!)]=10
The second operation is the selection of 3
nurses from 6. the number of ways is
16C3=6!/[(3!)(3!)]=20
Male, Female
Definition
Complement ==> sometimes, we want to know
the probability that an event will not happen; an
event opposite to the event of interest is called
a complementary event.
If A is an event, its complement is The
probability of the complement is AC or A
Example: The complement of male event is the
female
P(A) + P(AC) = 1
Views of Probability:
1-Subjective:
1- Multiplication rule
P(B)
1- Multiplication rule
Dependence and
the modified multiplication rule
1- Multiplication rule
Dependence and
the modified multiplication rule
P(B) P(B\A)
Addition
Rule
P(A) P(B)
M
o
Ad difi
dit ed
Ru ion
le
P(A) P(B)
P(A ∩ B)
0 49 73 58 62 242
1 16 7 7 8 38
2 8 5 6 6 25
3 4 1 0 0 5
Total 77 86 71 76 310
Compute the following probabilities for a randomly
selected patient:
1.being of group D and experiencing
no pain
2.belonging to group B or having a
pain score of 2
3.having a pain score of 3 given that
he belongs to group A
4.belonging to group C
2:
Best Buy is having an IPOD giveaway. They
put all the IPOD Shuffles in a bag.
Customers may choose an IPOD without
looking at the color. Inside the bag are 4
orange, 5 blue, 6 green, and 5 pink IPODS.
If Maria chooses one IPOD at random, what
is the probability she will choose an orange
IPOD?
Probability of Simple Events
1) P(black) =
2) P(1) =
3) P(odd) =
4) P(prime) =
Real World Example:
A computer company manufactures 2,500
computers each day. An average of 100 of
these computers are returned with defects.
What is the probability that the computer you
purchased is not defective?
EXAMPLE Illustrating the Multiplication
Principle for Independent Events
The probability that a randomly selected
female aged 60 years old will survive the year
is 99.186% according to the National Vital
Statistics Report, Vol. 47, No. 28. What is the
probability that two randomly selected 60 year
old females will survive the year?
EXAMPLE Illustrating the Multiplication
Principle for Independent Events
The probability that a randomly selected
female aged 60 years old will survive the year
is 99.186% according to the National Vital
Statistics Report, Vol. 47, No. 28. What is the
probability that four randomly selected 60 year
old females will survive the year?
Suppose we have a box full of 500 golf balls. In
the box, there are 50 Titleist golf balls.
(a) Suppose two golf balls are selected
randomly without replacement. What is the
probability they are both Titleists?
(b) Suppose a golf ball is selected at random
and then replaced. A second golf ball is then
selected. What is the probability they are both
Titleists? NOTE: When sampling with
replacement, the events are independent.
EXAMPLE Computing “at least” Probabilities