Probability & Stochastic Processes
Probability & Stochastic Processes
Course Contents
1. Review of probability theory
1.1 Introduction
1.2 Probability Space
1.3 Conditional Probability
2. Random Variables
2.1. Concept of Random Variable
2.2. Distribution and Density Functions
2.3. Conditional Distribution
2.4. Jointly distributed random variables
2.5. Joint Characteristic Functions
3. Sequences of Random Variables
3.1. General Concepts
3.2. Conditional Densities, Characteristic Fun. &. Normality
3.3. Mean Square Estimation
3.4. Stochastic Convergence and Limit
Course Contents …
4. Stochastic Processes
4.1. General Concepts of Stochastic Processes
4.2. The Power Spectrum
4.3. Random Walks and Other Applications
5. Spectral Analysis
5.1. Spectral Representation
5.2. Spectrum Estimation
5.3. Mean Square Estimation
6. Markov Processes and Queueing Theory
6.1. Introduction to Markov Chains
6.2. Transition Probabilities and Kolmogrov Equation
6.3. Markov Processes
6.4. Queueing Theory
7. Applications of Stochastic processes in Communication
System.
Textbook: A. Papoulis and Pillai, Probability, Random variables &
Stochastic processes; Fourth Edition, McGraw Hill, 2001
References:
1.W. Feller, An Introduction to probability Theory and
Applications, Vol.II
2. W.E Davenport and W. L Root, Introduction to the Theory of
Random Signals and Noise
3. A. Leon‐Garcia, Probability and Random Processes for
Electrical Engineering, Addison‐Wesley, 2nd Edition, 1994.
4. Kenneth H. Rosen: Discrete Mathematics and its Applications,
McGraw-Hill.
Text Book
5
Chapter 1
Review of probability theory
1.1 Introduction
Overview:
An event may or may not occur
What’s Random?
Occurrence of an event is inevitable
What’s Certain?
An event can never occur
What’s Impossible?
Examples:
Disintegration of a given atom of radium
Finding no defect during inspection of a microwave oven
Orbit satellite in space is at a certain position
An object travels faster than light
A thunderstorm flashes of lighting precede any thunder echoes
7
8
Random Phenomena, Experiments
9
Probability Definitions
Example
• a box with n white and m red balls
elementary outcomes: {white , red}
Probability of “selecting a white ball”:
1
• P a given number is divisible by a prime p
p
10
Probability Definitions
11
Relative Frequency …
n ( A)
p lim
n n
Dilemmas:
1. Can not be computed since n, only approximation
2. Does the limit of n(A)/n exist?
3. Probabilities that are based on our belief and knowledge are
not justifiable.
The probability that the price of Teff will be raised in
the next six months is 60%.
The probability that it will snow next summer is 30%
12
Probability Definitions
Example
13
Counting - Remark
Example
- Number of elements in a Cartesian product
- Number of PINs without repetition
- Number of Input/Output tables for a circuit with n input signals
- Number of iterations in nested loops
14
Permutations and Combinations
Example
15
Example: The Birthday Problem
16
Axioms of Probability
17
Axioms of Probability
Sample Space:
The set of all possible outcomes, denoted by
• Sample points:
These outcomes are called sample points, or points.
• Events:
Certain subsets of are referred to as events.
Sample Space
b j
a k m o Sample point
f l
d e h p Event
c g i n
18
Example 1:
For the experiment of tossing a coin once, what is the
sample space S ?
Example 2:
Suppose that an experiment consists of two steps.
First a coin is flipped. If the outcome is tails, a die is
tossed. If the outcome is head, the coin is flipped again.
What is the sample space S ? What is the event of
heads in the first flip of the coin? What is the event
of an odd outcome when the die is tossed?
19
Example 3:
Consider measuring the lifetime of a light bulb. Since
any nonnegative real number can be considered as the
lifetime of the light bulb (in hours), the sample space S
is S = {x:x 0 }.
20
Example 4:
Suppose that a study is being done on all families with
one, two, or three children. Let the outcome of the
study be the genders of the children in descending
order of their ages. What is the sample space S ?
What is the event F where the eldest child is a boy?
What is the event G where families with exactly 2 girls?
Ans:S = { }
F={ }
G={ }
21
Relations of Events
Subset
An event E is said to be a subset of the event F if,
whenever E occurs, F also occurs. E F
Equality
Events E and F are said to be equal if the occurrence
of E implies the occurrence of F, and vice versa.
E=F
E F and F E
Intersection
An event is called the intersection of two events E and F
if it occurs only whenever E and F occur simultaneously.
It is denoted by E F . General Form:
n
i 1 Ei
22
Relations of Events ….
Union
An event is called the union of events E and F if it
occurs whenever at least one of them occurs.
It is denoted by E F . General Form:
n
i 1 Ei
Complement
An event is called the complement of the event E if it
only occurs whenever E does not occur, denoted by E’
Difference
An event is called the difference of two events E and F
if it occurs whenever E occurs but F does not, and is
denoted by EF .
Notes: E’ = SE and EF = EF’
23
Relations of Events …..
Certainty
An event is called certain if it its occurrence is
inevitable. The sample space is a certain event.
Impossibility
An event is called impossibility if there is certainty in
its nonoccurence. The empty set is an impossible event.
Mutually Exclusiveness
If the joint occurrence of two events E and F is
impossible, we say that E and F are mutually exclusive.
That is, EF = .
24
Axioms of Probability
A
A B A B A
A B A B A
25
Mutually Exclusiveness and Partitions
A1
A2
A B Ai
Aj An
A B
26
De-Morgan’s Laws
A B A B ; A B A B
A B A B A B A B
A B A B A B
27
Events
28
Events and Set Operators
29
Fields
(i) F
(ii) If A F , then A F
(iii) If A F and B F , then A B F .
Using (i) - (iii), it is easy to show that the following also belong to F.
30
Fields
If
then
31
Axioms of Probability
Conclusions:
32
Probability of Union of to Non- ME (mutually
exclusive) Sets
A AB
A B
33
Union of Events
34
An Example for Intuitive Understanding
We have:
35
σ-Field (Definition):
36
Extending the Axioms of Probability
If Ai s are pairwise mutually exclusive
37
Summary: Probability Models
38
Conditional Probability
In N independent trials, suppose NA, NB, NAB denote the number of times
events A, B and AB occur respectively.
According to the frequency interpretation of probability, for large N,
NA N N
P( A) , P( B ) B , P( AB) AB .
N N N
Among the NA occurrences of A, only NAB of them are also found among the
NB occurrences of B.
Thus the following is a measure of “the event A given that B has already
occurred”:
N AB N AB / N P( AB)
NB NB / N P( B )
39
Satisfying Probability Axioms
P( AB)
P( A | B ) ,
P( B )
P( B ) 0.
40
Satisfying Probability Axioms
41
Properties of Conditional Probability
Example
42
Law of Total Probability
We can use the conditional probability to express the probability of a
complicated event in terms of “simpler” related events.
Suppose that
So,
43
Conditional Probability and Independence
P( AB) P( A) P( B ).
P( AB) P( A) P( B )
P( A | B ) P( A).
P( B ) P( B )
Thus knowing that the event B has occurred does not shed any
more light into the event A.
44
Independence - Example
Example
From a box containing 6 white and 4 black balls, we remove two balls at
random without replacement.
i. What is the probability that the first one is white and the second one is
black? P(W B ) ?
1 2
W1 B2 W1B2 B2W1.
45
Independence …….
Example Solution
From a box containing 6 white and 4 black balls, we remove two balls at
random without replacement.
i. What is the probability that the first one is white and the second one is
black?
P(W1 B2 ) ?
W1 B2 W1B2 B2W1.
P(W1B2 ) P( B2W1 ) P( B2 | W1 ) P(W1 ).
6 6 3 4 4
P (W1 ) , P( B2 | W1 ) ,
6 4 10 5 54 9
3 4 12
P(W1 B2 )
5 9 45
46
Example - continued
ii. Are W1 and B2 independent?
Removing the first ball has two possible outcomes:
47
General Definition of Independence
Example
In experiment of rolling a die,
A = {2, 4, 6}
B = {1, 2, 3, 4}
C = {1, 2, 4}.
Are events A and B independent?
What about A and C?
48
Bayes’ Theorem
We have:
P( AB)
P( A | B ) ,
Thus, P( B )
P( AB) P( A | B ) P( B ).
Also,
P( BA) P( AB)
P( B | A) ,
P( A) P( A)
P( AB) P( B | A) P( A).
P ( A | B ) P ( B ) P ( B | A) P ( A).
49
Bayesian Updating: Application Of Bayes’ Theorem
50
Bayesian Updating - Example
Example
Suppose there is a new music device in the market that plays a new
digital format called MP∞. Since it’s new, it’s not 100% reliable.
You know that
- 20% of the new devices don’t work at all,
- 30% last only for 1 year,
- and the rest last for 5 years.
If you buy one and it works fine, what is the probability that it will last for 5
years?
51
Generalization of Bayes’ Theorem
A more general version of Bayes’ theorem involves partition of Ω :
P ( B | Ai ) P ( Ai ) P ( B | Ai ) P ( Ai )
P ( Ai | B ) n
,
P( B | A ) P( A )
P( B )
i i
i 1
In which, Ai , i 1 n,
Represents a collection of mutually exclusive events with assiciated apriori
probabilities:
P( Ai ), i 1 n.
With the new information “B has occurred”, the information about Ai can be
updated by the n conditional probabilities:
52
Bayes’ Theorem - Example
Example
Two boxes, B1 and B2 contain 100 and 200 light bulbs respectively.
The first box has 15 defective bulbs and the second 5. Suppose a box is
selected at random and one bulb is picked out.
i. What is the probability that it is defective? P(D)=?
ii. Suppose we test the bulb and it is found to be defective. What is the
probability that it came from box 1?
P( B1 | D) ?
53
Bayes’ Theorem - Example
Example solution
Two boxes, B1 and B2 contain 100 and 200 light bulbs respectively.
The first box has 15 defective bulbs and the second 5. Suppose a box is
selected at random and one bulb is picked out.
54
Example - Continued
ii. Suppose we test the bulb and it is found to be defective. What is the
probability that it came from box 1?
P( B1 | D) ?
P( D | B1 ) P( B1 ) 0.15 1 / 2
P( B1 | D) 0.8571.
P ( D) 0.0875
55