Professional Documents
Culture Documents
Introduction To Probability Theory
Introduction To Probability Theory
Introduction To Probability Theory
https://www.vfu.bg/en/e-Learning/Math--
Bertsekas_Tsitsiklis_Introduction_to_probability.pdf
3
RJEs: Remote job entry points
Sets
A set is a collection of objects, which are the elements of the set.
A set can have no elements, in which case it is called the empty set,
denoted by
4
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Sets
If a set (S) contains a finite number of elements, say
Possible outcomes of a coin toss is {H, T}, where H stands for “heads”
and T stands for “tails.”
S = {H, T}
5
RJEs: Ref.
Remote job-entry
Book points to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Introduction
Sets
If S contains infinite elements x1, x2, . . .
E.g. set of all scalars x in the interval [0, 1] can be written as,
6
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Sets
If every element of a set S is also an element of a set T, we say that S
is a subset of T
T T
S
S
Venn diagrams
The union of two sets S and T is the set of all elements
that belong to S or T (or both), and is denoted by
8
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Venn diagrams
9
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Set operations
Consider the union or the intersection of several sets
Two sets are said to be disjoint if their intersection is empty. More generally,
several sets are said to be disjoint if two of them have a no common element.
11
RJEs: Remote job entry points
The Algebra of Sets
12
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
de Morgan’s laws
13
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Probabilistic Models
The set of all possible outcomes is called the sample space of the experiment,
and is denoted by Ω.
Event
A subset of the sample space, that is, a collection of possible outcomes, is called
an event.
15
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Sample Spaces and Events
Examples:
1. If the experiment consists of the flipping of a coin, then
where H means that the outcome of the toss is a head and T that it is a tail.
3. If the experiments consists of flipping two coins, then the sample space consists
of the following four points:
The outcome will be (H, H) if both coins come up heads; it will be (H, T ) if the first coin comes up heads
and the second comes up tails; it will be (T, H) if the first comes up tails and the second heads; and it
will be (T, T ) if both coins come up tails. 16
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Home work
Example 1.1. Consider two alternative games, both involving ten successive coin
tosses:
Game 2: We receive $1 for every coin toss, up to and including the first time a head
comes up. Then, we receive $2 for every coin toss, up to the second time a head
comes up. More generally, the dollar amount per toss is doubled each time a head
comes up.
17
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Sequential Models
where the outcome (i, j) is said to occur if i appears on the first die and j on the
second die.
19
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Probability Axioms
1. (Non-negativity) P(A) ≥ 0, for every event A.
2. (Additivity) If A and B are two disjoint events, then the probability of their union
satisfies
P(A ∪ B) = P(A) + P(B)
Furthermore, if the sample space has an infinite number of elements and A1,A2, .
is a sequence of disjoint events, then the probability of their union satisfies
P(Ω) = 1
20
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Probability Axioms
Example Coin tosses. Consider an experiment involving a single coin toss. There
are two possible outcomes, heads (H) and tails (T). The sample space is Ω = {H, T},
and the events are
If the coin is fair, i.e., if we believe that heads and tails are “equally likely,” we
should assign equal probabilities to the two possible outcomes and specify that
Which is consistent with the normalization axiom. Thus, the probability law is given
by
21
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Exercise
Consider another experiment involving three coin tosses. The outcome will now
be a 3-long string of heads or tails. The sample space is
Assume that each possible outcome has the same probability of 1/8.
22
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Discrete Probability Law
If the sample space consists of a finite number of possible outcomes, then the
probability law is specified by the probabilities of the events that consist of a single
element. In particular, the probability of any event {s1, s2, . . . , sn} is the sum of
the probabilities of its elements:
23
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Exercise
Consider the experiment of rolling a pair of 4-sided dice. We assume the dice are fair, and we
interpret this assumption to mean
that each of the sixteen possible outcomes [ordered
pairs (i, j), with i, j = [1, 2, 3, 4], has the same
probability of 1/16. To calculate the probability of
an event, we must count the number of elements of
event and divide by 16 (the total number of possible
outcomes). Here are some event probabilities
calculated in this way:
Sample space:
1, 1; 2, 1; 3, 1; 4, 1;
1, 2; 2, 2; 3, 2; 4, 2;
1, 3; 2, 3; 3, 3; 4, 3;
1, 4; 2, 4; 3, 4; 4, 4;
24
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Exercise
Sample space:
1, 1; 2, 1; 3, 1; 4, 1;
1, 2; 2, 2; 3, 2; 4, 2;
1, 3; 2, 3; 3, 3; 4, 3;
1, 4; 2, 4; 3, 4; 4, 4;
25
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Continuous Models
Probabilistic models with continuous sample spaces differ from their discrete counterparts in that the
probabilities of the single-element events may not be sufficient to characterize the probability law.
This is illustrated in the following examples, which also illustrate how to generalize the uniform
probability law to the case of a continuous sample space.
26
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Properties of Probability Laws
27
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Properties of Probability Laws
28
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Properties of Probability Laws
29
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Properties of Probability Laws
30
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Properties of Probability Laws
31
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Conditional Probability
Conditional probability provides us with a way to reason about the
outcome of an experiment, based on partial information
32
RJEs: Remote job entry points
Conditional Probability
Conditional probability provides us with a way to reason about the outcome of an
experiment, based on partial information
Example: All six possible outcomes of a fair die roll are equally likely. If we are
told that the outcome is even, we are left with only three possible outcomes,
namely, 2, 4, and 6. These three outcomes were equally likely to start with, and so
they should remain equally likely given the additional knowledge that the outcome
was even.
33
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Probability Law
34
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Additive properties
35
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Properties
36
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Exercise
We toss a fair coin three successive times. We wish to find the conditional probability P(A|B) when
A and B are the events defined as follow
The event B consists of the four elements HHH, HHT, HTH, HTT, so its probability is
37
RJEs: Remote job entry points
Exercise
A fair 4-sided die is rolled twice and we assume that all sixteen
possible outcomes are equally likely. Let X and Y be the result of the
1st and the 2nd roll, respectively. We wish to determine the conditional
probability P(A|B) where
38
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Exercise
The conditioning event B = {min(X,Y) = 2} consists of
the 5-element shaded set.
40
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Exercise
42
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Exercise
(a) The probability that team C is successful is 2/3 SS: both succeed
FF: both fail
SF: C succeeds, N fails
FS: C fails, N succeeds
(b) The probability that team N is successful is 1/2
Assuming that exactly one successful design is produced, what is the probability
that it was designed by team N?
44
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Multiplication Rule
Assuming that all of the conditioning events have positive probability,
we have
By using the definition of conditional probability to rewrite the right-hand side above
as
45
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Visualization of the total probability theorem
46
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Total Probability Theorem
Let A1, . . . , An be disjoint events that form a partition of the sample space (each
possible outcome is included in one and only one of the events A1, . . . , An) and
assume that P(Ai) > 0, for all i = 1, . . . , n.
47
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Homework
Three cards are drawn from an ordinary 52-card deck without replacement (drawn
cards are not placed back in the deck). We wish to find the probability that none of
the three cards is a heart. We assume that at each step, each one of the
remaining cards is equally likely to be picked. By symmetry, this implies that every
triplet of cards is equally likely to be drawn. A cumbersome approach, that we will
not use, is to count the number of all card triplets that do not include a heart, and
divide it with the number of all possible card triplets. Instead, we use a sequential
description of the sample space in conjunction with the multiplication rule.
48
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Exercise
You enter a chess tournament where your probability of winning a game is 0.3 against half the players
(call them type 1), 0.4 against a quarter of the players (call them type 2), and 0.5 against the
remaining quarter of the players (call them type 3). You play a game against a randomly chosen
opponent.
What is the probability of winning? Let Ai be the event of playing with an opponent of type i. We
have
Ai be the event of
playing with an
opponent of type i.
49
RJEs: Remote job entry points
Exercise
Using the additivity axiom, it follows that
50
RJEs: Remote job entry points
Homework exercise
We roll a fair four-sided die. If the result is 1 or 2, we roll once more but otherwise,
we stop. What is the probability that the sum total of our rolls is at least 4?
51
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Homework exercise
Alice is taking a probability class and at the end of each week she can be either up-
to-date or she may have fallen behind. If she is up-to-date in a given week, the
probability that she will be up-to-date (or behind) in the next week is 0.8 (or 0.2,
respectively). If she is behind in a given week, the probability that she will be up-to-
date (or behind) in the next week is 0.6 (or 0.4, respectively). Alice is (by default) up-
to-date when she starts the class. What is the probability that she is up-to-date after
three weeks?
52
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Bayes’ Rule
Let A1,A2, . . . , An be disjoint events that form a partition of the sample space, and
assume that P(Ai) > 0, for all i. Then, for any event B such that P(B) > 0, we have
53
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Bayes’ Rule
An example of the inference context that is implicit in Bayes’ rule. We observe a shade in a person’s X-ray (this
is event B, the “effect”) and we want to estimate the likelihood of three mutually exclusive and collectively
exhaustive potential causes: cause 1 (event A1) is that there is a malignant tumor, cause 2 (event A2) is that
there is a non-malignant tumor, and cause 3 (event A3) corresponds to reasons other than a tumor. We assume
that we know the probabilities P(Ai) and P(B | Ai), i = 1, 2, 3. Given that we see a shade (event B occurs),
Bayes’ rule gives the conditional probabilities of the various causes as
54
RJEs: Remote job entry points
Exercise
Let us return to the chess problem of exercise on Slide - 51
Suppose that you win. What is the probability P(A1 |B) that you had an opponent
of type 1?
55
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Independent Events Vs Mutually Exclusive Events
56
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Independence
What are Independent Events?
For example, if we flip a coin in the air and get the outcome as Head, then again
if we flip the coin but this time we get the outcome as Tail.
57
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Exercise
Consider an example of rolling a die. If A is the event ‘the number appearing is
odd’ and B be the event ‘the number appearing is a multiple of 3’, then prove that
A and B are the independent event events and compute P(A ∩ B) and P(A│B).
Also A ∩ B is the event ‘the number appearing is odd and a multiple of 3’ so that
A∩B={3} P(A ∩ B) = 1/6
P(A ∩ B) = P(A)P(B) = (3/6)(2/6)=1/6
Therefore A and B are independent
P(A│B) = P(A ∩ B)/ P(B) = (1/6)/(2/6) = 0.5
58
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Independence and Multiplication rule of probability
A is independent of B
59
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Independence
A is independent of B
60
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Exercise
Consider an experiment involving two successive rolls of a 4-sided die in which all
16 possible outcomes are equally likely and have probability 1/16.
61
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Properties
62
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Exercise
Consider the experiment of rolling a pair of 4-sided dice. We assume the dice are fair, and we
interpret this assumption to mean
that each of the sixteen possible outcomes [ordered
pairs (i, j), with i, j = [1, 2, 3, 4], has the same
probability of 1/16. To calculate the probability of
an event, we must count the number of elements of
event and divide by 16 (the total number of possible
outcomes). Here are some event probabilities
calculated in this way:
Sample space:
1, 1; 2, 1; 3, 1; 4, 1;
1, 2; 2, 2; 3, 2; 4, 2;
1, 3; 2, 3; 3, 3; 4, 3;
1, 4; 2, 4; 3, 4; 4, 4;
63
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Properties
64
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Conditional Independence
Given an event C, the events A and B are called conditionally
independent
65
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Multiplication Rule
Assuming that all of the conditioning events have positive probability,
we have
By using the definition of conditional probability to rewrite the right-hand side above
as
66
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Visualization of the total probability theorem
67
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Summary - Independence
Two events A and B are said to independent if
P(A ∩ B) = P(A) P(B)
Two events A and B are said to be conditionally independent, given another event
C with P(C) > 0,
If P(A ∩ B |C) = P(A|C)P(B |C)
Remote
RJEs: Independence
job entry points does not imply conditional independence, and vice versa 68
Independence of a Collection of Events
The events A1,A2 , . . . , An are independent if
The first three conditions simply assert that any two events are independent, a
property known as pairwise independence. But the fourth condition is also
important and does not follow from the first three. Conversely, the fourth condition
does not imply the first three. 69
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Exercise
Prove that Pairwise independence does not imply independence
Consider two independent fair coin tosses {H,T}, and the following events:
H1 = {1st toss is a head} = {H}
H2 = {2nd toss is a head} = {H}
D = {the two tosses have different results} = {HH, {HT, TH}, TT}
70
RJEs: Remote job entry points
Series Connection
Let a subsystem consist of components 1, 2, . . . , m, and let (pi ) be the probability
that component i is up (“succeeds”).
71
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Parallel Connection
A parallel subsystem succeeds if any one of its components succeeds, so its
probability of failure is the product of the probabilities of failure of the
corresponding components
72
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Exercise
For a given network, calculate the probability of success for a path from A to B
73
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Exercise
For a given network, calculate the probability of success for a path from A to B
74
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Independent Trials and the Binomial Probabilities
If an experiment involves a sequence of independent but identical
stages, we say that we have a sequence of independent trials.
In the special case where there are only two possible results at each
stage, we say that we have a sequence of independent Bernoulli
trials.
E.g., “it rains” or “it doesn’t rain,” or coin tosses results as “heads” (H)
and “tails” (T).
75
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Independent Bernoulli trials – Sequential description
Sequential description of the sample space of an experiment involving three
independent tosses of a biased coin
76
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Exercise
Compute the probability of k heads come up in an n-toss sequence
77
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Properties
by convention, 0! = 1
78
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
The Counting Principle
80
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
k-permutations
Start with n distinct objects, and let k be some positive integer, with k ≤ n. Count the number of different
ways that we can pick k out of these n objects and arrange them in a sequence,
We can choose any of the n objects to be the first one. Having chosen the first, there are only n−1
possible choices for the second; given the choice of the first two, there only remain n − 2 available objects
for the third stage, etc.
When we are ready to select the last (the kth) object, we have already chosen k − 1 objects, which leaves us
with n − (k − 1) choices for the last one. By the Counting Principle, the number of possible sequences, called
k-permutations, is
In the special case where k = n, the number of possible sequences, simply called permutations, is
81
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Exercise - k-permutations
Count the number of words that consist of four distinct letters.
82
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Combinations
In a combination there is no ordering of the selected elements
AB, AC, AD, BA, BC, BD, CA, CB, CD, DA, DB, DC,
Note that specifying an n-toss sequence with k heads is the same as picking k elements (those
that correspond to heads) out of the n-element set of tosses. Thus, the number of combinations is
the same as the binomial coefficient
83
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Combinations - Exercise
Count the number of combinations of two out of the four letters A, B, C, and D
Let n = 4 and k = 2.
84
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Random variable
A random variable is a variable which represents the outcome of a trial, an
experiment or event.
It is a specific number which is different each time the trial, experiment or event is
repeated.
Let X be the random variable equal to the sum of both the outcomes of the rolls
P(X=12) = 1/36
85
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Concepts Related to Random Variables
A random variable is a real-valued function of the outcome of the
experiment.
E.g.
87
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Continuous Random Variable
Continuous random variables describe outcomes in probabilistic situations
where the possible values some quantity can take form a continuum, which is
often (but not always) the entire set of real numbers R
88
RJEs: Remote job -entry
Ref. Book points to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis , https://brilliant.org/wiki/continuous-random-variables-definition/
Introduction
Concepts Related to Discrete Random Variables
• A discrete random variable is a real-valued function of the outcome
of the experiment that can take a finite or countably infinite number of
values.
89
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
PROBABILITY MASS FUNCTION (PMF)
For a discrete random variable X, these are captured by the probability mass
function (PMF) of X, denoted pX. In particular, if x is any possible value of X,
the probability mass of x, denoted pX(x), is the probability of the event
{X = x} consisting of all outcomes that give rise to a value of X equal to x:
For example, let the experiment consist of two independent tosses of a fair
coin, and let X be the number of heads obtained. X = { HH, HT, TH, TT }
90
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
PROBABILITY MASS FUNCTION (PMF)
For a discrete random variable X, these are captured by the probability mass
function (PMF) of X, denoted pX. In particular, if x is any possible value of X,
the probability mass of x, denoted pX(x), is the probability of the event
{X = x} consisting of all outcomes that give rise to a value of X equal to x:
For example, let the experiment consist of two independent tosses of a fair
coin, and let X be the number of heads obtained. X = { HH, HT, TH, TT }
91
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Calculation of the PMF of a Random Variable X
Random variable X = maximum roll in two independent rolls of a fair 4-sided die.
92
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Calculation of the PMF of a Random Variable X
Collect all the possible outcomes that give rise to the event {X = x}.
93
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
The Bernoulli Random Variable
Consider the toss of a biased coin, which comes up a head with probability p, and a tail with
probability 1−p.
The Bernoulli random variable takes the two values 1 and 0
The Bernoulli random variable is used to model probabilistic situations with just two
outcomes,
(a) The state of a telephone at a given time that can be either free or busy.
(b) A person who can be either healthy or sick with a certain disease.
95
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Exercise
Plot the Binomial PMF for the given cases:
96
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Exercise
97
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Geometric Random Variable
The geometric random variable is used when repeated independent trials are
performed until the first “success.”
Each trial has probability of success p and the number of trials until the first
success is modelled by the geometric random variable.
98
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
The Poisson Random Variable
A Poisson random variable takes nonnegative integer values. Its PMF is given by
Poisson random variable, think of a binomial random variable with very small p
and very large n.
Using the Poisson PMF may result in simpler models and calculations. For
example, let n = 100 and p = 0.01. Then the probability of k = 5 successes in
n = 100 trials is calculated using the binomial PMF as
Using the Poisson PMF with λ = np = 100 ・ 0.01 = 1, this probability is approximated by
101
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
FUNCTIONS OF RANDOM VARIABLES
Consider a probability model of today’s weather, let the random variable X be the
temperature in degrees Celsius, and consider the transformation Y = 1.8X + 32,
which gives the temperature in degrees Fahrenheit. In this example, Y is a linear
function of X, of the form
102
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Properties
If X is discrete with PMF pX, then Y is also discrete, and its PMF pY can be
calculated using the PMF of X. In particular, to obtain pY (y) for any y, we add the
probabilities of all values of x such that g(x) = y:
103
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Exercise
Let Y = |X| and let us apply the preceding formula for the PMF and compute
compute pY(y) to the case where
Y = |X|
104
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Exercise
Let Y = |X| and let us apply the preceding formula for the PMF and compute
compute pY(y) to the case where
The possible values of Y are y = 0, 1, 2, 3, 4. To compute pY (y) for some given value y from this
range, we must add pX(x) over all values x such that |x| = y. In particular, there is only one value
of X that corresponds to y = 0, namely x = 0.
105
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
The PMFs of X and Y = |X|
106
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Homework exercise
Try the previous exercise for Z = X2
107
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Expectation or Mean of a Random Variable
Suppose you spin a wheel of fortune many times. At each spin, one of the numbers
m1, m2, . . . , mn comes up with corresponding probability p1, p2, . . . , pn, and this is
your monetary reward from that spin. What is the amount of money that you
“expect” to get “per spin”?
Suppose that you spin the wheel k times, and that ki is the number of times that the
outcome is mi. Then, the total amount received is m1k1 +m2k2 +・ ・ ・+ mnkn.
108
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Expectation or Mean of a Random Variable
Thus, the amount of money per spin that you “expect” to receive is
109
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Exercise - Compute mean
Consider two independent coin tosses, each with a 3/4 probability of a head, and
let X be the number of heads obtained. This is a binomial random variable with
parameters n = 2 and p = 3/4. Its PMF is given below. Compute mean.
110
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Exercise - Compute mean
111
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
nth moment of X
1st moment of X is just the mean
2nd moment of the random variable X as the expected value of the random
variable X2
112
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Variance and Standard Deviation
The standard deviation is often easier to interpret, because it has the same
units as X. For example, if X measures length in meters, the units of variance
are square meters, while the units of the standard deviation are meters.
113
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Exercise – Compute Mean
Consider the random variable X, which has the PMF
The mean E[X] is equal to 0. This can be seen from the symmetry of the PMF of X
around 0, and can also be verified from the definition:
114
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Exercise – Compute Variance
Consider the random variable X, which has the PMF
115
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Expected Value Rule for Functions of Random Variables
116
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Expected Value Rule for Functions of Random Variables
117
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Expected Value Rule for Functions of Random Variables
Using the expected value rule, we can write the variance of X as
118
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Exercise
For the random variable X with PMF
119
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Summary - Variance
120
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Expected value rule for functions
Y is a random variable is a function of another random variable X
Where a and b are given scalars. Let us derive the mean and the variance of the
linear function Y.
121
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Property of Mean and Variance
122
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Variance in Terms of Moments Expression
123
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Exercise - Mean and Variance of the Bernoulli
Consider the experiment of tossing a biased coin, which comes up a head with
probability p and a tail with probability 1 − p, and the Bernoulli random variable X
with PMF
Second moment
124
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Exercise
What is the mean and variance of the roll of a fair six-sided die? If we view the
result of the roll as a random variable X, its PMF is
E[X] = 3.5
125
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
The Mean of the Poisson
126
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Joint PMFs of Multiple Random Variables
Consider two discrete random variables X and Y associated with the same
experiment.
127
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Joint PMFs of Multiple Random Variables
The joint PMF determines the probability of any event that can be specified in terms of the
random variables X and Y. For example if A is the set of all pairs (x, y) that have a certain
property, then
In the special case where g is linear and of the form aX+bY +c, where a, b, and c
are given scalars, we have
129
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Illustration of the tabular method for calculating marginal PMFs
from joint PMFs
130
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
More than two Random Variables
The joint PMF of three random variables X, Y , and Z is defined
For all possible triplets of numerical values (x, y, z). Corresponding marginal PMFs
131
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Exercise - Mean of the Binomial
A class has 300 students and each student has probability 1/3 of getting an A, independently of
any other student. What is the mean of X, the number of students that get an A?
Thus X1,X2, . . . , Xn are Bernoulli random variables with common mean p = 1/3 and
variance p(1 − p) = (1/3)(2/3) = 2/9. Their sum is the number of students that get an A.
If we repeat this calculation for a general number of students n and probability of A equal to p, we
obtain
132
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Summary of Facts About Joint PMFs
Let X and Y be random variables associated with the same experiment.
The joint PMF of X and Y is defined by
The marginal PMFs of X and Y can be obtained from the joint PMF, using the formulas
133
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
CONDITIONING
PMF pX|A(x): For each x, we add the probabilities of the outcomes in the intersection {X = x} ∩ A
and normalize by diving with P(A).
The conditional PMF of a random variable X, conditioned on a particular event A with P(A) > 0, is
defined by
134
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
CONDITIONING - Exercise
Let X be the roll of a die and let A be the event that the roll is an even number.
Compute the PX/A(x).
135
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Conditioning one Random Variable on Another
Let X and Y be two random variables conditional PMF pX|Y of X given Y
Normalization property
136
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Exercise
Consider a transmitter that is sending messages over a computer network. Let us define the
following two random variables:
X : the travel time of a given message, Y : the length of the given message.
We know the PMF of the travel time of a message that has a given length, and we know the PMF of
the message length. We want to find the (unconditional) PMF of the travel time of a message.
Assume that the travel time X of the message depends on its length Y and the congestion level of
the network at the time of transmission. In particular, Length of a message can take two possible
values:
y = 102 bytes with probability (p) = 5/6
y = 104 bytes with probability (p) = 1/6
137
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Exercise - Compute the PMF of X
To compute the PMF of X, we use the total probability formula
138
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Conditional Expectation
Let X and Y be random variables associated with the same experiment.
139
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Total expectation theorem
Let A1, . . . , An be disjoint events that form a partition of the sample space, and
assume that P(Ai) > 0 for all i. Then,
The total expectation theorem basically says that “the unconditional average
can be obtained by averaging the conditional averages.”
140
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Homework – Exercise – 2.12 (Page-29)
Consider four independent rolls of a 6-sided die. Let X be the number of 1’s and let
Y be the number of 2’s obtained. What is the joint PMF of X and Y ? The marginal
PMF pY is given by the binomial formula
141
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Independence of a Random Variable from an Event
The independence of a random variable from an event is similar to the
independence of two events. The idea is that knowing the occurrence of the
conditioning event tells us nothing about the value of the random variable. We can
say that the random variable X is independent of the event A if
142
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Independence of Random Variables
The notion of independence of two random variables is similar. We say that
two random variables X and Y are independent if
144
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Independence of Random Variables
If X and Y are independent random variables, then
Proof:
145
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Variance
Consider now the sum Z = X + Y of two independent random variables X and Y,
and let us calculate the variance of Z. We have, using the relation
E[X + Y ] = E[X] + E[Y ],
147
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Independence of Several Random Variables
For example, three random variables X, Y , and Z are said to be independent if
If X, Y, and Z are independent random variables, then any three random variables
of the form f(X), g(Y), and h(Z), are also independent
Similarly, any two random variables of the form g(X, Y) and h(Z) are independent.
On the other hand, two random variables of the form g(X, Y) and h(Y, Z) are
usually not independent, because they are both affected by Y .
148
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Continuous Random Variables and PDFs
A random variable X is called continuous if its probability law can be described in
terms of a nonnegative function fX, called the probability density function of X,
or Probability Density Function (PDF) for short, which satisfies
The probability that the value of X falls within an interval is given below and and
can be interpreted as the area under the graph of the PDF
149
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Continuous Random Variables and PDFs
The probability that the value of X falls within an interval is given below and can
be interpreted as the area under the graph of the PDF
150
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Probability mass per unit length
To interpret the PDF, note that for an interval [x, x + δ] with very small length δ,
we have
If δ is very small, the probability that X takes value in the interval [x, x + δ] is
the shaded area in the figure, which is approximately equal to fX(x)・ δ.
151
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Continuous Uniform Random Variable
A gambler spins a wheel of fortune, continuously calibrated between 0 and 1,
and observes the resulting number. Assuming that all subintervals of [0,1] of the
same length are equally likely, this experiment can be modelled in terms a
random variable X with PDF
For some constant c. This constant can be determined by using the normalization
property
152
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
The PDF of a uniform random variable
153
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Piecewise Constant PDF
Alvin’s driving time to work is between 15 and 20 minutes if the day is sunny,
and between 20 and 25 minutes if the day is rainy, with all times being equally
likely in each case. Assume that a day is sunny with probability 2/3 and rainy
with probability 1/3. What is the PDF of the driving time, viewed as a random
variable X?
“All times are equally likely” in the sunny and the rainy cases, to mean that the
PDF of X is constant in each of the intervals [15, 20] and [20, 25].
154
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Piecewise Constant PDF
155
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Piecewise Constant PDF
Where a1, a2, . . . , an are some scalars with ai < ai+1 for all i, and c1, c2, . . . , cn are
some nonnegative constants
156
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
PDF Properties
157
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Expectation
The expected value or mean of a continuous random variable X is
defined by
158
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Expectation of a Continuous Random Variable and its Properties
159
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Expectation of a Continuous Random Variable and its Properties
160
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Exercise
Consider the case of a uniform PDF over an interval [a, b], as shown below
and compute Mean and Variance of the Uniform Random Variable
161
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Exercise
Consider the case of a uniform PDF over an interval [a, b], as shown below and
compute Mean and Variance of the Uniform Random Variable
162
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Exercise
Consider the case of a uniform PDF over an interval [a, b], as shown below and
compute Mean and Variance of the Uniform Random Variable
163
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Annexure-I
164
RJEs: Remote job entry points https://softmathblog.weebly.com/blog/learn-algebra-equation-and-its-formulas-and-properties
Exponential Random Variable
An exponential random variable has a PDF of the form
Note that the probability that X exceeds a certain value falls exponentially.
Indeed, for any a ≥ 0, we have
165
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Exponential Random Variable
An exponential random variable has a PDF of the form
An exponential random variable can be a very good model for the amount of
time until a piece of equipment breaks down, until a light bulb burns out, or until
an accident occurs.
166
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Mean of an Exponential Random Variable
An exponential random variable has a PDF of the form
167
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Second moment of an Exponential Random Variable
An exponential random variable has a PDF of the form
168
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Variance of an Exponential Random Variable
An exponential random variable has a PDF of the form
169
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Exercise
The time until a small meteorite first lands anywhere on the earth is modelled as
an exponential random variable with a mean of 10 days. The time is currently
midnight. What is the probability that a meteorite first lands some time between
6am and 6pm of the first day?
Let X be the time elapsed until the event of interest, measured in days. Then, X is
exponential, with mean 1/λ = 10, which yields λ = 1/10.
170
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Cumulative Distribution Functions - CDF
The CDF of a random variable X is denoted by FX and provides the probability
P(X ≤ x).
172
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Properties of a CDF
173
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Properties of a CDF
174
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
The Geometric and Exponential CDFs
Let X be a geometric random variable with parameter p; that is, X is the number of
trials to obtain the first success in a sequence of independent Bernoulli trials, where
the probability of success is p.
175
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
CDFs of some continuous random variables.
176
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Relation of the geometric and the exponential CDFs
177
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Normal Random Variables
A continuous random variable X is said to be normal or Gaussian if it has a PDF of
the form
Where μ and σ are two scalar parameters characterizing the PDF, with σ
assumed nonnegative. It can be verified that the normalization property
178
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Normal Random Variables
A normal PDF and CDF, with μ = 1 and σ2 = 1. We observe that the PDF is
symmetric around its mean μ, and has a characteristic bell-shape. As x gets
further from μ, the term e−(x−μ)2/2σ2 decreases very rapidly. In this figure, the PDF is
very close to zero outside the interval [−1, 3].
179
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Normal Random Variables
The mean and the variance can be calculated to be
To see this, note that the PDF is symmetric around μ, so its mean must be μ.
Furthermore, the variance is given by
180
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Normal Random Variables
181
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Standard Normal Random Variables
The last equality above is obtained by using the fact
182
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Normality is Preserved by Linear Transformations
183
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
The Standard Normal Random Variable
A normal random variable Y with zero mean and unit variance is said to be a
standard normal. Its CDF is denoted by Φ,
Let X be a normal random variable with mean μ and variance σ2. We “standardize”
X by defining a new random variable Y given by
184
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
The Standard Normal Random Variable
185
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
CDF Calculation of the Normal Random Variable
186
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Exercise - Signal Detection
A binary message is transmitted as a signal that is either −1 or +1. The communication channel corrupts the
transmission with additive normal noise with mean μ = 0 and variance σ2. The receiver concludes that the
signal −1 (or +1) was transmitted if the value received is < 0 (or ≥ 0, respectively); What is the probability of
error?
The area of the shaded region gives the probability of error in the two cases where −1 and +1 is transmitted.
187
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Exercise - Signal Detection
An error occurs whenever −1 is transmitted and the noise N is at least 1
So that N +S = N −1 ≥ 0,
So that N + S = N +1 < 0.
188
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
CONDITIONING ON AN EVENT
The conditional PDF of a continuous random variable X, conditioned on a
particular event A with P(A) > 0, is a function fX|A that satisfies
189
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
CONDITIONING ON AN EVENT
The conditional PDF of a continuous random variable X, conditioned on a
particular event A with P(A) > 0, is a function fX|A that satisfies
The unconditional PDF fX and the conditional PDF fX|A, where A is the
interval [a, b]. Note that within the conditioning event A, fX|A retains the
same shape as fX, except that it is scaled along the vertical axis.
190
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Conditional PDF and Expectation Given an Event
191
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Conditional PDF and Expectation Given an Event
192
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Multiple Continuous Random Variables
We say that two continuous random variables associated with a common experiment are jointly
continuous and can be described in terms of a joint PDF fX,Y , if fX,Y is a nonnegative function that
satisfies
For every subset B of the two-dimensional plane. The notation above means that the integration is
carried over the set B. In the particular case where B is a rectangle of the form B = [a, b] × [c, d], we
have
Normalization property
193
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Multiple Continuous Random Variables
To interpret the PDF, we let δ be very small and consider the probability of a small
rectangle. We have
194
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Marginal PDF
The joint PDF contains all conceivable probabilistic information on the random
variables X and Y , as well as their dependencies. It allows us to calculate the
probability of any event that can be defined in terms of these two random variables.
As a special case, it can be used to calculate the probability of an event involving
only one of them. For example, let A be a subset of the real line and consider the
event {X ∈ A}. We have
195
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Expectation
If X and Y are jointly continuous random variables, and g is some function, then
Z = g(X, Y ) is also a random variable. We will see in Section 3.6 methods for
computing the PDF of Z, if it has one. For now, let us note that the expected
value rule is still applicable and
196
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Conditioning one Random Variable on Another
197
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Circular Uniform PDF
We throw a dart at a circular target of radius r. We assume that we always hit the
target, and that all points of impact (x, y) are equally likely, so that the joint PDF
of the random variables X and Y is uniform. Since the area of the circle is πr2,
we have
198
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Circular Uniform PDF
199
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Circular Uniform PDF
200
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Independence of Continuous Random Variables
201
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Joint CDFs
202
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Expectation or mean
We have seen that the mean of a function Y = g(X) of a continuous random
variable X, can be calculated using the expected value rule
203
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
DERIVED DISTRIBUTIONS
204
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Home-work - Exercise
John Slow is driving from Boston to the New York area, a distance of 180 miles. His average speed
is uniformly distributed between 30 and 60 miles per hour. What is the PDF of the duration of the
trip?
205
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Exercise
206
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Exercise
207
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Stochastic process
A stochastic process is a mathematical model of a probabilistic experiment that
evolves in time and generates a sequence of numerical values. For example,
a stochastic process can be used to model:
208
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Two major categories of stochastic processes
Arrival-Type Processes:
209
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis
Two major categories of stochastic processes
Markov Processes
Experiments that evolve in time and in which the future evolution exhibits a
probabilistic dependence on the past.
As an example, the future daily prices of a stock are typically dependent on past
prices.
210
RJEs: Remote job entry points Ref. Book - Introduction to Probability by Dimitri P. Bertsekas and John N. Tsitsiklis