Академический Документы
Профессиональный Документы
Культура Документы
Contact: li@uhcl.edu
(281) 283-3728
Chapter 1: Probability
1
1.1 Properties of Probability
What is probability?
A formal definition is given at page 14, but what is the common
sense of probability? Give me some examples.
Chance, likelihood, etc.
Chance of what?
Examples
A fair coin is flipped, what is the chance that a head is observed?
Do you need probability class to answer this question?
You have a bet with your friend A using rolling a die. If number 6
faces up, you win. Otherwise you lose. Do you want to play this
game with your friend? Why or why not?
Probability is the theoretical foundation of Statistics, but
Probability itself has a broad application in sciences, engineering
and in everyday life.
Probability was born from gambling.
STAT 4344 1-2 Dr. Yingfu (Frank) Li
Random experiment
Unpredictable with certain
A process or a procedure
Sample space, often noted as S
All possible outcomes
Examples: coins, dice,
Event, noted as A, B ,
Subset of sample space event and subset are interchangeable
Certain event S and impossible event
Probability of an event
A numerical value is assigned to an event, say A. P(A) stands for the
probability of event A.
How to assign a numerical value to P(A)?
2
Review Algebra of Sets
Exhaustive events:
Commutative Laws
Associative Laws
Distributive Laws
De Morgans Laws
3
Types of Probabilities
Classical probability
Toss a coin, what is the probability that head is observed
In general, P(A) = n(A) / n(S)
Empirical probability
my example: P(glass broken) = ?
In general, P(A) = f frequency of occurrences of A / n number of
experiments
What about tossing a coin 100 times? Limit of relative frequency -> p
Examples of usefulness of probability
Insurance premium good driver or bad driver
Risk assessment & reliability before a shuttle goes to the space
NBA game: fault and go to the line
Example 1.1-1:
A fair six-sided die is rolled six times. If the face numbered k is the
outcome on roll k for k = 1, 2, . . . , 6, we say that a match has
occurred. The experiment is called a success if at least one match
occurs during the six trials. Otherwise, the experiment is called a
failure. The sample space is S = { success, failure}. Let A = {success}
We would like to assign a value to P(A)
Formula & simulation
Example 1.1-2:
A disk 2 inches in diameter is thrown at random on a tiled floor, where
each tile is a square with sides 4 inches in length. Let C be the event
that the disk will land entirely on one tile. We would like to assign a
value to P(C)
Much easier examples
Tossing a coin & rolling a die,
STAT 4344 1-7 Dr. Yingfu (Frank) Li
4
Formal Definition of Probability
Properties of Probability
Thm1.1-1: For each event A, P(A) = 1 P(A')
Complement Rule. Example 1.1-3
Thm1.1-2: P() = 0
Thm1.1-3: If two events A B , then P(A) P(B)
Thm1.1-4: For each event A, P(A) 1
Thm1.1-5: If A and B are any two events, then
P( A B) P( A) P( B) P( A B)
Additional Rule. Example 1.1-4
Thm1.1-6: If A, B and C are any three events, then
P ( A B C ) P( A) P ( B ) P (C ) P ( A B)
P( A C ) P( B C ) P( A B C ) Examples 1.1-5 & 1.1-6
Extension to finite number of events; mutually exclusive events
5
Example 1.1-3 Using Complement Rule
6
Example 1.1-5 Using Additional Rule
Classical Probability
7
Example 1.1-6 Classical Probability
Let a card be drawn at random from an ordinary deck of 52
playing cards. Then the sample space S is the set of m = 52
different cards, and it is reasonable to assume that each of
these cards has the same probability of selection, 1/52.
Accordingly, if A is the set of outcomes that are kings, then
P(A) = 4/52 = 1/13 because there are h = 4 kings in the deck.
That is, 1/13 is the probability of drawing a card that is a
king, provided that each of the 52 cards has the same
probability of being drawn.
8
Example 1.2-1 Multiplication Principle
9
Example 1.2-3 Permutations
Simple Examples
Example 1.2-4
The number of possible four-letter code words, selecting from the 26
letters in the alphabet, in which all four letters are different is
Answer: 26P4 = (26)(25)(24)(23) = 26!/ 22! = 358,800
Example 1.2-5
The number of ways of selecting a president, a vice president, a
secretary, and a treasurer in a club consisting of 10 persons is
Answer: 10P4 = 10 9 8 7 = 10! / 6! = 5040.
10
Methods of Enumeration
Ordered sample: If r objects are selected from a set of n objects,
and if the order of selection is noted, then the selected set of r
objects is called an ordered sample of size r.
Sampling with replacement occurs when an object is selected and
then replaced before the next object is selected.
Objects can be same
Sampling without replacement occurs when an object is not
replaced after it has been selected.
Objects have to be different
Each of the nCr unordered subsets is called a combination of n
objects taken r at a time, where n!
n Cr
binomial coefficients r !( n r )!
Each of the nCr permutations of n objects, r of one type and n - r of
another type, is called a distinguishable permutation
multinomial coefficient
STAT 4344 1-20 Dr. Yingfu (Frank) Li
Simple Examples
Example 1.2-6
A die is rolled seven times. The number of possible ordered samples is
Answer: 67 = 279,936.
Note that rolling a die is equivalent to sampling with replacement from the
set {1,2,3,4,5,6}.
Example 1.2-7
An urn contains 10 balls numbered 0, 1, 2, . . . , 9. If 4 balls are selected
one at a time and with replacement, then the number of possible
ordered samples is
Answer : 104 = 10,000.
Note that this is the number of four-digit integers between 0000 and 9999,
inclusive.
Example 1.2-8
The number of ordered samples of 5 cards that can be drawn without
replacement from a standard deck of 52 playing cards is
STAT 4344 1-21 Dr. Yingfu (Frank) Li
11
Examples Regarding Combinations
Example 1.2-9
The number of possible 5-card hands (in 5-card poker) drawn from a
deck of 52 playing cards is
Answer: 52C5 = 52! / (5! * 47!) = 2,598,960.
Example 1.2-10
The number of possible 13-card hands (in bridge) that can be
selected from a deck of 52 playing cards is
Answer: 52C13 = 52! / (13! * 39!) = 635,013,559,600.
Example 1.2-11
Assume that each of the five-card hands drawn from a deck of 52
playing cards has the same probability of being selected. Then the
number of possible 5-card hands that are all spades (event A) is
Answer: N(S) = 52C5 and N(A) = 13C5 , so P(A) = N(A) / N(S) =
What the event B is the set of outcomes in which exactly three cards are
kings and exactly two cards are queens? What about C = 2K2Q1J?
STAT 4344 1-22 Dr. Yingfu (Frank) Li
Example 1.2-12
A coin is flipped 10 times and the sequence of heads and tails is
observed. The number of possible 10-tuplets that result in four heads
and six tails is
Two groups: one is 4 and the other 6. A: 10C4 = 10C6 = 210
Example 1.2-13
In an orchid show, seven orchids are to be placed along one side of
the greenhouse. There are four lavender orchids and three white
orchids. Considering only the color of the orchids, we see that the
number of lineups of the orchids is
Answer: 7C4 = 35
9 9!
Example 1.2-14 multinomial coefficient 1260
3, 4, 2 3!4!2!
Among nine orchids for a line of orchids along one wall, three are
white, four lavender, and two yellow. The number of different color
displays is
STAT 4344 1-23 Dr. Yingfu (Frank) Li
12
1.3 Conditional Probability
Conditional probability is a very useful tool for solving
complicated probability problem
Sometimes treat condition as a new sample space, and the
problem is much easier to solve
Example 1.3-1 table presentation better
Suppose that we are given 20 tulip bulbs that are similar in appearance and
told that 8 will bloom early, 12 will bloom late, 13 will be red, and 7 will be
yellow, in accordance with the various combinations listed in Table 1.4- 1. If
one bulb is selected at random, the probability that it will produce a red tulip
(R) is given by P(R) =13/ 20, under the assumption that each bulb is equally
likely. Suppose, however, that close examination of the bulb will reveal
whether it will bloom early (E) or late (L). If we consider an outcome only if it
results in a tulip bulb that will bloom early, only eight outcomes in the sample
space are now of interest. Thus, under this limitation, it is natural to assign the
probability 5/ 8 to R; that is, P (R|E) = 5/ 8, where P(R|E) is read as the
probability of R given that E has occurred.
Conditional Probability
13
Simple Examples Conditional Probability
Example 1.3-2
If P(A) = 0.4, P(B) = 0.5, and P(A B) = 0.3
Then P(A|B) = P(A B) / P(B) = 0.3/0.5 = 0.6;
P(B|A) = P(A B) / P(A) = 0.3/0.4 = 0.75.
Example 1.3-3
Suppose that P(A) = 0.7, P(B) = 0.3, and P(A B) = 0.2. Given that
the outcome of the experiment belongs to B, what then is the
probability of A?
Answer: P(A|B) = P(A B) / P(B)
= 0.2 / 0.3 = 2/3
Another way: We are effectively restricting
the sample space to B; of the probability
P(B) = 0.3, 0.2 corresponds to P(A B)
and hence to A. That is, 0.2/0.3 = 2/3 of
the probability of B corresponds to A
Example 1.3-4
A pair of fair four-sided dice is rolled and the sum is determined. Let
A be the event that a sum of 3 is rolled, and let B be the event that a
sum of 3 or a sum of 5 is rolled. In a sequence of rolls, the
probability that a sum of 3 is rolled before a sum of 5 is rolled can be
thought of as the conditional probability of a sum of 3 given that a
sum of 3 or 5 has occurred; that is, the conditional probability of A
given B, i,e., P(A|B)
Answer:
Formula way
Intuitive way
Treat condition as
a new sample space
14
Conditional Probability is a Probability
It is interesting to note that conditional probability satisfies
the axioms for a probability function, namely, with P(B) > 0,
(a) P(A|B) 0; (b) P(B|B) = 1;
(c) if A1, A2, A3, . . . are mutually exclusive events, then
P(A1 A2 Ak |B) = P(A1 |B) + P(A2 |B) + + P(Ak |B),
for each positive integer k, and
P(A1 A2 |B) = P(A1 |B) + P(A2 |B) + ,
for an infinite, but countable, number of events.
Example 1.3-5
At a county fair carnival game there are 25 balloons on a board, of which 10
balloons are yellow, 8 are red, and 7 are green. A player throws darts at the
balloons to win a prize and randomly hits one of them. Given that the first
balloon hit is yellow, what is the probability that the next balloon hit is also
yellow?
Of the 24 remaining balloons, 9 are yellow, so a natural value to assign to this
conditional probability is 9/24.
STAT 4344 1-28 Dr. Yingfu (Frank) Li
Example 1.3-6
A bowl contains seven blue chips and three red chips. Two chips are
to be drawn successively at random and without replacement. We
want to compute the probability that the first draw results in a red
chip (A) and the second draw results in a blue chip (B).
A: It is reasonable to assign the following probabilities: P(A) = 3 / 10
and P(B|A) = 7 / 9. The probability of obtaining red on the first draw
and blue on the second draw is P(A B) = 3/10 * 7/9 = 7/30.
Another way (since the order is important here): 3*7 / 10*9 = 7 / 30
However, first draw A = red and second draw B = red, order can be
ignored
With order: 3*2 / 10*9 = 1/15
Without order: 3C2 / 10C2 = 1/15
15
Examples Multiplication Rule
Example 1.3-7
From an ordinary deck of playing cards, cards are to be drawn
successively at random and without replacement. The probability that
the third spade appears on the sixth draw is computed as follows:
Let A be the event of two spades in the first five cards drawn
Let B be the event of a spade on the sixth draw.
Thus, the probability P(A B) = P(A) P(B|A)
P(A) = 13C2 39C3 / 52C5 = 0.274, P(B|A) = 11 / 47 = 0.234
P(A B) = 0.274 * 0.234 = 0.064
More Examples
Example 1.3-10
A grade school boy has five blue and four white marbles in his left pocket and
four blue and five white marbles in his right pocket. If he transfers one marble at
random from his left to his right pocket, what is the probability of his then
drawing a blue marble from his right pocket? For notation, let BL, BR, and WL
denote drawing blue from left pocket, blue from right pocket, and white from
left pocket, respectively.
Example 1.3-11
An insurance company sells several types of insurance policies, including auto
policies and homeowner policies. Let A1 be those people with an auto policy
only, A2 those people with a homeowner policy only, and A3 those people with
both an auto and homeowner policy (but no other policies). For a person
randomly selected from the companys policy holders, suppose that P(A1) = 0.3,
P(A2) = 0.2, and P(A3) = 0.2. Further, let B be the event that the person will
renew at least one of these policies. Say from past experience that we assign the
conditional probabilities P(B|A1) = 0.6, P(B|A2) = 0.7, and P(B|A3) = 0.8. Given
that the person selected at random has an auto or homeowner policy, what is the
conditional probability that the person will renew at least one of those policies?
16
1.4 Independent Events
17
Theorem 1.4-1
A B
A B
18
More Examples on Mutual Independence
Example 1.4-6
A fair six-sided die is rolled six independent times. Let Ai be the event that
side i is observed on the ith roll, called a match on the ith trial, i = 1, 2, . . . , 6.
Thus, P(Ai) = 1/6 and P(A'i) = 1 1/6 = 5/6. If we let B denote the event that
at least one match occurs, then B' is the event that no matches occur.
Example 1.4-8
Three inspectors look at a critical component of a product. Their probabilities
of detecting a defect are different, namely, 0.99, 0.98, and 0.96, respectively.
If we assume independence, then the probability of at least one detecting the
defect is
What about the probability of only one finding the defect?
Example 1.4-9
Suppose that on five consecutive days an instant winner lottery ticket is
purchased and the probability of winning is 1/5 on each day. Assuming
independent trials, we have
P(WWLLL) =
P(LWLWL) =
What about the probability of purchasing two winning tickets and three losing tickets
STAT 4344 1-36 Dr. Yingfu (Frank) Li
19
Total Probability Theorem
Bayess Theorem
Let B1, B2, . . . , Bm constitute a partition of the sample space
S, that is, the events B1, B2, . . . , Bm are mutually exclusive
and exhaustive. We then have Bayess theorem:
P (BK A) P ( Bk ) P ( A | Bk )
P ( Bk | A ) , k 1, 2, ..., m
P ( A) m
i 1
P ( Bi ) P ( A | Bi )
20
Example 1.5-3
21