Professional Documents
Culture Documents
Topic 2 Probability Theory-Part A
Topic 2 Probability Theory-Part A
e.g. ∑ i=1
99
10 =10 + 10 +. . . . . +10= 99 ⋅ 10 = 990
99 times
Note: ∑ x i ⋅ ∑ y i
= 10 ⋅ 8
≠ ∑ x i ⋅ yi
= 8 ⋅ 0 + −3 ⋅ 0 + 4 ⋅ 10 + 2 ⋅ −1 + −1 ⋅ −1 = 39
Summations Econ 3334
∑ ax i = a ∑ x i
∑a = n ⋅ a
∑ xiyi = ∑ yixi
∑ax i + by i = a ∑ x i + b ∑ y i
∑ ∑ xi = n ∑ xi
Econ 3334
4
1) Random variable and distribution Econ 3334
Outcomes- Potential results
Sample Space- All possible outcomes
Probability- Proportion of the time that an outcome occurs
Event- Set of one or more outcomes (subset of sample space)
e.g. Grade Probability
A 4.0 .15
B 3.0 .40
C 2.0 .30
D 1.0 .10
F 0.0 .05
A,B,C,D,F are each outcomes, together they are sample
space
∑ prob = 1 and each prob∈ 0, 1
1) Random variable and distribution Econ 3334
Let V=the event that a random student gets an A or B
In this example “Grade” is a discrete random variable
PV = PA + PB =. 15 +. 40 =. 55
Probability Distribution
For a discrete random variable, the probability distribution
lists all the probabilities (e.g. our grade example)
Outcomes x 1 x 2 . . . x k
Probability p 1 p 2 . . . p k
1) Random variable and distribution Econ 3334
For continuous random variable, we have an
equation called probability density function that
does a similar thing. It provides the probability
that the RV takes on a value within an interval.
11
Econ 3334
12
2) Expectation, Mean, and Variance Econ 3334
D 1.0 .10 = 2. 5
F 0.0 .05
2) Expectation, Mean, and Variance Econ 3334
Example:
Grade Probability
A 4.0 .15
σ 2X = 4 − 2.5 2 ⋅ 0.15 + 3 − 2.5 2 ⋅ 0.40 +...
B 3.0 .40
C 2.0 .30 = 1.05
D 1.0 .10
F 0.0 .05 σ X = 1. 05 = 1. 025
2) Expectation, Mean, and Variance Econ 3334
Suppose
Y = a + bX
EY = Ea + bX = a + bEX
VarY = Vara + bX = 0 + b 2 VarX
Then
EC = 1000 + 0. 9EI = 1000 + 0. 9 ⋅ 4000 = 4600
E X−μ X 4
kurtosis =
σ 4X
3) Two Random Variables Econ 3334
Marginal Dist
Conditional Dist
3) Two Random Variables Econ 3334
Joint distribution : Random variables X and Y have a joint
distribution, i.e., the probability that the random variables
simultaneously take on certain values, say x and y.
The time to commute to school, and the weather
Time\weather 0 (raining) 1 (not raining)
40 min 0.08 0.15
50 min 0.20 0.25
60 min 0.28 0.04
Joint “and”
PX = x, Y = y
e. g PX = 60, Y = 0 =. 28
3) Two Random Variables Econ 3334
Marginal probability distribution of a random variable Y is
just another name for its probability distribution.
This term is used to distinguish the distribution of Y alone
and another random variable, say X.
PY = y = ∑ i PX = x i, Y = y
PY = 0 = ∑ i PX = x i, Y = 0 = 0. 56
Conditional Distribution:
PX=x,Y=y
PX = x ∣ Y = y = PY=y
PX=x,Y=y
PY = y ∣ X = x = PX=x
PX = 60 ∣ Y = 1 = 0. 09
PX = 60 = 0. 32
0. 09 ≠ 0. 32
so clearly X & Y are NOT independent
3) Two Random Variables Econ 3334
Conditional Expectation is the mean of Y given X=x:
EY ∣ X = x = ∑ y i ⋅ PY = y i ∣ X = x
EX ∣ Y = y = ∑ x i ⋅ PX = x i ∣ Y = y
Time/weather example
Time Condition distribution Time Condition distribution
given whether =0 given whether =1
40 min 0.08/0.56=0.143 40 min 0.15/0.44=0.340
50 min 0.20/0.56=0.357 50 min 0.25/0.44=0.568
60 min 0.28/0.56=0.5 60 min 0.04/0.44=0.091
sum 1 sum 1
EX ∣ Y = 0 = 40 ⋅ 0.08
0.56
+ 50 ⋅ 0.20
0.56
+ 60 ⋅ 0.28
0.56
= 53. 57
EX ∣ Y = 1 = 40 ⋅ 0.15
0.44
+ 50 ⋅ 0.25
0.44
+ 60 ⋅ 0.04
0.44
= 47. 5
3) Two Random Variables Econ 3334
Suppose that Y is a random variable:
y 1 with probability q1
y 2 with probability q2
Y=
...
y m with probability qm
3) Two Random Variables Econ 3334
E EY ∣ X
take the expectation w ith respect to Y given X
EX ∣ Y = 1 = 40 ⋅ 0.15
0.44
+ 50 ⋅ 0.25
0.44
+ 60 ⋅ 0.04
0.44
= 47. 5
Conditional Variance:
Time Condition distribution
given whether =0
40 min 0.08/0.56=0.143
50 min 0.20/0.56=0.357
60 min 0.28/0.56=0.5
sum 1
EX ∣ Y = 0 = 40 ⋅ 0.08
0.56
+ 50 ⋅ 0.20
0.56
+ 60 ⋅ 0.28
0.56
= 53. 57
varX ∣ Y = 0
= 40 − 53. 57 2 ⋅ 0. 08 + 50 − 53. 57 2 0. 20 + 60 − 53. 57 2 0. 28
0. 56 0. 56 0. 56
= 51. 53
3) Two Random Variables Econ 3334
Correlation:
covX,Y σ XY
corrX, Y = ρ XY = = σ X ⋅σ Y
varX varY
− 1 ≤ corr ≤ 1