Professional Documents
Culture Documents
Let X = # heads.
Probability Distribution
X Value 0 Probability 1/4 = 0.25 2/4 = 0.50 1/4 = 0.25
0.50 0.25
T T H H
T H T H
1 2
Pro obability
X
3
p(x) = 1
x
Expected Value
Expected Value ( mean) of a discrete p (or ) distribution (Weighted Average)
= E(x) =
x p(x)
x
0 1 2
= E(X ) = (x ) p(x)
2 2 2 x
= 2 =
(x ) 2 p(x)
x
(x ) 2 p(x)
x
= (0 1)2 ( 25) + (1 1)2 ( 50) + (2 1)2 ( 25) = .50 = .707 (.25) (.50) (.25) 50 707
Possible number of heads = 0, 1, or 2
( x ) 2 p( x)
(0 2.8) 2 (0.10) = 0.784
= E ( X ) = 2.8
2 = Var ( X ) = 2.46
= 2.46 = 1.57
8
= E ( X 2 ) [ E ( X )]2
10
x 2 p ( x)
(0) 2 (0.10) = 0
= E ( X ) = 2.8
E ( X 2 ) = 10.3
E(a) = a
and
Var(a) = 0
i.e., if a random variable always takes the value a, , y , it will have mean a and variance 0 b)
E(bX) = bX
and
Var(bX) = b
2
2 X
Let random variable X have mean x and variance 2x Let a and b be any constants, then
E(a + bX) = a + b X
Var(a + bX) = b
2
Let random variable X have mean x and variance 2x Let Then So that
Z=
X X
X 1 Z = a + bX , where, a = , b= X X
X 1 E (Z ) = a + bE ( X ) = + X = 0 X X
1 Var (Z ) = b Var ( X ) = Var ( X ) = 1 X
2 2
Bernoulli Distribution
Bernoulli trial: A random experiment that gives rise to two mutually exclusive t o m t all e cl si e and collecti el e ha sti e collectively exhaustive outcomes
e.g., head or tail in each toss of a coin; defective or not defective g light bulb Generally called success and failure Probability of success is p, probability of failure is 1 p
Define random variable X: X=1 if success and X=0 if failure The B Th Bernoulli probability f lli b bilit function i ti is: P(X=0) = (1-p), P(X=1)=p.
15
2 = E[(X ) 2 ] = (x ) 2 p(x)
X
= (0 p) 2 (1 p) + (1 p) 2 p = p(1 p)
Binomial experiment
Properties of a Binomial experiment p p
1. The experiment consists of a sequence of n identical Bernoulli trials. For each trial, two mutually exclusive and collectively exhaustive outcomes ( success and failure) success failure ), are observed. 2. The trials are independent
The outcome of one observation does not affect the outcome of the other
17
18
19
20
21
Rule of Combinations
The number of combinations of selecting X g objects out of n objects is
n n! X = X!(n X)!
where: n! =(n)(n - 1)(n - 2) . . . (2)(1) (n)(n X! = (X)(X - 1)(X - 2) . . . (2)(1) 0! = 1 (by definition)
E.g., Toss a coin three times, the number of outcomes resulting in exactly one head is 3 (HTT, THT, TTH)
22
p(x) = probability of x successes in n trials, with probability of success p on each trial p y x = number of successes in sample, (x = 0, 1, 2, ..., n) n = sample size (number of trials or observations) p = probability of success success
Example: Flip a coin four times, let x = # heads: n = 4, p = 0.5 1 - p = (1 - 0.5) = 0.5 x = 0, 1, 2, 3, 4
23
5 5! 5 4 3! = = = 10 2 2 3! 2!3! 5 5 5 5 = = 5, = = 1 4 1 5 0
24
25
P(X) .6 .4 .2 0 0
n = 5 p = 0.1
X 1 2 3 4 5
n = 5 and p = 0.5
P(X=0) P(X 0) P(X=1) P(X=2) P(X=3) P(x=4) ( ) P(X=5) =0.03125 0 03125 =0.15625 =0.31250 =0.31250 =0.15625 =0.03125
( ) P(X) .6 .4 .2 0 0
N=20, p=0.1
N=50, p=0.1
N=100, p=0.1
0.2 0.18 0.16 0.14 Probab bility Probab bility 0.12 0.1 01 0.08 0.06 0.04 0.02 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 x
0.12 0.1
0.01 0 1 4 7 10 13 16 19 22 25 28 31 34 37 40 43 46 49 x 0 1 7 13 19 25 31 37 43 49 55 61 67 73 79 85 91 97 x
n=20, p=0.5
n=50, p=0.5
n=100, p=0.5
27
= E(X) = np
= np(1 - p)
2
= np(1 - p)
Where n = sample size p = probability of success (1 p) = probability of failure
28
Binomial Characteristics
Examples
P(X) .6 4 .4 .2 0 0
n = 5 p = 0.1
X 1 2 3 4 5
= np = (5)(0.5) = 2.5
= np(1- p) = (5)(0.5)(1 0.5) = 1 118 1.118
6 .6 .4 .2 0
P(X)
n = 5 p = 0.5
X
5
29
Example
Large lots of incoming products at a manufacturing plant are inspected for defectiveness. An engineer draws 10 items from each lot with replacement and does the inspection. Decision: reject the lot if number of defects >1 accept the lot if number of defects 1 Assume 5% of the products are defects what is the probability defects, that a lot will be accepted? Let X be the number of defects, then X is distributed as Bin(10, 0.05) 0 05) (Please verify the three conditions) conditions).
P(accept) = P(X = 0) + P(X = 1) 10 10 0 10 0 = (0.05) (1 0.05) + (0.05)1 (1 0.05)101 0 1 = (0.95)10 + 10(0.05)(0.95) 9 = 0.5987 + 0.3151 = 0.9138
30
Properties: ope es
0 p (x,y) 1, and
p(x,y) = 1
x y
pX (x) = p(x,y)
y
pY (y) = p(x,y)
x
Independence
The jointly distributed random variables X and Y are said to be independent if and only if their joint probability function is the product of their marginal probability functions:
p(x1 ,x 2 ,
,x k ) = p X1 (x1 )p X 2 (x 2 )
p X n (x k )
Y return
X return 0% 5% 10% 15% 0% 0.0625 0 0625 0.0625 0.0625 0 0625 0.0625 5% 0.0625 0 0625 0.0625 0.0625 0 0625 0.0625 10% 0.0625 0 0625 0.0625 0.0625 0 0625 0.0625 15% 0.0625 0 0625 0.0625 0.0625 0 0625 0.0625
35
Y return X return 0% 5% 10% 15% pY(y) 0% 0.0625 0.0625 0.0625 0.0625 0.25 5% 0.0625 0.0625 0.0625 0.0625 0.25 10% 0.0625 0.0625 0.0625 0.0625 0.25 15% 0.0625 0.0625 0.0625 0.0625 0.25 pX(x) 0.25 0.25 0.25 0.25 1
X 2 = ( x X ) 2 P( X = x)
x
= (0 0.075) 2 (0.25) + (0.05 0.075) 2 (0.25) + (0.10 0.075) 2 (0.25) + (0.15 0.075) 2 (0.25) = 0.003125 or equivalently
X 2 = x 2 P( X = x) X 2
x
Y return X return 0% 5% 10% 15% pY(y) 0% 0.0625 0.0625 0.0625 0.0625 0.25 5% 0.0625 0.0625 0.0625 0.0625 0.25 10% 0.0625 0.0625 0.0625 0.0625 0.25 15% 0.0625 0.0625 0.0625 0.0625 0.25 pX(x) 0.25 0.25 0.25 0.25 1
Conditional probability function: P(X=0|Y=0) = P(X=0,Y=0)/P(Y=0) = 0.0625/0.25 = 0.25 Is X and Y independent? We just showed that P(X=0|Y=0) =P(X=0) we can also show that =P(X=0), P(X=x|Y=y) = P(X=x) for all possible x values and y values (x, y = 0, 0.05, 0.10, 0.15). Therefore, X and Y are independent. Equivalently, we can look at the joint distribution: P(X=x, Y=y) = 0.0625 P(X=x)P(Y=y) = 0.25 0 25 = 0 0625 0 25 0.25 0.0625 P(X=x,Y=y) = P(X=x)P(Y=y) for all possible values of x and y Therefore, X and Y are independent
37
Covariance
Let X and Y be discrete random variables with means X and Y The expected value of (X - X)(Y - Y) is called the covariance between X and Y o discrete a do a ab es For d sc e e random variables
Cov(X,Y) = E[(X X )(Y Y )] = (x x )(y y )p(x,y)
x y
Y return X return 0% 5% 10% 15% PY(y) 0% 0.0625 0.0625 0.0625 0.0625 0.25 5% 0.0625 0.0625 0.0625 0.0625 0.25 10% 0.0625 0.0625 0.0625 0.0625 0.25 15% 0.0625 0.0625 0.0625 0.0625 0.25 PX(x) 0.25 0.25 0.25 0.25 1
= 0 0 0.0625 + 0 0.05 0.0625 + 0 0.10 0.0625 + 0 0.15 0.0625 + 0.05 0 0.06 5 + 0.05 0.05 0.06 5 + 0.05 0. 0 0.06 5 + 0.05 0.15 0.0625 0.0625 0.0625 0.10 0.0625 0. 5 0.06 5 + 0.10 0 0.0625 + 0.10 0.05 0.0625 + 0.10 0.10 0.0625 + 0.10 0.15 0.0625 + 0.15 0 0.0625 + 0.15 0.05 0.0625 + 0.15 0.10 0.0625 + 0.15 0.15 0.0625 0 075 0.075 = 0 0.075 0 075
40
Note that E(Y|x)=E(Y) and Var(Y|x)=Var(Y) when X and ( | ) ( ) ( | ) ( ) Y are independent of each other
41
(example) ( l )
Conditional distributions:
y 0 1 0.23/0.46 0.10/0.24 2 0.16/0.46 0.11/0.24 Total 1 1
42
P(Y=y|X=3) 0.09/0.3 = 0.3 0.14/0.3 = 0.4667 0.07/0.3 = 0.2333 1 P(Y=y|X=4) 0.07/0.46 P(Y=y|X=5) 0.03/0.24
E (Y | X = 3) = yP(Y = y | X = 3)
y
43
Therefore
E (Y | X = x) p ( x )
X x
In general
E (Y ) = E (Y | X = x) p X ( x )
x
44
W = aX + bY
The Th mean value f W i l for is
W 2 = a 2 X 2 + b 2 Y 2 + 2abCov ( X , Y ) bC
When X and Y are independent,
2 = a 2 2 + b 2 2 W X Y
E ( X + Y ) = X + Y ,
2 X 2 Y
E ( X Y ) = X Y
2 X 2 Y
Var ( X + Y ) = + , Var ( X Y ) = +
E ( X i ) = X i
i =1 i =1
Var ( X i ) = X i
i =1 i =1
In particular, if X1, X2, , Xn are independent and identically distributed (i.i.d) random variables with mean and variance 2
E ( X i ) = n E (X ) =
i =1
Var ( X i ) = n 2 Var (X ) = 2 / n
i =1
Find the mean and variance of the profit from each strategy Let W be the profit, then p ,
a. Wa = 10X b. Wb = 10Y c. Wc = 5X + 5Y
48
Example (Continued)
X = E ( X ) = xP( x) = (5)(0.4) + (20)(0.6) = $10
x