POC Unit-1 Final
POC Unit-1 Final
POC Unit-1 Final
1
Definition of a Random Variable
A random variable is a real valued function defined on a sample space
S. In a particular experiment, a random variable X would be some
function that assigns a real number X(s) for each possible outcome, s S
2
Probability Distributions, Mean and Variance for Discrete
Random Variables
3
The Binomial Distribution
A Binomial Random
Variable
n identical trials Flip a coin 3 times
Two outcomes: Success or Outcomes are Heads or Tails
Failure
P(S) = p; P(F) = q = 1 – p P(H) = 0.5; P(F) = 1-0.5 = 0.5
Trials are independent A head on flip i doesn’t change
x is the number of S’s in n P(H) of flip i + 1
trials
4
The Binomial Distribution Probability Distribution
The probability of The probability of
The number of getting the
ways of getting getting the
required number required number
the desired of successes
results of failures
n x n− x
P( x) = p q
x
Example: Binomial tree model in option pricing.
5
Mean and Variance of Binomial Distribution
𝐸(𝑋 2 )
𝑛 𝑚
𝑛 𝑘 𝑚!
= 𝑘2 𝑝 (1 − 𝑝) 𝑛−𝑘 = 𝑛𝑝 (𝑠 + 1) 𝑝 𝑠 (1 − 𝑝)𝑚−𝑠 = 𝑛𝑝(𝑛𝑝 − 𝑝 + 1),
𝑘 𝑠! (𝑚 − 𝑠)!
𝑘=0 𝑠=0
6
The Binomial Distribution Probability Distribution
Example 2: Say 40% of the class is female.
What is the probability that 6 of the first 10 students
walking in will be female?
n x n− x
P( x) = xp q
10 10 − 6
= 6 (.4 6
)(.6 )
= 210(.004096 )(.1296)
= .1115
7
The Poisson Distribution
Evaluates the probability of a (usually small) number of occurrences
out of many opportunities in a …
period of time, area, volume, weight, distance and other units of
measurement
e
x −
P( x) =
x!
𝜆 = mean number of occurrences in the given unit of
time, area, volume, etc.
Mean µ = 𝜆, variance: 𝝈2 = 𝜆
∞ ∞
𝜆𝑥 𝑒 −𝜆 𝜆𝑥−1 𝑒 −𝜆
𝐸(𝑋) = 𝑥 =𝜆 = 𝜆,
𝑥! (𝑥 − 1)!
𝑥=0 𝑥=1
𝑉𝑎𝑟(𝑥) = 𝜆.
8
The Poisson Distribution (Example 3)
Example 3: Say, in a given stream there are an average of 3 striped
trouts per 100 yards. What is the probability of seeing 5 striped
trouts in the next 100 yards, assuming a Poisson distribution?
𝜆𝑥 𝑒 −𝜆 35 𝑒 −3
𝑃(𝑥 = 5) = = = 0.1008
𝑥! 5!
9
Continuous Probability Distributions
10
Continuous Probability Distributions
There are an infinite
number of possible
outcomes
P(x) = 0
Instead, find P(a<x≤b)
13
The Exponential Distribution
Probability Distribution for an Exponential Random Variable x
Probability Density Function
1 −𝑥
𝑓𝑥 𝑥 = 𝑒 𝜃 , 𝑥 > 0
𝜃
= Variance: =
2 2
Mean:
∞ ∞
1 −𝑥 𝑥
− ∞ −
𝑥 𝑥
− ∞
𝜇 = 𝐸(𝑋) = න 𝑥 𝑒 𝜃 𝑑𝑥 = −𝑥𝑒 𝜃 |0 +න 𝑒 𝜃 𝑑𝑥 = −𝜃𝑒 𝜃 |0 = 𝜃,
𝜃
0 0
∞
1 −𝑥
𝜎2 = 𝑉𝑎𝑟(𝑋) = න (𝑥 − 𝜃)2 𝑒 𝜃 𝑑𝑥
𝜃
0
∞
𝑥 𝑥
2 −𝜃 ∞ −
= −(𝑥 − 𝜃) 𝑒 |0 + 2න 𝑒 (𝑥
𝜃 − 𝜃) 𝑑𝑥 = 𝜃 2 .
0
14
The Exponential Distribution (Example 5)
• Example 5: Suppose the waiting time to see the nurse at the student
health center is distributed exponentially with a mean of 45 minutes.
What is the probability that a student will wait more than an hour to get
his or her generic pill?
a
−
P( x a) = e
60
−
P ( x 60) = e 45
= e −1.33 = .2645
15
Joint Probability Distributions
16
Discrete Joint Probability Distributions
18
Continuous Joint Distributions (Example 7)
Calculating probabilities from a joint p.d.f.
cx 2 y for x 2 y 1,
f XY ( x, y ) =
0 otherwise .
(1) c = ?
(2) Pr( X Y ) = ?
1 1
4 21
f XY ( x, y ) dxdy = cx y dxdy = c, c = .
2
− −1 x 2
21 4
1 x
21 2 3
Pr( X Y ) = x y dydx = .
0 x2
4 20
19
Marginal Probability Distributions (Discrete)
Marginal Probability Distribution: the individual
probability distribution of a random variable computed
from a joint distribution.
20
Marginal Probability Distributions (Discrete, Example)
fX(1)=P(X=1,Y=1)+P(X=1,Y=2)=0.1+0.2=0.3
fX(3)= P(X=3,Y=1)+P(X=3,Y=2)+ P(X=3,Y=3)=0.2+0.2+0.3=0.7
fY(1)= P(X=1,Y=1)+P(X=3,Y=1)=0.1+0.2=0.3
fY(2)=P(X=1,Y=2)+P(X=3,Y=2)=0.2+0.2=0.4
fY(3)= P(X=3,Y=3)=0.3
21
Marginal Probability Distributions(Continuous)
Similar to joint discrete random variables, we can find the
marginal probability distributions of X and Y from the
joint probability distribution.
22
Marginal Probability Distributions(Continuous, Example)
1
21 2 21 2
f X ( x) = f XY ( x, y )dy = x y dy = x (1 − x 4 ).
x2
4 8
y
21 2 7 52
fY ( y ) = f XY ( x, y )dx = x y dx = y .
− y
4 2
23
Independence
• In some random experiments, knowledge of the values of
X does not change any of the probabilities associated with
the values for Y.
24
Covariance and Correlation Coefficient
The covariance between two RV’s X and Y is
Cov ( x, y) = E[( X − E ( X ))(Y − E (Y ))] = E ( XY ) − E ( X ) E (Y ).
Properties: