Econ 120A Discrete Probability Distributions
Discrete Probability Distributions
Mean and Variance
- Population Mean (μ):
- Formula: μ=∑xp(x)
- This is the average value of the random variable X, weighted by the probabilities of each value.
- Population Variance (σ2):
- Formula: σ2=∑(x−μ)2p(x)
- This measures the spread or dispersion of the random variable X around its mean.
Example: Errors in Economics Textbooks
- X = number of errors per page in Economics textbooks
| x | p(x) | x . p |
|---|
| 0 | 0.81 | 0 |
| 1 | 0.17 | 0.17 |
| 2 | 0.02 | 0.04 |
| SUM | 1 | |
Variance Decomposition
- Formula:
- σ2=∑(x−μ)2p(x)
- Expanding the square:
σ2=∑(x2−2μx+μ2)p(x) - Distributing p(x):
σ2=∑x2p(x)−2μ∑xp(x)+μ2∑p(x) - Since μ=∑xp(x) and ∑p(x)=1:
σ2=∑x2p(x)−2μ2+μ2 - Simplified formula:
σ2=∑x2p(x)−μ2
Example Calculation
- Using the errors in economics textbooks example:
- Var(X) = 0.25 – (0.21)2 = 0.2059
Expectations Operator
- E(.) Operator:
- Takes the weighted average of (.), where the weights are the probabilities.
- E(X)=∑xp(x)=μX
- Expected Value:
- The expected value of a random variable is the weighted average of its possible values, weighted by their probabilities of occurring.
- Note that this is the same as the mean.
- The expected value of random variable X is its mean.
Expected Value of Functions of Random Variables
- If R=g(X), then
- E(R)=E[g(X)]=∑g(x)p(x)=μR
- The expected value of random variable R (a function of the random variable X) is also its mean.
Example Continued
- Calculating E(X2)
- Given X=x<em>1,x</em>2,…,xn
- E(X2)=∑x2p(x)
- Note that E(X2)=0.25=[E(X)]2=0.212
Expected Value of Squared Deviations from the Mean
- If g(X)=(X−μX)2
- E[g(X)]=∑g(x)p(x)=∑(x−μ<em>X)2p(x)=σ</em>X2
- Thus, E[(X−μ<em>X)2]=σ</em>X2
- The expected value of the squared deviation from the mean of the random variable X is its variance, just like the expected value of X is its mean.
Useful Rules for Expectations
- If c is any constant:
- E(c)=c
- E(X+c)=E(X)+E(c)=E(X)+c
- E(cX)=cE(X)
Alternative Expression of Variance
- Using the expectations operator:
- σ<em>X2=E[(X−μ</em>X)2]=E[X2−2Xμ<em>X+μ</em>X2]
- Applying linearity of expectation:
=E[X2]+E[−2Xμ<em>X]+E[μ</em>X2] - =E[X2]−2μ<em>XE[X]+E[μ</em>X2]
- =E[X2]−2μ<em>Xμ</em>X+μX2
- =E[X2]−μX2
- Thus,
- σ<em>X2=E[(X−μ</em>X)2]=E[X2]−μX2
Summary
- Population mean of random variable X:
- μX=∑xp(x)=E(X)
- Population variance of random variable X:
- σ<em>X2=∑(x−μ</em>X)2p(x)=∑x2p(x)−μX2
- =E[(X−μ<em>X)2]=E[X2]−μ</em>X2
Useful Rules (Revisited)
- If c is any constant:
- E(c)=c
- E(X+c)=E(X)+E(c)
- E(cX)=cE(X)
- Var(X+c)=Var(X)
- Var(cX)=c2Var(X)
Rules Explained
- Expected value of a constant (c):
- Expected value of the sum (X+c):
- E[X+c]=∑(x+c)p(x)=∑xp(x)+∑cp(x)=E[X]+c∑p(x)
- Since ∑p(x)=1:
E[X+c]=E[X]+c=μX+c
- Expected value of the product (cX):
- E[cX]=∑cxp(x)=c∑xp(x)=cE[X]=cμX
- Variance of the sum (X+c):
- Var(X+c)=∑((x+c)−(μ<em>X+c))2p(x)=∑(x−μ</em>X)2p(x)=Var(X)
- Variance of the product (cX):
- Var(cX)=∑(cx−cμ<em>X)2p(x)=c2∑(x−μ</em>X)2p(x)=c2Var(X)