Chapter 1
Probabilistic Models and Sample Space
Peng-Hua Wang
Graduate Institute of Communication Engineering National Taipei University
Chapter 1 Probabilistic Models and Sample Space Peng-Hua Wang - - PowerPoint PPT Presentation
Chapter 1 Probabilistic Models and Sample Space Peng-Hua Wang Graduate Institute of Communication Engineering National Taipei University Chapter Contents 1.1 Sets 1.2 Probabilistic Models 1.3 Conditional Probability 1.4 Total Probability
Graduate Institute of Communication Engineering National Taipei University
Peng-Hua Wang, February 20, 2012 Probability, Chap 1 - p. 2/82
Peng-Hua Wang, February 20, 2012 Probability, Chap 1 - p. 3/82
Peng-Hua Wang, February 20, 2012 Probability, Chap 1 - p. 4/82
■ We use the concept of probability to discuss an uncertain
■ One approach to define probability is in terms of
Peng-Hua Wang, February 20, 2012 Probability, Chap 1 - p. 5/82
■ We can also define probability by “axioms”. This
◆ axiom: “An axiom or postulate is a proposition that is not
■ Probability is a number assigned to a set. Therefore, we
Peng-Hua Wang, February 20, 2012 Probability, Chap 1 - p. 6/82
Peng-Hua Wang, February 20, 2012 Probability, Chap 1 - p. 7/82
■ “x ∈ S” means that x is an
■ “y /
■ “∅” is the symbol of a set
■ Sets and associated
x
by S
Peng-Hua Wang, February 20, 2012 Probability, Chap 1 - p. 8/82
■ Pen ∈ S ■ Ruler ∈ S ■ Mirror ∈ S (?) ■ Perfume ∈ S (??) ■ S = ∅ (Why do you bring an empty pencil case ?)
Peng-Hua Wang, February 20, 2012 Probability, Chap 1 - p. 9/82
■ We can specify a set in a variety ways. ◆ “S = {x1, x2, ..., xn}” means that S contains a finite
◆ “S = {x1, x2, ...}” means that S contains infinitely
◆ “S = {x|x satisfies P.}” means that all of the elements
Peng-Hua Wang, February 20, 2012 Probability, Chap 1 - p. 10/82
■ S1 = {
■ S2 = {H, T} is the set of possible outcomes of a coin toss
■ S3 = {0, 2, −2, 4, −4, ...} is the set of all even integers.
■ S4 = {x|0 ≤ x ≤ 1} is the set of all real numbers in the
Peng-Hua Wang, February 20, 2012 Probability, Chap 1 - p. 11/82
■ “S ⊂ T” means that S is a
■ “U ⊃ T” means that U is a
■ If S ⊂ T but S = T, we say
■ If S ⊃ T but S = T, we say
U T S
Peng-Hua Wang, February 20, 2012 Probability, Chap 1 - p. 12/82
■ If S ⊂ T, then T ⊃ S. ■ If S ⊂ T and T ⊂ U, then S ⊂ U. ■ If S ⊂ T and S ⊃ T, then S = T. ■ The empty set is a subset of any set: ∅ ⊂ S for all sets S.
Peng-Hua Wang, February 20, 2012 Probability, Chap 1 - p. 13/82
■ The universal set Ω contains all elements that could be
■ The set of real numbers is denoted by ℜ. ■ The set of pairs of real numbers (i.e., the
Peng-Hua Wang, February 20, 2012 Probability, Chap 1 - p. 14/82
■ The universal set of possible outcomes of a die roll is
■ {
■ {
■ {
■
■ {
Peng-Hua Wang, February 20, 2012 Probability, Chap 1 - p. 15/82
■ Sc = {x|x ∈ Ω and x /
■ S ∪ T = {x|x ∈ S or x ∈ T}
■ S ∩ T = {x|x ∈ S and x ∈
Ω Sc S Sc S ∪ T S T S ∩ T S T
Peng-Hua Wang, February 20, 2012 Probability, Chap 1 - p. 16/82
■ Sc = {x|x ∈ Ω and x /
■
∞
■
∞
Peng-Hua Wang, February 20, 2012 Probability, Chap 1 - p. 17/82
■ A and B is said to be disjoint if A ∩ B = ∅. ■ A collection of set is said to be a partition of a set S if
A B C
Peng-Hua Wang, February 20, 2012 Probability, Chap 1 - p. 18/82
■ S ∪ T = T ∪ S ■ S ∪ (T ∪ U) = (S ∪ T) ∪ U = S ∪ T ∪ U ■ S ∩ (T ∪ U) = (S ∩ T) ∪ (S ∩ U) ■ S ∪ (T ∩ U) = (S ∪ T) ∩ (S ∪ U) ■ (Sc)c = S, S ∩ Sc = ∅, S ∪ Ω = Ω, S ∩ Ω = S
Peng-Hua Wang, February 20, 2012 Probability, Chap 1 - p. 19/82
n,
n
Sn c
Sn
1 and x ∈ Sc 2 and · · · ⇒ x ∈
Sc
n ⇒
Sn c
Sc
n
Sc
n ⇒ x ∈ Sc 1 and x ∈ Sc 2 and · · · ⇒ x ∈ S1 and x ∈ S2 and . . .
Sn
Sn c
Sc
n ⊂
Sn c By (1) and (2), we conclude that (
n Sn)c = n Sc n
Peng-Hua Wang, February 20, 2012 Probability, Chap 1 - p. 20/82
Peng-Hua Wang, February 20, 2012 Probability, Chap 1 - p. 21/82
Peng-Hua Wang, February 20, 2012 Probability, Chap 1 - p. 22/82
■ We try to describe an uncertain situation in mathematic
■ Elements of a Probabilistic Model ◆ The sample space Ω, which is the set of all possible
◆ The probability law, which maps a set A of possible
■ In fact, only the problems that can be described in these
Peng-Hua Wang, February 20, 2012 Probability, Chap 1 - p. 23/82
Peng-Hua Wang, February 20, 2012 Probability, Chap 1 - p. 24/82
■ An experiment produces exactly one outcomes. ■ The sample space (denoted by Ω) of the experiment is
■ An event is a collection of possible outcomes, i.e. a
Peng-Hua Wang, February 20, 2012 Probability, Chap 1 - p. 25/82
■ Outcome must be: ◆ Mutually exclusive ➜ For example, a possible outcome of “l or 3” and
◆ Collectively exhaustive ➜ In each experiment, we always obtain an outcome in
◆ At the “right” granularity ➜ Outcome should distinguish for each other, and
Peng-Hua Wang, February 20, 2012 Probability, Chap 1 - p. 26/82
■ Ω1 = {(1, 1), (1, 2), ...(6, 6)}: too detailed ■ Ω2 = {2, 3, 4, ..., 12}: good
Peng-Hua Wang, February 20, 2012 Probability, Chap 1 - p. 27/82
■ It is helpful to evaluate the sequential model by
Peng-Hua Wang, February 20, 2012 Probability, Chap 1 - p. 28/82
■ Event A: a subset of the sample space ■ Probability law: assign an nonnegative number P(A)
■ Probability law satisfies the following probability
Peng-Hua Wang, February 20, 2012 Probability, Chap 1 - p. 29/82
■ There are two possible outcomes, heads (H) and tails (T). ■ The sample space is Ω = {H, T} ■ The possible events are {H, T}, {H}, {T}, ∅ ■ Assume the coin is fair in the sense of equally likely
■ Solve the probability law. That is, find the probability of
Solution.
■ P(Ω) = 1 = P({H, T}) = P({H}) + P({T}) since P({H}) ∩ P({T}) = ∅ ■ Since P({H}) = P({T}), we have P({H}) = P({T}) = 0.5 ■ Since P(Ω) ∩ ∅) = ∅), we have P(Ω) ∪ ∅) = P(Ω) + P(∅). That is,
1 = 1 + P(∅) and P(∅) = 0.
Peng-Hua Wang, February 20, 2012 Probability, Chap 1 - p. 30/82
■ The sample space is Ω =? ■ How many possible events ? ■ Assume possible outcome has the same probability. ■ What is the probability of exactly 2 heads occur?
Solution.
■ The event of interest is A =? ■ P(A) =?
Peng-Hua Wang, February 20, 2012 Probability, Chap 1 - p. 31/82
■ Assume the dice are fair. It means that each of the
■ What is the probability that the sum of the rolls is even? ■ What is the probability that the sum of the rolls is odd? ■ What is the probability that the first roll is equal to the
■ What is the probability that the first roll is larger than the
■ What is the probability that at least one roll is equal to 4?
Peng-Hua Wang, February 20, 2012 Probability, Chap 1 - p. 32/82
Peng-Hua Wang, February 20, 2012 Probability, Chap 1 - p. 33/82
Peng-Hua Wang, February 20, 2012 Probability, Chap 1 - p. 34/82
Peng-Hua Wang, February 20, 2012 Probability, Chap 1 - p. 35/82
Peng-Hua Wang, February 20, 2012 Probability, Chap 1 - p. 36/82
Peng-Hua Wang, February 20, 2012 Probability, Chap 1 - p. 37/82
■ Let x be the delay of Romeo and y the delay of Juliet. ■ The sample space Ω = {(x, y)|0 ≤ x ≤ 1, 0 ≤ y ≤ 1} ■ They meet if the following event occurs
Peng-Hua Wang, February 20, 2012 Probability, Chap 1 - p. 38/82
Peng-Hua Wang, February 20, 2012 Probability, Chap 1 - p. 39/82
Peng-Hua Wang, February 20, 2012 Probability, Chap 1 - p. 40/82
Peng-Hua Wang, February 20, 2012 Probability, Chap 1 - p. 41/82
■ Reason about the outcome of an experiment based on
◆ It is rainy today. What is the probability that it will be
◆ In a word guessing game, the first letter of the word is
◆ In an experiment involving two successive rolls of a
Peng-Hua Wang, February 20, 2012 Probability, Chap 1 - p. 42/82
■ Roll a fair die. If we know the outcome is even, then
Peng-Hua Wang, February 20, 2012 Probability, Chap 1 - p. 43/82
■ We know that some given event B occurs. We wish to
■ In other words, we know that the outcome is in B. We
■ This is a new probability law: the conditional probability of
■ Note. “Given B” means that B must occur. That is,
Peng-Hua Wang, February 20, 2012 Probability, Chap 1 - p. 44/82
■ We have to prove that the above definition of conditional
◆ Nonnegativity:
◆ Normalization:
◆ Additivity.
Peng-Hua Wang, February 20, 2012 Probability, Chap 1 - p. 45/82
■ Toss a fair coin three successive times. ■ Let A and B are the events
■ Find the conditional probability P(A|B).
Peng-Hua Wang, February 20, 2012 Probability, Chap 1 - p. 46/82
■ A fair 4-sided die is rolled twice and we assume that all
■ Let X and Y be the result of the 1st and the 2nd roll,
■ Events A and B are
■ Determine the conditional probability P(A|B),
Peng-Hua Wang, February 20, 2012 Probability, Chap 1 - p. 47/82
■ We have two design teams “C” and “N”. They are asked
■ Assuming that exactly one successful design is
Peng-Hua Wang, February 20, 2012 Probability, Chap 1 - p. 48/82
■ If an aircraft is present in a certain area, a radar detects it
■ If an aircraft is not present, the radar generates a (false)
■ We assume that an aircraft is present with probability
■ What is the probability of no aircraft presence and a false
Peng-Hua Wang, February 20, 2012 Probability, Chap 1 - p. 49/82
Peng-Hua Wang, February 20, 2012 Probability, Chap 1 - p. 50/82
■ Three cards are drawn from an ordinary 52-card deck
■ Find the probability that none of the three cards is a
Peng-Hua Wang, February 20, 2012 Probability, Chap 1 - p. 51/82
Proof. P(A1 ∩ A2 ∩ · · · An)
P(A1) P(A1 ∩ A2 ∩ A3) P(A1 ∩ A2)
P(A1 ∩ A2 · · · ∩ An) P(A1 ∩ A2 · · · ∩ An−1)
Peng-Hua Wang, February 20, 2012 Probability, Chap 1 - p. 52/82
Peng-Hua Wang, February 20, 2012 Probability, Chap 1 - p. 53/82
■ Let A1, A2..., An be disjoint events that form a partition
Peng-Hua Wang, February 20, 2012 Probability, Chap 1 - p. 54/82
Peng-Hua Wang, February 20, 2012 Probability, Chap 1 - p. 55/82
■ In a chess game your probability of winning a game is
■ You play game against a randomly chosen opponent. ■ What is the probability of winning?
Peng-Hua Wang, February 20, 2012 Probability, Chap 1 - p. 56/82
■ Roll a fair 4-sided die. ■ If the result is 1 or 2, you roll once more but otherwise,
■ What is the probability that the sum total of your rolls is
Peng-Hua Wang, February 20, 2012 Probability, Chap 1 - p. 57/82
■ You are taking a probability class and at the end of each
■ If you is up-to-date in a given week, the probability that
■ If you is behind in a given week. the probability that you
■ You are (by default) up-to-date when you starts the class. ■ What is the probability that you are up-to-date after
Peng-Hua Wang, February 20, 2012 Probability, Chap 1 - p. 58/82
■ Calculate P(A|B) from P(B|A)
Peng-Hua Wang, February 20, 2012 Probability, Chap 1 - p. 59/82
■ We may regard the events A1, . . . , An as the causes and
■ By observing the effect, we want to infer the cause. ■ Bayes’ rule is a method used for inference. ■ Given that the effect B has been observed, we want to
■ P(Ai|B) is called the posterior probability of event Ai
■ P(Ai) is called the prior probability.
Peng-Hua Wang, February 20, 2012 Probability, Chap 1 - p. 60/82
■ If an aircraft is present in a certain area, a radar detects it
■ If an aircraft is not present, the radar generates a (false)
■ We assume that an aircraft is present with probability
■ Let A = {an aircraft is present} and
■ Calculate P(aircraft present|alarm) = P(A|B).
Peng-Hua Wang, February 20, 2012 Probability, Chap 1 - p. 61/82
■ In a chess game your probability of winning a game is
■ You play game against a randomly chosen opponent. ■ Suppose that you win. What is the probability that you
Peng-Hua Wang, February 20, 2012 Probability, Chap 1 - p. 62/82
■ A test for a certain rare disease is assumed to be correct
◆ if a person has the disease, the test results are positive
◆ if the person does not have the disease, the test results
■ A random person drawn from a certain population has
■ Given that the person just tested positive, what is the
Peng-Hua Wang, February 20, 2012 Probability, Chap 1 - p. 63/82
Peng-Hua Wang, February 20, 2012 Probability, Chap 1 - p. 64/82
■ P(A|B) is the partial information that event B provides
■ When B provides no such information and does not alter
■ By above definition, if A is independent of B, then
Peng-Hua Wang, February 20, 2012 Probability, Chap 1 - p. 65/82
■ Above identity is the definition of independence. ■ This definition can be used even when P(B) = 0, in
■ Independence is a symmetric property: if A is
■ Property. If A and B are independent, then Ac and B are
Peng-Hua Wang, February 20, 2012 Probability, Chap 1 - p. 66/82
■ Two successive rolls of a fair 4-sided die. ■ Let Ai = { lst roll results in i}, and
■ Let A = { lst roll results in 1}, and
■ Let A = {maximum of the two rolls is 2}, and
Peng-Hua Wang, February 20, 2012 Probability, Chap 1 - p. 67/82
■ Given an event C, the events A and B are called
■ If A and B are conditionally independent given C, then
■ P(A ∩ B) = P(A)P(B) ⇒ P(A ∩ B|C) = P(A|C)P(B|C) ■ P(A ∩ B|C) = P(A|C)P(B|C) ⇒ P(A ∩ B) = P(A)P(B)
Peng-Hua Wang, February 20, 2012 Probability, Chap 1 - p. 68/82
■ Toss two independent fair coins. Let
■ Are H1 and H2 independent? ■ Given D, are H1 and H2 independent?
Peng-Hua Wang, February 20, 2012 Probability, Chap 1 - p. 69/82
■ There are two biased coins C1 and C2. We know that
■ We choose one of the two equally likely, and proceed
■ Let
■ Given B, are H1 and H2 independent? ■ Are H1 and H2 independent?
Peng-Hua Wang, February 20, 2012 Probability, Chap 1 - p. 70/82
■ Definition. The events A1, A2, . . . , An are independent if
P(Ai ∩ Aj) = P(Ai)P(Aj), for any i and j. P(Ai ∩ Aj ∩ Ak) = P(Ai)P(Aj)P(Ak), for any i, j and k. . . . P(Ai ∩ Aj ∩ · · · ∩ As) = P(Ai)P(Aj) · · · P(As), for any i, j... s.
■ NOT ONLY piecewise independent.
Peng-Hua Wang, February 20, 2012 Probability, Chap 1 - p. 71/82
■ Two independent rolls of a fair six-sided die.Let :
■ Find P(A), P(B), P(C), P(A ∩ B), P(A ∩ C), P(B ∩ C) and
■ P(A ∩ B ∩ C) = P(A)P(B)P(C) is not enough for
Peng-Hua Wang, February 20, 2012 Probability, Chap 1 - p. 72/82
■ A network connects two nodes A and B through
■ For every connected pair i and j, there is a given
Peng-Hua Wang, February 20, 2012 Probability, Chap 1 - p. 73/82
■ Assuming that link failures are independent of each
■ What is the probability that there is a path connecting A
Peng-Hua Wang, February 20, 2012 Probability, Chap 1 - p. 74/82
■ If an experiment involves only two results, we say that
■ If an experiment involves a sequential of Bernoulli trials,
■ For example. The result of a coin toss forms a Bernoulli
Peng-Hua Wang, February 20, 2012 Probability, Chap 1 - p. 75/82
■ The result in n independent tosses forms a sequence. (n
k)
■ n! is called n factorial. ■ The probability that the number of heads in n
Peng-Hua Wang, February 20, 2012 Probability, Chap 1 - p. 76/82
Peng-Hua Wang, February 20, 2012 Probability, Chap 1 - p. 77/82
■ A process consists of r stages. Suppose that ◆ There are n1 possible results at the first stage. ◆ For every possible result at the first stage, there are n2
◆ For every possible result at the i − 1th stage, there are
◆ The total number of possible results of the process is
Peng-Hua Wang, February 20, 2012 Probability, Chap 1 - p. 78/82
■ We have n distinct objects. ■ We wish to count the number of different ways that we
■ We can choose any of the n objects for the first one.
■ By the counting principle, the number of possible
■ This is called the k-permutations.
Peng-Hua Wang, February 20, 2012 Probability, Chap 1 - p. 79/82
■ We have n people. ■ We wish to form a team of k people. ■ How many different teams are possible? ■ For example. 4 people A, B C, and D. a team of 2 persons. ■ The first person can be A, B C, and D. The second have 3
■ However, the order is of of matter. Only 6 distinct teams.
Peng-Hua Wang, February 20, 2012 Probability, Chap 1 - p. 80/82
■ In general, for k-team from n people, we have
Peng-Hua Wang, February 20, 2012 Probability, Chap 1 - p. 81/82
■ We have n people. ■ We wish to form a team of k1 people and another team of
■ How many different teams are possible? ■ First, we choose n1 people and then choose n2 from the
Peng-Hua Wang, February 20, 2012 Probability, Chap 1 - p. 82/82
■ In general, we have n people. ■ We wish to form r teams, the ith team has ki people,
■ This is called the multinomial coefficient. ■ (n
k) is the coefficient of xkyn−k in the expansion of
■ (
n n1,n2,...,nr) is the coefficient of xn1 1 xn2 2 · · · xnr r in the