Docsity

Expected Value and Variance: Properties and Examples of Discrete Random Variables, Study notes of Calculus

Toggle sidebar
bg1
Expected Value
Let Xbe a discrete random variable which takes values in SX=
{x1, x2, . . . , xn}
Expected Value or Mean of X:
E
(X) =
n
P
i=1
xip(xi)
Example: Roll one die
Let Xbe outcome of rolling one die. The frequency function is
p(x) = 1
6, x = 1,...,6,
and hence
E
(X) =
6
P
x=1
x
6=7
2= 3.5
Example: Bernoulli random variable
Let X∼Bin(1, θ).
p(x) = θx(1 −θ)1−x
Thus the mean of Xis
E
(X)=0·(1 −θ)+1·θ=θ.
Expected Value and Variance, Feb 2, 2003 - 1 -
pf3
pf4
pf5
pf8
pf9
pfa
pfd

Partial preview of the text

Download Expected Value and Variance: Properties and Examples of Discrete Random Variables and more Study notes Calculus in PDF only on Docsity!

Expected Value

Let X be a discrete random variable which takes values in SX = {x 1 , x 2 ,... , xn} Expected Value or Mean of X:

E(X) = ∑ i=1n xi p(xi)

Example: Roll one die Let X be outcome of rolling one die. The frequency function is p(x) = 16 , x = 1,... , 6 , and hence

E(X) = (^) x∑=1^6 x 6 = 72 = 3. 5

Example: Bernoulli random variable Let X ∼ Bin(1, θ). p(x) = θx(1 − θ)^1 −x Thus the mean of X is E(X) = 0 · (1 − θ) + 1 · θ = θ.

Expected Value

Linearity of the expected value Let X and Y be two discrete random variables. Then E(a X + b Y ) = aE(X) + bE(Y ) for any constants a, b ∈ R Note: No independence is required.

Proof: E(a X + b Y ) = ∑ x,y (a x + b y)p(x, y)

∑ =^ a^ ∑^ x,y^ x p(x, y) +^ b^ ∑^ x,y^ y p(x, y) x^ p(x, y) =^ p(y)^ x = a ∑ x^ x p(x) +^ b^

y^ y p(y) = aE(X) + bE(Y )

Example: Binomial distribution Let X ∼ Bin(n, θ). Then X = X 1 +.. .+Xn with Xi ∼ Bin(1, θ):

E(X) = ∑ i=1n E(Xi) = ∑ i=1n θ = nθ

Expected Value

Example: European Call Options Agreement that gives an investor the right (but not the obliga- tion) to buy a stock, bond, commodity, or other instruments at a specific time at a specific price. What is a fair price P for European call options? If ST is the price of the stock at time T , the profit will be Profit = (ST − K)+^ − P. Profit is a random variable.

−10 0 10 20 30 40 50

0

10

20

30

0

0

Fair price P for this option is expected value P = E(ST − K)+.

Expected Value

Example: European Call Options (contd)

Consider the following simple model: ◦ St = St− 1 + εt, t = 1,... , T ◦ P(εt = 1) = p and P(εt = −1) = 1 − p. St is also called a random walk. The distribution of ST is given by (s 0 known at time 0) ST = s 0 + 2 Y − T, with Y ∼ Bin(T, p) Therefore the price P is (assuming s 0 = 0 without loss of generality)

P = E(ST − K)+^ = (^) y∑=1T (2 y − T − K) pθ(y) 1{y>(K+T )/ 2 }

Let n = 20, K = 10, θ = 0. 6 P = 2. 75

Profit

p(x)

0.0 −2.75−0.751.25 3.255.25 7.259.25 11.2513.2515.2517.2519.

Frequency function of profit

Variance

Let X be a random variable. Variance of X: var(X) = E(X − E(X))^2. The variance of X is the expected squared distance of X from its mean. Suppose X is discrete random variable with SX = {x 1 ,... , xn}. Then the variance of X can be written as var(X) = (^) i∑=1n

xi − (^) j∑=1n xj p(xj)

p(xi)

Example: Roll one die X takes values in { 1 , 2 , 3 , 4 , 5 , 6 } with frequency function p(x) = 16.

E(X) = (^) x∑=1^6 x 16 = (^72) var(X) = (^) x∑=1^6 ( x − 72 )^2 16 = 16 (^254 +^94 +^14 +^14 +^94 +^254 ) =^3512

We often denote the variance of a random variable X by σ X^2 , σ^2 X = var(X) and its standard deviation by σX.

Properties of the Variance

The variance can also be written as var(X) = E(X^2 ) − (E(X))^2 To see this (using linearity of the mean): var(X) = E(X − E(X))^2 = E[X^2 − 2 XE(X) + (E(X))^2 ] = E(X^2 )^ − 2 E(X)E(X) + (E(X))^2 = E(X^2 ) − (E(X))^2

Example: Let X ∼ Bin(1, θ). Then var(X) = E(X^2 ) − (E(X))^2 = E(X) − (E(X))^2 = θ − θ^2 = θ (1 − θ)

Rules for the variance: ◦ For constants a and b var(aX + b) = a^2 var(X). ◦ For independent random variables X and Y var(X + Y ) = var(X) + var(Y ).

Example: Let X ∼ Bin(n, θ). Then var(X) = n θ (1 − θ)

Covariance

Important: cov(X, Y ) = 0 does NOT imply that X and Y are independent.

Example: Suppose X ∈ {− 1 , 0 , 1 } with probabilities P(X = x) = 13 for x = − 1 , 0 , 1. Then E(X) = 0 and cov(X, X^2 ) = E(X^3 ) = E(X) = 0 On the other hand P(X = 1, X^2 = 0) = 0 6 = 19 = P(X = 1)P(X^2 = 0), that is, X and Y are not independent!

Note: The covariance of X and Y measures only linear depen- dence.

Correlation

The correlation coefficient ρ is defined as

ρXY = corr(X, Y ) = √var(cov(XX, Y)var(^ )Y ).

Properties: ◦ dimensionless quantity ◦ not affected by linear transformations, i.e. corr(a X + b, c Y + d) = corr(X, Y ) ◦ − 1 ≤ ρXY ≤ 1 ◦ ρXY = 1 if and only if P(Y = a + b X) = 1 for some a and b ◦ measures linear association between X and Y

Example: Three boxes: pp, pd, and dd (Ex 3.6) Let Xi = 1{penny on ith draw}. Then Xi ∼ Bin(1, p) with p = 12 and joint frequency function p(x 1 , x 2 ):

x 1 \x 2 0 1 (^0 ) (^1 )

Thus: cov(X 1 , X 2 ) = E[(X 1 − p)(X 2 − p)] = 14 · 13 + 14 · 13 + 2 14 · 16 = 121 corr(X 1 , X 2 ) = 41 · 121 = (^13)

Summary

Bernoulli distribution - Bin(1, θ) p(x) = θx(1 − θ)^1 −x^ E(X) = θ var(X) = θ(1 − θ) Binomial distribution - Bin(n, θ)

p(x) =

(n x

) θx(1 − θ)n−x^ E(X) = nθ var(X) = nθ(1 − θ) Poisson distribution - Poiss(λ)

p(x) = λ xx! e−λ^ E(X) = λ var(X) = λ Geometric distribution p(x) = θ(1 − θ)x−^1 E(X) =^1 θ var(X) =^1 θ− 2 θ Hypergeometric distribution - H(N, M, n)

p(x) =

(Mx )(Nn −−Mx ) (Nn ) E(X) = n MN