Download presentation
Presentation is loading. Please wait.
1
Expectation and Variance
X: sum of two die rolls X = 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 P(X=2) = 1/36 P(X=3) = 1/18 P(X=4) = 1/12 P(X=5) = 1/9 P(X=7) = 1/6 P(X=13) = ? P(X=13) = 0 ๐ธ ๐ =(2)๐ ๐=2 +(3)๐ ๐=3 +(4)๐ ๐=4 +โฏ+ 12 ๐(๐=12) = = = = 42 6 =7 X P(X=x) 2 1/36 3 1/18 4 1/12 5 1/9 6 5/36 7 1/6 X P(X=x) 8 5/36 9 1/9 10 1/12 11 1/18 12 1/36
2
Expectation and Variance
X: sum of two die rolls X = 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 P(X=2) = 1/36 P(X=3) = 1/18 P(X=4) = 1/12 P(X=5) = 1/9 P(X=7) = 1/6 ๐๐๐ ๐ =๐ธ ๐ 2 โ ๐ธ ๐ 2 ๐ธ ๐ 2 = (2) 2 ๐ ๐=2 + (3) 2 ๐ ๐=3 + (4) 2 ๐ ๐=4 +โฏ+ (12) 2 ๐ ๐=12 = (2) (3) (4) (5) (6) (7) (8) (9) (10) (11) (12) = = = โ ๐๐๐ ๐ =๐ธ ๐ 2 โ ๐ธ ๐ 2 = โ = โ = = 35 6 โ5.8333 ๐๐ท ๐ = =2.4152 X P(X=x) 2 1/36 3 1/18 4 1/12 5 1/9 6 5/36 7 1/6 X P(X=x) 8 5/36 9 1/9 10 1/12 11 1/18 12 1/36
3
Expectation and Variance
Suppose we have multiple Discrete Random Variables ๐ 1 , ๐ 2 ,โฆ, ๐ ๐พ with all random variables mutually independent. Suppose we create a new random variable by taking a weighted sum of the others: ๐=๐+ ๐=1 ๐พ ๐ ๐ ๐ ๐ =๐+ ๐ 1 ๐ 1 + ๐ 2 ๐ 2 +โฏ+ ๐ ๐พ ๐ ๐พ . Expected value of ๐: ๐ธ ๐ =๐ธ ๐+ ๐=1 ๐พ ๐ ๐ ๐ ๐ =๐ธ ๐ + ๐=1 ๐พ ๐ธ( ๐ ๐ ๐ ๐ ) =๐+ ๐=1 ๐พ ๐ ๐ ๐ธ( ๐ ๐ ) =๐+ ๐ 1 ๐ธ ๐ 1 + ๐ 2 ๐ธ ๐ 2 +โฏ+ ๐ ๐พ ๐ธ ๐ ๐พ =๐+ ๐ 1 ๐ ๐ 1 + ๐ 2 ๐ ๐ 2 +โฏ+ ๐ ๐พ ๐ ๐ ๐พ = ๐ ๐ Variance of ๐: ๐๐๐ ๐ = Var ๐+ ๐=1 ๐พ ๐ ๐ ๐ ๐ = ๐=1 ๐พ ๐๐๐ ๐ ๐ ๐ ๐ = ๐=1 ๐พ ๐ ๐ 2 ๐๐๐( ๐ ๐ ) = ๐ 1 2 ๐๐๐ ๐ 1 + ๐ 2 2 ๐๐๐ ๐ 2 +โฏ+ ๐ ๐พ 2 ๐๐๐ ๐ ๐พ = ๐ 1 2 ๐ ๐ ๐ 2 2 ๐ ๐ โฏ+ ๐ ๐พ 2 ๐ ๐ ๐พ 2 = ๐ ๐ 2 ๏ The standard deviation of Y is just the square root of ๐ ๐ 2 .
4
Expectation and Variance
๐ ๐ : face value of a fair die roll on the ith roll. ๐ ๐ = 1, 2, 3, 4, 5, 6 ๐ ๐ ๐ =1 =1/6 ๐ ๐ ๐ =2 =1/6 ๐ ๐ ๐ =3 =1/6 ๐ ๐ ๐ =4 =1/6 ๐ ๐ ๐ =5 =1/6 ๐ ๐ ๐ =6 =1/6 We know that ๐ธ ๐ ๐ =3.5, and that ๐๐๐ ๐ ๐ = Now, suppose that we want the expected value and variance of a new random variable Y, defined as the sum of two independently thrown dice. We find the following: ๐ธ ๐ =๐ธ ๐ 1 + ๐ 2 =๐ธ ๐ 1 +๐ธ ๐ 2 = =7 ๐๐๐ ๐ =๐๐๐ ๐ 1 + ๐ 2 =๐๐๐ ๐ 1 +๐๐๐ ๐ 2 = = = 35 6 =5.8333 This is exactly the same as we found by computed the expected value and variance of the sum of two dice directly! ๐ ๐ ๐ท( ๐ ๐ = ๐ฅ ๐ ) 1 1/6 2 3 4 5 6
5
Continuous Random Variable
Consider a random variable X with values from 0 to 1 Discrete Continuous โ๐ฅ=0.1? โ๐ฅ=0.01? โ๐ฅ=0.001? X P(X=x) 0.4 1 0.6 X P(X=x) 0.1 0.2 โฎ 0.9 1.0 X P(X=x) 0.01 0.02 โฎ 0.99 1.00 X P(X=x) 0.001 0.002 โฎ 0.999 1.000 What increment do you use???
6
Continuous Random Variable
Consider a random variable X with values from 0 to 1 Discrete Continuous โ๐ฅ=0.1? โ๐ฅ=0.01? โ๐ฅ=0.001? X P(X=x) 0.4 1 0.6 X P(X=x) 0.1 0.2 โฎ 0.9 1.0 X P(X=x) 0.01 0.02 โฎ 0.99 1.00 X P(X=x) 0.001 0.002 โฎ 0.999 1.000 What increment do you use???
7
Continuous Random Variable
Every continuous random variable is defined by a probability density function (pdf) Probability density function for continuous random variable ๐: ๐(๐ฅ) Probability of ๐ less than or equal to some value ๐, ๐ ๐โค๐ = ๐น ๐ (๐), is defined as the area under the curve to the left of ๐ ๐ ๐โค๐ = โโ ๐ ๐ ๐ฅ ๐๐ฅ In this example, values of ๐ range from โโ to โ a
8
Continuous Random Variable
Every continuous random variable is defined by a probability density function (pdf) Probability density function for continuous random variable ๐: ๐(๐ฅ) Probability of ๐ less than or equal to some value ๐, ๐ ๐โค๐ = ๐น ๐ (๐), is defined as the area under the curve to the left of ๐ ๐ ๐โค๐ = โโ ๐ ๐ ๐ฅ ๐๐ฅ Probability of ๐ greater than or equal to some value ๐, ๐ ๐โฅ๐ , is defined as the area under the curve to the right of ๐ ๐ ๐โฅ๐ = ๐ โ ๐ ๐ฅ ๐๐ฅ In this example, values of ๐ range from โโ to โ a
9
Continuous Random Variable
Every continuous random variable is defined by a probability density function (pdf) Probability density function for continuous random variable ๐: ๐(๐ฅ) Probability of ๐ less than or equal to some value ๐, ๐ ๐โค๐ = ๐น ๐ (๐), is defined as the area under the curve to the left of ๐ ๐ ๐โค๐ = โโ ๐ ๐ ๐ฅ ๐๐ฅ Probability of ๐ greater than or equal to some value ๐, ๐ ๐โฅ๐ , is defined as the area under the curve to the right of ๐ ๐ ๐โฅ๐ = ๐ โ ๐ ๐ฅ ๐๐ฅ Probability of ๐ between ๐ and ๐, ๐ ๐โค๐โค๐ , is defined as the area under the curve between ๐ and ๐ ๐ ๐โค๐โค๐ = ๐ ๐ ๐ ๐ฅ ๐๐ฅ In this example, values of ๐ range from โโ to โ a a b
10
Continuous Random Variable
Every continuous random variable is defined by a probability density function (pdf) Probability density function for continuous random variable ๐: ๐(๐ฅ) Probability of the entire range of ๐, ๐ โโโค๐โคโ , is the area under the entire curve ๐ โโโค๐โคโ = โโ โ ๐ ๐ฅ ๐๐ฅ =1 ๏ Probability of all possible values of ๐ In this example, values of ๐ range from โโ to โ
11
Continuous Random Variable
Every continuous random variable is defined by a probability density function (pdf) Probability density function for continuous random variable ๐: ๐(๐ฅ) Probability of the entire range of ๐, ๐ โโโค๐โคโ , is the area under the entire curve ๐ โโโค๐โคโ = โโ โ ๐ ๐ฅ ๐๐ฅ =1 ๏ Probability of all possible values of ๐ Probability of ๐ between ๐ and ๐, ๐ ๐โค๐โค๐ =๐ ๐=๐ , is the area under the curve between ๐ and ๐ ๐ ๐=๐ = ๐ ๐ ๐ ๐ฅ ๐๐ฅ =0 ๏ Area doesnโt exist! Area of a line is 0. A continuous random variable theoretically has an infinite number of possible values The probability of ๐ equal to an exact point value out of an infinite number of choices = 1 โ =0 In this example, values of ๐ range from โโ to โ a
12
Continuous Random Variable
For continuous ๐, since ๐ ๐=๐ =0, โค and โฅ are interchangeable with < and >, respectively ๐ ๐โค๐ =๐ ๐<๐ +๐ ๐=๐ =๐ ๐<๐ +0=๐ ๐<๐ ๐ ๐โฅ๐ =๐ ๐>๐ +๐ ๐=๐ =๐ ๐>๐ +0=๐(๐>๐) ๐ ๐โค๐โค๐ =๐ ๐โค๐<๐ =๐ ๐<๐โค๐ =๐(๐<๐<๐) Caution: not true for discrete ๐ because ๐ ๐=๐ is not 0 (given that ๐ is a possible value of ๐)
13
Continuous Random Variable
Complement rule ๏ ๐ ๐โค๐ =1โ๐ ๐>๐ (๐>๐ and ๐โค๐ are complements) ๐(๐โค๐) ๐ โโโค๐โคโ =1 ๐(๐>๐) = โ a a
14
Continuous Random Variable
Interval ๏ ๐ ๐โค๐โค๐ =๐ ๐โฅ๐ โ๐(๐โฅ๐) ๐ ๐โค๐โค๐ ๐(๐โฅ๐) ๐(๐โฅ๐) = โ a b a b
Similar presentations
© 2024 SlidePlayer.com Inc.
All rights reserved.