Lecture 4 - Prob and RV - ST
Lecture 4 - Prob and RV - ST
Reading materials:
Chap 6,7,8 (Keller)
1 2
3 4
5 6
Terminology (3)
Terminology (2)
The sample space of a random experiment is a
list of ALL possible outcomes
Outcomes must be mutually exclusive and
exhaustive.
◦ Mutually exclusive: No two outcomes can both
occur on any one trial
◦ Exhaustive: All possible outcomes must be included
E.g. roll a dice: sample space:
S={1, 2, 3, 4, 5, 6}.
7 8
11 12
Probabilities of Combined Events
Two rules about probabilities
• The probability assigned to each simple event
Ei must satisfy:
1. 0 ≤ P ( Ei ) ≤ 1 for all i
n
2. ∑ P(E ) =1 i
i =1
13 14
21 22
27 28
29 30
Discrete probability distributions More on discrete prob. distribution
Definition: A table or formula listing all • If x is the value taken by a r.v. X, then
possible values that a discrete r.v. can take, p(x)=P(X=x)= sum of all the probabilities
together with the associated probabilities. associated with the simple events for which
E.g. for our toss three coins example: X=x.
• If a r.v. X can take values xi, then
x 0 1 2 3
P(X=x) 1/8 3/8 3/8 1/8 1. 0 ≤ p ( xi ) ≤ 1 for all xi
2. ∑ p(x ) =1 i
(Check the probability in the table) xi
31 32
o What is the probability of at most one head? • Expected value or mean of a discrete random
o What is the probability of at least one head? variable, X, which takes on values x with
probability p(xi) is:
µ = E ( X ) = ∑ xi × p( xi )
all xi
33 34
x 0 1 2 3
P(X=x) 1/8 3/8 3/8 1/8
µ = E ( X ) = ∑ xi × p( xi )
all xi
= 0* + 1* 83 + 2* 83 + 3* 81
1
8
= 128 = 1.5
35 36
Rules for Expectations Variance
If X and Y are random variables, and c is any • Measures spread/dispersion of distribution
constant, then the following hold: • Let X be a discrete random variable with
E(c)=c values xi that occur with probability p(xi), and
E(cX)=cE(X) E(X) = µ.
E(X-Y)=E(X)-E(Y) • The variance of X is defined as
E(X+Y)=E(X)+E(Y) 2
E(XY)=E(X)*E(Y) only if X and Y are
σ 2 = E ⎡( X − µ ) ⎤
⎣ ⎦
independent 2
= ∑ ⎡( xi − µ ) × p ( xi )⎤
all x
⎣ ⎦
i
37 38
47 48
Example continued Bivariate probability distribution
Outcome (S) x y y
HHH 3 0
0 1 2 px(x)
HHT 2 1
HTH 2 2 0 1/8 0 0 1/8
THH 2 1 1 0 2/8 1/8 3/8
TTH 1 1 x
2 0 2/8 1/8 3/8
THT 1 2
3 1/8 0 0 1/8
HTT 1 1
TTT 0 0 py(y) 2/8 4/8 2/8 1
49 50
51 52
53 54
The sum of two random variables Bivariate distribution of X and Y
o Consider two real estate agents.
X
ØX = the number of houses sold by Vinhomes in a Y
week 0 1 2 py(y)
55 56
57 58
59 60
Application of this – portfolio
Continuous probability distribution
diversification and asset allocation
• See Keller
• Remember: discrete data has a limited (finite)
– Pages 237-242 (9th edition) number of possible values è discrete
• In Finance, use variance and standard deviation to assess probability distributions can be put in tables
risk of an investment.
• Analysts reduce risk by diversifying their investments – • Continuous data have an infinite number of
that is, combining investments where the correlation is possible values è we use a smooth function,
small.
f(x) to describe the probabilities
61 62
63 64
65 66
The Normal Distribution Notes about the Normal Distribution
• Bell-shaped, symmetric about µ, reaches highest
point at x=µ, tends to zero as x→±∞. 1. E(X) = µ; V(X) = σ².
2. Area under curve = 1
3. Different means – shift curve up and down x-
axis
4. Different variances – curve becomes more
peaked
5. Shorthand notation: X~N(µ, σ²).
67 68
0.5
σ=1
σ=0.5
f(x)
σ=2
f(x)
0
0
-4 -2 0 2 4
x x
69 70
71 72
So, need to find the area under the curve…(3) Tabulated values
Standardising Standardising …
• The process of converting any Normal random
variable to a Standard Normal Random Variable.
• If X~N(µ,σ²), then use the linear transformation
below:
X −µ
Z= ~ N (0,1)
σ
75 76
77 78
Examples using tables (1) Examples using tables (2)
1) P(Z<1.5) 2) P(Z>1)
79 80
81 82
In general
X −µ
Know that Z = ~ N (0,1).
σ
⎛ X −µ a−µ ⎞
So, P ( X < a ) = P ⎜ <
⎝ σ σ ⎟⎠
⎛ a−µ ⎞
= P⎜Z < where Z ~ N (0,1).
⎝ σ ⎟⎠
83