Docsity

Introduction to Random Variables and Probability Distributions - Prof. Marc L. Serre, Study notes of Environmental Science

Toggle sidebar
bg1
Introduction to Random Variables
1. Random variables
1.1 A random variable and its realization
x is a random variable that takes different possible values.
is a specific value, or realization, of x.
Example:
x is the concentration of particulate matter concentration in Chapel Hill on July 6, 1988.
is the concentration measured at a monitoring station in Chapel Hill on July 6, 1988 by
collecting particulate matter dust in a filter and sending the filter to a lab for analysis.
1
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download Introduction to Random Variables and Probability Distributions - Prof. Marc L. Serre and more Study notes Environmental Science in PDF only on Docsity!

Introduction to Random Variables

1. Random variables

1.1 A random variable and its realization x is a random variable that takes different possible values.

 is a specific value, or realization, of x.

Example: x is the concentration of particulate matter concentration in Chapel Hill on July 6, 1988.

 is the concentration measured at a monitoring station in Chapel Hill on July 6, 1988 by

collecting particulate matter dust in a filter and sending the filter to a lab for analysis.

1.2 The cdf of a random variable

Let P[  ] be the probability that the event A occurs.

Note: We always have P[  ] ^ [0,1]

Then the cumulative density function (cdf) of a random variable x is defined as

Fx(  )=P[x≤  ]

Important properties: Fx(- ∞ )=0 why? Fx( ∞ )=1 why?

Fx(  ) is always increasing

Proof: b > aP[x<b]= P[x<a]+ P[a≤x<b] ≥ P[x<a]Fx(b) ≥ Fx(a)

1.4 The expected value of a random variable The expected value of g(x) is E[g(x)] =     d^ ^ g (^ ) fx (^ ) Examples The mean is the expected value of x mx = E [ x ]=     d ^  fx (^ ) The variance is the expected value of ( x - mx ) 2 varx = E [( x - mx ) 2 ]= (^)     (^ ^ ) ( )  ^2  d mx fx The expected value of ( x - mx ) 4 is E [( x - mx ) 4 ]= (^)     (^ ^ ) ( )  ^4  d mx fx

1.5 Exercises Let (^) ^   ^  0 otherwise(o/w) f ( ) k^ if [a,b] x ^ 

1) Use the normalization constraint to find k so that fx(  ) is a pdf.

 (^ )^1    d^ ^^ fx^  ^ …^ ^ k=1/(b-a)

2) Assume that fx(  ) is the pdf of a random value x , what is the expected value of x?

E [ x ]=     d ^^  fx (^ )= …^ =^ (a+b)/

  1. Write the formulae for the variance of x varx = E [( x - mx ) 2 ]= (^)     (^ ^ ) ( )  ^2  d mx fx =       b  (^)   a (^) b a a b d 1 2 2  

2.4 The marginal and conditional pdf The marginal pdf of fxx’(  ’) with respect to is fx()= (^)    

d  ' fxx '(, ')

The marginal pdf of fxx’(  ’) with respect to ’ is fx(  ’)= 

   dfxx '(, ')

The conditional pdf fx|x’(  x'=  ’) of x given that x'=  ’ is

fx|x’(  x'=  ’) =

( ') ( , ' ) ' , '    x x x f f =    

' , '      x x x x

d f

f

2.5 The expected value E[g(x,x’)]=         d^ ^ d^ ' g (^ ,^ ') fx (^ ,^ ') Examples: The expected value of x is mx = E [ x ]= (^)         d^ ^ d '^  fxx '(,^ ') The expected value of x’ is mx’ = E [ x’ ]= (^)         dd ' ' fxx '(, ') The variance of x is E [( x - mx ) 2 ]= (^)         '^ ( ^ ) '( , ') 2 dd   mx fxx   The variance of x’ is E [( x’ - mx’ ) 2 ]= (^)         dd ' ( ' mx ' )^2 fxx '(, ') The covariance between x and x’ is E [( x - mx )( x’ - mx’ )]= (^)         dd '(  mx )( ' mx ') fxx '(, ')

5) Find the marginal pdf fx(  ) of the random variable x

     (^)      (^) ^      0 otherwise (^1) if a b ( ) 1 ( ) ( , )^2 b a x x y b a b a d f d f      

  1. Calculate E [ x ] using fx (^ ) E [ x ] =  d ^  fx (^ )    = … = (a+b)/2^ (same as in 2)

7) Find the marginal pdf fy(  ) of the random variable y

     (^)      (^) ^      0 otherwise (^1) if a b ( ) 1 ( ) ( , )^2 b fydfx y  ^ a^ d^  b a b a^ 

8) Find the conditional pdf of x given that y= 

    (^)         0 otherwise (^1) if a b and a b ( ) ( , ) | (^ |^ ) ,       b a f f f y y x y x y

  1. Find the probability that x <( a+b )/2 given that y=b P[ x <( a+b )/2 | y=b ] = (^) | ( | ) ( )/ 2 d fxy y b a b     ^ ^  =^ /( ) ( )/ 2 d b a a b a     (^) =1/

Exercises on Conditional probability using discrete variables Let a be a random variable taking values a 1 , a 2 , …, an. Let b be a random variable taking values b 1 , b 2 , …, bm. Let P[ ai ] represent the probability that a = ai. Let P[ bj ] represent the probability that b = bj. Let P[ ai , bj ] represent the probabilities that a = ai AND b = bj Then the probability P[ ai | bj ] that a = ai GIVEN that b = bj is P[ ai | bj ] = P[ ai , bj ] / P[ bj ] Example 1: Consider the case where a takes values a 1 or a 2 , and b takes values b 1 or b 2. In an experiment we record over 1000 trials the values for a and b, and we obtain the following distribution b 1 b 2 a 1 100 400 a 2 100 400 Number of trials = P[ a 1 ]= P[ a 2 ]= P[ b 1 ]= P[ b 2 ]= P[ a 1 , b 1 ]= P[ a 1 , b 2 ]= P[ a 1 | b 1 ]= P[ a 1 | b 2 ]=