Professional Documents
Culture Documents
xp(x),
i.e. the sum of all possible outcomes weighted by their
probabilities.
In our example we have
E(X) = 0p(0) + 1p(1) + 2p(2) + 3p(3)
= 0(0.125) + 1(0.375) + 2(0.375) + 3(0.125)
= 0 + 0.375 + 0.75 + 0.375 = 1.5.
EC114 Introduction to Quantitative Economics 3. Discrete Probability Distributions
Expectations 10/23
We can also nd expectations of functions of X.
For example, the expectation of X
2
is
E(X
2
) =
x
2
p(x),
i.e. the sum of the squared values of X weighted by their
probabilities.
In our example we have
E(X
2
) = 0p(0) + 1p(1) + 4p(2) + 9p(3)
= 0(0.125) + 1(0.375) + 4(0.375) + 9(0.125)
= 0 + 0.375 + 1.50 + 1.125 = 3.
Important: E(X
2
) = [E(X)]
2
.
EC114 Introduction to Quantitative Economics 3. Discrete Probability Distributions
Expectations 11/23
In general, if we have a function f (X) of X (e.g. f (X) = X
2
),
E[f (X)] =
f (x)p(x)
and E[f (X)] = f (E(X)).
Why might we be interested in the mean of functions of X?
The variance of X, denoted V(X) or
2
(the Greek letter
sigma), is the mean squared deviation of X around :
2
= V(X) = E(X )
2
=
(x )
2
p(x).
In our example we know that = 1.5, so it is easy to
compute
2
.
EC114 Introduction to Quantitative Economics 3. Discrete Probability Distributions
Expectations 12/23
Extending the earlier table:
x 0 1 2 3
p(x) 0.125 0.375 0.375 0.125
x 1.5 1.5 0.5 0.5 1.5
(x 1.5)
2
2.25 0.25 0.25 2.25
(x 1.5)
2
p(x) 0.28125 0.09375 0.09375 0.28125
Hence
2
= 0.75 (the sum of the last row above).
It is usually easier to calculate
2
a different way:
2
= E(X
2
)
2
.
To check:
2
= 3 1.5
2
= 3 2.25 = 0.75.
EC114 Introduction to Quantitative Economics 3. Discrete Probability Distributions
Expectations 13/23
Expectations play a large role in statistics.
Often we are interested in a linear function of a random
variable X of the form Z = a +bX, where a and b are
constants (non-random).
The mean and variance of Z are
E(Z) = a +bE(X), V(Z) = b
2
V(X).
Example: demand, Q, for a good is given by Q = 10 P,
where P denotes the price (a random variable) with
E(P) = 2 and V(p) = 0.5. Find E(Q) and V(Q).
Here we have a = 10 and b = 1 and so
E(Q) = 10 + (1) E(P) = 10 2 = 8,
V(Q) = (1)
2
0.5 = 0.5.
EC114 Introduction to Quantitative Economics 3. Discrete Probability Distributions
Pictorial Representations 14/23
Discrete probability distributions can be represented using
a histogram.
The vertical axis represents the probability; the horizontal
axis represents the values that X can take.
For our coin example:
0 1 2 3 X
0.5
0.375
0.25
0.125
0
Recall (from lecture 2) that it is the area of the bars that is
important, not the heights.
EC114 Introduction to Quantitative Economics 3. Discrete Probability Distributions
Pictorial Representations 15/23
Consider the following probability distribution:
0.5
0.375
0.25
0.125
0
9 10 11 12 13 14 15 16 X
P
r
o
b
a
b
i
l
i
t
y
D
e
n
s
i
t
y
We can use it to nd probabilities of certain events.
EC114 Introduction to Quantitative Economics 3. Discrete Probability Distributions
Pictorial Representations 16/23
For example:
P(X = 12) = 0.0625;
P(X = 10 or 11) = P(X = 10) +P(X = 11)
= 0.125 + 0.5 = 0.625;
P(9 X < 11) = P(X = 9) +P(X = 10)
= 0.125 + 0.125 = 0.25.
EC114 Introduction to Quantitative Economics 3. Discrete Probability Distributions
The Binomial Distribution 17/23
An important example of a discrete distribution is the
Binomial distribution.
Consider an experiment where each trial has two possible
outcomes, success (S) or failure (F), and each trial is
independent of all others.
An example is ipping a coin.
If the probabilities of success or failure remain the same
across all trials, they are said to be binomial (or sometimes
Bernoulli) trials.
EC114 Introduction to Quantitative Economics 3. Discrete Probability Distributions
The Binomial Distribution 18/23
Let n denote the number of trials, X the number of
successes (which is a discrete random variable taking
values 0, 1, 2, . . . , n), and the probability of success.
Suppose there are x successes followed by n x failures:
SSS . . . S
x
FFF . . . F
nx
Because the outcomes are independent, the probability P
of this sequence occuring is the product of the individual
probabilities:
P = . . .
x
(1 )(1 )(1 ) . . . (1 )
nx
=
x
(1 )
nx
EC114 Introduction to Quantitative Economics 3. Discrete Probability Distributions
The Binomial Distribution 19/23
However, this sequence is only one of all possible
sequences that can occur.
The total number of sequences yielding x successes in n
trials is
n
C
x
=
n!
(n x)!x!
where n! = n (n 1) (n 2) . . . 2 1 (n factorial).
Each sequence is mutually exclusive and so the probability
of x successes is
Pr(X = x) =
n!
(n x)!x!
x
(1 )
nx
, x = 0, 1, 2, . . . , n,
which denes the binomial distribution.
For given n and , this formula tells us the probability of x
successes.
EC114 Introduction to Quantitative Economics 3. Discrete Probability Distributions
The Binomial Distribution 20/23
The mean and variance of the binomial distribution are
= E(X) = n,
2
= V(X) = n(1 ).
Example: a researcher applies for a grant to a funding
agency each year over a six year period. Each years
application is independent of all others, and there is a 25%
chance of success. What are the probabilities of x
successes, where x = 0, 1, 2, . . . , 6?
EC114 Introduction to Quantitative Economics 3. Discrete Probability Distributions
The Binomial Distribution 21/23
Here we have n = 6 and = 0.25 so that 1 = 0.75. Also
note that 0! = 1. Hence
p(0) =
6!
6!0!
(0.25)
0
(0.75)
6
= 0.177;
p(1) =
6!
5!1!
(0.25)
1
(0.75)
5
= 0.355;
p(2) =
6!
4!2!
(0.25)
2
(0.75)
4
= 0.297;
p(3) =
6!
3!3!
(0.25)
3
(0.75)
3
= 0.132;
p(4) =
6!
2!4!
(0.25)
4
(0.75)
2
= 0.033;
p(5) =
6!
1!5!
(0.25)
5
(0.75)
1
= 0.004;
p(6) =
6!
0!6!
(0.25)
6
(0.75)
0
= 0.002.
EC114 Introduction to Quantitative Economics 3. Discrete Probability Distributions
The Binomial Distribution 22/23
The probability distribution is:
x 0 1 2 3 4 5 6
p(x) 0.177 0.355 0.297 0.132 0.033 0.004 0.002
The mean and variance are
= E(X) = 6 0.25 = 1.5,
2
= V(X) = 6 0.25 0.75 = 1.125.
The researcher can expect to obtain 1.5 grants in a six
year period we would interpret this as being between 1
and 2 grants as half grants arent awarded!
EC114 Introduction to Quantitative Economics 3. Discrete Probability Distributions
Summary 23/23
Summary
Discrete random variables; probability distributions.
Expectations mean, variance, linear functions.
The binomial distribution.
Next week:
Continuous random variables and probability distributions.
EC114 Introduction to Quantitative Economics 3. Discrete Probability Distributions