Probability 04 Important Random Variable n n Independent
Probability 04. Important Random Variable n n Independent random variable Mean and variance n 郭俊利 2009/03/23 1
Outline Probability n Review n n Affect independence Independent random variable Important random variable Continuous random variable 1. 5, 2. 3, 2. 4, 2. 7 3. 1 2
Example 1 (Affect Independence) Probability n Two unfair coins, A and B: P(H | coin A) = 0. 9, P(H | coin B) = 0. 1 choose either coin with equal probability 1) Once we know it is coin A, are future tosses independent? 2) If we do not know which coin it is, are future tosses independent? n P(toss 1 and toss 2 = H) = 3) Compare: n P(toss 11 = H) = n P(toss 11 = H | first 10 tosses are heads) = 4) Other: n P(toss 5 times, 2 Hs shows) = n P(above | first 10 tosses are heads) = 3
Independent Random Variable Probability n n n p. X|A(x) = p. X(x) p. X, Y(x, y) = p. X(x) p. Y(y) p. X, Y, Z(x, y, z) = p. X(x) p. Y(y) p. Z(z) E[XY] = E[X] E[Y] var(X+Y) = var(X) + var(Y) 4
Example 2 (Independence) Probability n Two tosses of a fair coin n X is the number of heads A is the number of even heads n X and A are independent? n 5
Important Random Variable Probability n Bernoulli n n p. X(k) = Cnk pk (1 – p)n – k n n Geometric n n n Binomial n n p. X(k) = p, 1 -p n p. X(k) = (1 – p)k-1 p n n Poisson n p. X(k) = e–λλk / k! n n E[X] = p var(X) = p(1 -p) E[X] = np var(X) = np(1 -p) E[X] = 1/p var(X) = (1 -p)/p 2 E[X] = λ var(X) = λ 6
Bernoulli Probability n p. X(k) = p, 1 -p n n E[X] = Σ x p. X(x) = var(X) = E[X 2] – (E[X])2 7
Binomial Probability n p. X(k) = Cnk pk (1 – p)n – k n n E[X] = E[X 1] + … + E[Xn] n E[X] = Σ k Cnk pk (1 – p)n – k var(X) = 8
Geometric Probability n p. X(k) = (1 – p)k-1 p n n E[X] = P(X=1)E[X|X=1] + P(X>1)E[X|X>1] n E[X] = Σk(1 – p)k-1 p var(X) = E[X 2] – (E[X])2 = 9
Poisson Probability n p. X(k) = e–λλk / k! n E[X] = n var(X) = 10
Example 2 (Binomial + Independence) Probability n Alice passes through four traffic lights on her way. (1) What is the PMF? (2) How many red lights Alice encounters? (3) From (2), find the variance. 11
Example 3 (Geometric) Probability n One child each family in China! n n If 1 st child is a boy, parents have no more child. If 1 st child is a girl, parents have another 2 nd child. Parents won’t give birth to more babies until a boy is born. The number of boys = The number of girls ? 12
Continuous Random Variable Probability n n Uniform f. X(x) = E[X] = var(X) = , a≦x≦b 13
Probability Density Function Probability n The random variable is a real-valued function of the outcome of the experiment. Discrete n Probability mass function General = Continuous n Probability density function 14
Example 4 (PDF) Probability n Computer’s lifetime is a random variable (unit: hour). f(x) = n { 0 100 / x 2 , x≦ 100 , x > 100 Five computers construct a network server (1) (2) (3) (4) A A computer is down at 150 th hour. computer is down before 200 th hour. server is crash before 700 th hour. 15
- Slides: 15