14
LECTURE 12: Sums of independent random var·ables; Covariance and corirelation The PM F /PDF of X + y (X and y independent) - the discrete case - the continuous case - the mechanics - the sum of independent normals Covariance and correlation - definitions mathematica I properties - interpretation 1

LECTURE 12: Sums of independent random var·ables ... · Covariance and corirelation • The PM F /PDF of X + y (X and y independent) - the discrete case - the continuous case - the

  • Upload
    others

  • View
    5

  • Download
    0

Embed Size (px)

Citation preview

Page 1: LECTURE 12: Sums of independent random var·ables ... · Covariance and corirelation • The PM F /PDF of X + y (X and y independent) - the discrete case - the continuous case - the

LECTURE 12: Sums of independent random var·ables;

Covariance and cor irelation

• The PM F /PDF of X + y (X and y independent)

- the discrete case

- the continuous case

- the mechanics

- the sum of independent normals

• Covariance and correlation

- definitions

mathematica I properties

- interpretation

1

Page 2: LECTURE 12: Sums of independent random var·ables ... · Covariance and corirelation • The PM F /PDF of X + y (X and y independent) - the discrete case - the continuous case - the

T e distr·but·on of X + Y: the d·screte case pz z) = ~P (x) py(z - x)

• z = X Y, X,Y ·nde e de d·scre e X

known PMFs

pz(3) =

y

• (0,3)

• (1,2)

(2, 1) •

3,0) X

2

Page 3: LECTURE 12: Sums of independent random var·ables ... · Covariance and corirelation • The PM F /PDF of X + y (X and y independent) - the discrete case - the continuous case - the

PX 2/3

1/3

1 4

3/6 2/6

1/6

-2 -1 1

3/6 2/6

1/6

1 2 4

PY 2/6

-1

3/6

1/6

1 2

PZ z) = _P (x) py(z - x) X

• o find pz( 3).

Flip (horizo · tal y) the PMF of Y

Put it under eath the PMF of X

- Rig t-s ift the flipped PMF by 3

- Cross-multiply and add

- Repeat for other values of z 3

Page 4: LECTURE 12: Sums of independent random var·ables ... · Covariance and corirelation • The PM F /PDF of X + y (X and y independent) - the discrete case - the continuous case - the

The distr- ut-o o X Y: the con -nuous case

• Z - X + Y; X, Y ·nde ende t , continuous

known PD s

y

Jo·nt PD o Z and X.

pz z) = ~P (x) py(z - x) X

fz(z) - /_ex/ (x)f (z - x) dx

rom joint to t e margi al. f z(z) = £: f x,z(x, z) dx

• Same mechanics as in discrete case ( ip, shift, etc.) 4

Page 5: LECTURE 12: Sums of independent random var·ables ... · Covariance and corirelation • The PM F /PDF of X + y (X and y independent) - the discrete case - the continuous case - the

The sum of -ndependen no ma r.v.'s

• X"' N(µx,u~), Y"' N(µy,at), inde ende

fz(z) - j_00

f (x)f (z - x) dx

Z=X 1 Y

fx(x) = 1 e-(x-µx)2/2u~ 21rux

fz(z) = J: fx(x)/y(z - x) dx

-

fy(y) = 1 e-(y-µy)2/2ut 21ruy

e su of in·tely a y i depe den no a s ·s nor a

5

Page 6: LECTURE 12: Sums of independent random var·ables ... · Covariance and corirelation • The PM F /PDF of X + y (X and y independent) - the discrete case - the continuous case - the

Cova -anc

• Zero-mean, discrete x and y

- if ndependent: E[XY] =

Defini ·tion for general c.ase:

cov( 'Y) = E [ ( - E[X ) (Y - E[Y

• indepe de t => cov(X, Y) = 0 (conve se is not true ·)

6

Page 7: LECTURE 12: Sums of independent random var·ables ... · Covariance and corirelation • The PM F /PDF of X + y (X and y independent) - the discrete case - the continuous case - the

covariance proper i s

cov(X,X) = ov ( , ) == E [ ( _ [ X ) . (Y - E [Y])

cov(aX + b, Y) =

cov(X, Y Z) =

cov( 'Y) - E [XY - [X E Y]

7

Page 8: LECTURE 12: Sums of independent random var·ables ... · Covariance and corirelation • The PM F /PDF of X + y (X and y independent) - the discrete case - the continuous case - the

The variance of a sum of random variables

var(X1 + X2) =

8

Page 9: LECTURE 12: Sums of independent random var·ables ... · Covariance and corirelation • The PM F /PDF of X + y (X and y independent) - the discrete case - the continuous case - the

Th var-a ce of a sum o ando variab es

var(X 1 + • • • + Xn) =

n

va (X1 + · · · Xn) - I: va (Xi) i=l

L cov( i,Xj) (i,j): i,C:j}

9

Page 10: LECTURE 12: Sums of independent random var·ables ... · Covariance and corirelation • The PM F /PDF of X + y (X and y independent) - the discrete case - the continuous case - the

The Correl at- on coefficie

• o·me sionless vers·on of covariance. p(X, y E (X-E[ ) _( __ _ a a

cov( , ) - < p< 1 -

uxay

• Measure of the degree of .. association" between X and Y

• Independent => p = 0, "uncorrelated" ( converse is not rue)

• IPI = 1 <=> (X - E X]) = c(Y - E[Y])

• p(X,X) =

(linearly re ated)

• cov(aX + b,. Y) = a• cov(X, Y) => p(aX + b, Y) = 10

Page 11: LECTURE 12: Sums of independent random var·ables ... · Covariance and corirelation • The PM F /PDF of X + y (X and y independent) - the discrete case - the continuous case - the

P oof of key p opert-es of he correlation coerr·cient

p( ' ) _ E (X - [ ] ) ( - [Y ) (J' (J'

- < p< 1

• Assu e, for simprcity, zero means and un·t variances, so t at p(X, Y) = E[XY

If IPI = 1, then

11

Page 12: LECTURE 12: Sums of independent random var·ables ... · Covariance and corirelation • The PM F /PDF of X + y (X and y independent) - the discrete case - the continuous case - the

Interpreting the correlation coefricient

• Association does not imply causation or influence

X: math aptitude Y: musical ability

p(X, Y)

• Correlation often reflects underlying, common, hidden factor

Assume, Z, V, W are independent

X= Z +V Y= Z +W

cov(X, Y)

axay

Assume, for simplicity, that Z, V, W have zero means, unit variances

12

Page 13: LECTURE 12: Sums of independent random var·ables ... · Covariance and corirelation • The PM F /PDF of X + y (X and y independent) - the discrete case - the continuous case - the

Correlations matter ...

• A real-estate investment company invests $10M in each of 10 states. At each state i, the return on its investment is a random variable Xi, with mean 1 and standard deviation 1.3 (in millions).

10 var(X1 + • • • + X10) = L var(Xi) + L cov(Xi,Xj)

i=l {(i,j): i;(=j}

• If the Xi are uncorrelated, then:

var(X1 + · · · + X10) =

• If for i ~j, p(Xi,Xj) = 0.9:

u(X1 + · · · + X10) =

u(X1 + · · · + X10) =

13

Page 14: LECTURE 12: Sums of independent random var·ables ... · Covariance and corirelation • The PM F /PDF of X + y (X and y independent) - the discrete case - the continuous case - the

MIT OpenCourseWare https://ocw.mit.edu

Resource: Introduction to Probability John Tsitsiklis and Patrick Jaillet

The following may not correspond to a particular course on MIT OpenCourseWare, but has been provided by the author as an individual learning resource.

For information about citing these materials or our Terms of Use, visit: https://ocw.mit.edu/terms.

14