Lecture Set 3
Lecture Set 3
DNSC 6311
Stochastic Foundations: Probability
Korel Gundem
1 / 26
Lecture Outline
▶ Random Variables
▶ Probability Distributions
2 / 26
Random Variable: Basic Ideas
▶ A random variable X is a function (rule) that assigns
numerical values (real numbers) to the outcomes in the
sample space X : S → R.
S *
*
*
* * *
0
▶ For example, consider the experiment of flipping two coins:
S = {HH, TH, HT , TT }
5 / 26
Probability Distribution of RVs: Discrete RVs
▶ We are interested in computing probabilities of random
variables.
▶ A probability distribution is a rule that assigns probabilities to
the outcomes in sample space.
Therefore, it assigns probabilities to any possible value of a
random variable.
▶ Tabular form
▶ Graphical form
▶ Mathematical formula.
6 / 26
Probability Distribution: Tabular Representation
▶ Consider the example on betting numbers 1-6 in tossing the
three dice where you bet on 4.
▶ Probability distribution of X
7 / 26
Probability Distribution: Tabular Representation
x PX (x)
−1 (5/6)(5/6)(5/6) = 125/216
1 3 (1/6)(5/6)(5/6) = 75/216
2 3 (1/6)(1/6)(5/6) = 15/216
3 (1/6)(1/6)(1/6) = 1/216
P
x PX (x) = 1
8 / 26
Probability Distribution: Graphical Representation
−1 0 1 2 3
x
9 / 26
Cumulative Distribution Function
x PX (x) FX (x)
−1 125/216 125/216
1 75/216 200/216
2 15/216 215/216
3 1/216 216/216
10 / 26
Cumulative Distribution Function Plot
−2 −1 0 1 2 3 4
x
▶ Note that for discrete RVs the mean does not have to be a
possible value of the RV.
12 / 26
Joint Probability Distributions
▶ The joint probability distribution for two discrete random
variables X and Y , denoted by PXY (x, y ), is the possible
values of (x, y ) together with their joint probabilities.
It is also referred to as the bivariate distribution of X and Y .
▶ Notation
PXY (x, y ) = P(X = x, Y = y )
denotes the joint probability that the random variable X takes
the value x and, at the same time, the random variable Y
takes the value y .
▶ Properties
▶ 0 ≤ PXY (x, y ) ≤ 1, for all x and y
▶
P P
y x PXY (x, y ) = 1
13 / 26
Joint Probability Distributions - An Example
▶ Assume RVs X and Y are the percent returns of two stocks
with the joint probability distribution given by
Y = 5% Y = 10% Y = 15%
X = −20% 0.05 0.05 0.05
X = 10% 0.10 0.10 0.05
X = 30% 0.30 0.10 0.05
X = 50% 0.10 0.05 0
▶ Note that here we assume that stock returns are discrete
random variables for illustrative purposes.
▶ From the table, the probability that the return from the first
stock (X ) is 10 percent and from the second stock (Y ) is 15
percent on a given period is 0.05, that is,
14 / 26
Marginal Probability Distributions
▶ The marginal probability distribution of X , denoted by PX (x),
is the probability distribution of X by itself.
▶ Similarly, X
PY (y ) = PXY (x, y )
x
15 / 26
Marginal Probability Distributions - An Example
x PX (x)
−20% 0.05 + 0.05 + 0.05 = 0.15
10% 0.10 + 0.10 + 0.05 = 0.25
30% 0.30 + 0.10 + 0.05 = 0.45
50% 0.10 + 0.05 + 0.00 = 0.15
P
x PX (x) = 1
▶ P(X = −20%) =
P
y PXY (X = −20%, Y = y ) = 0.15
▶ P(X = 10%) =
P
y PXY (X = 10%, Y = y ) = 0.25
16 / 26
Conditional Probability Distributions
▶ We evaluate PX |Y (x|y ) as
PXY (x, y )
PX |Y (x|y ) =
PY (y )
17 / 26
Conditional Distribution Table PX |Y (x|y )
Using the joint probability distribution table for PXY (x, y ) and the
derived marginal distributions of X and Y , the conditional
probability distribution of X given Y can be obtained from the
following table.
Y = 5% Y = 10% Y = 15%
X = −20% 0.091 0.167 0.334
X = 10% 0.182 0.333 0.333
X = 30% 0.545 0.333 0.333
X = 50% 0.182 0.167 0
18 / 26
Conditional Distributions PX |Y =y
P(X=x|Y=15)
P(X=x|Y=5)
PX |Y (x|y ) = PX (x)
and
PY |X (y |x) = PY (y )
for all (x, y ).
20 / 26
Expected Value of Stock Returns
Y = 5% Y = 10% Y = 15%
X = −20% 0.05 0.05 0.05
X = 10% 0.10 0.10 0.05
X = 30% 0.30 0.10 0.05
X = 50% 0.10 0.05 0
and the implied marginals, we can compute the means of X
and Y .
21 / 26
Expectation of a Function of a RV
▶ For any function r (X ) of RV X , we can obtain the expected
value of r (X ) as
X
E [r (X )] = r (x)P(X = x)
x
22 / 26
Variance of a RV
▶ The second moment around the mean, is the variance of the
RV.
▶ For RV X the variance is defined as
X
Var (X ) = E [X − µX ]2 = (x − µX )2 P(X = x).
x
24 / 26
Properties of Means
For RVs X and Y and c and b are constants we can show
1. E [c] = c
2. E [cX ] = cE [X ]
3. E [X + Y ] = E [X ] + E [Y ]
4. E [cX + bY ] = cE [X ] + bE [Y ]
25 / 26
Conditional Mean of X given Y = y
▶ We define the conditional mean of X given Y = y for discrete
random variables as
X
E [X |Y = y ] = xPX |Y (x|y )
x
Y = 5% Y = 10% Y = 15%
X = −20% 0.091 0.167 0.334
X = 10% 0.182 0.333 0.333
X = 30% 0.545 0.333 0.333
X = 50% 0.182 0.167 0
We can obtain E [X |Y = 5] as
−20%×0.091+10%×0.182+30%×0.545+50%×0.182 = 25.454%.
26 / 26