Bayesian Estimation and Confidence Intervals: A Comparison with Classical Estimation - Pro, Study notes of Introduction to Macroeconomics

Bayesian estimation and confidence intervals, an alternative approach to classical estimation. The concept of bayesian analysis, the use of prior distributions, and the calculation of posterior distributions. The document also includes an example of bayesian estimation using a bernoulli distribution and the calculation of bayesian confidence intervals.

Typology: Study notes

Pre 2010

Uploaded on 03/18/2009

koofers-user-zse
koofers-user-zse 🇺🇸

4

(1)

9 documents

1 / 4

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Bayesian Estimation and Confidence Intervals
Lecture XXII
I. Bayesian Estimation
A. Implicitly in our previous discussions about estimation, we adopted a classical
viewpoint.
1. We had some process generating random observations.
2. This random process was a function of fixed, but unknown.
3. We then designed procedures to estimate these unknown parameters based
on observed data.
B. Specifically, if we assumed that a random process such as students admitted to the
University of Florida, generated heights. This height process can be characterized
by a normal distribution.
1. We can estimate the parameters of this distribution using maximum
likelihood.
2. The likelihood of a particular sample can be expressed as
22
2
12 21
2
11
, , , exp 2
2
ni
ni
n
L X X X X
3. Our estimates of and
2
are then based on the value of each parameter
that maximizes the likelihood of drawing that sample
C. Turning this process around slightly, Bayesian analysis assumes that we can make
some kind of probability statement about parameters before we start. The sample
is then used to update our prior distribution.
1. First, assume that our prior beliefs about the distribution function can be
expressed as a probability density function where is the
parameter we are interested in estimating.
2. Based on a sample (the likelihood function) we can update our knowledge
of the distribution using Bayes rule
LX
XL X d
D. Departing from the book’s example, assume that we have a prior of a Bernoulli
distribution. Our prior is that
P
in the Bernoulli distribution is distributed
,
.
1. The beta distribution is defined similar to the gamma distribution:
1
1
1
,1
,
f P P P
B
pf3
pf4

Partial preview of the text

Download Bayesian Estimation and Confidence Intervals: A Comparison with Classical Estimation - Pro and more Study notes Introduction to Macroeconomics in PDF only on Docsity!

Bayesian Estimation and Confidence Intervals

Lecture XXII

I. Bayesian Estimation

A. Implicitly in our previous discussions about estimation, we adopted a classical viewpoint.

  1. We had some process generating random observations.
  2. This random process was a function of fixed, but unknown.
  3. We then designed procedures to estimate these unknown parameters based on observed data. B. Specifically, if we assumed that a random process such as students admitted to the University of Florida, generated heights. This height process can be characterized by a normal distribution.
  4. We can estimate the parameters of this distribution using maximum likelihood.
  5. The likelihood of a particular sample can be expressed as 2 2 2 (^1 2 22 )

, , , exp n (^) 2 n (^) n 2 i i

L X X X X

  1. Our estimates of and 2 are then based on the value of each parameter that maximizes the likelihood of drawing that sample C. Turning this process around slightly, Bayesian analysis assumes that we can make some kind of probability statement about parameters before we start. The sample is then used to update our prior distribution.
  2. First, assume that our prior beliefs about the distribution function can be expressed as a probability density function where is the parameter we are interested in estimating.
  3. Based on a sample (the likelihood function) we can update our knowledge of the distribution using Bayes rule L X X L X d

D. Departing from the book’s example, assume that we have a prior of a Bernoulli distribution. Our prior is that P in the Bernoulli distribution is distributed ,.

  1. The beta distribution is defined similar to the gamma distribution: 1 1 1 , 1 ,

f P P P B

Professor Charles Moss Fall 2007

, is defined as (^1 ) 0 B , x 1 x dx

Thus, the beta distribution is defined as 1 1 f P , P 1 P

  1. Assume that we are interested in forming the posterior distribution after a single draw: 1 1 1

(^1 1 ) 0 1 (^1 ) 0

X^ X

X X

X X X X

P P P P

P X

P P P P dP

P P

P P dP

Following the original specification of the beta function (^1 1 1) * 1 * 1 0 0

where and 1 1 1

X^ X P P dP P P dP

X X X X

The posterior distribution, the distribution of P after the observation is then (^1 ) 1

X^ X P X P P X X

  1. The Bayesian estimate of P is then the value that minimizes a loss function. Several loss functions can be used, but we will focus on the quadratic loss function consistent with mean square errors 2 2 ˆ

min ˆ^2 ˆ 0 ˆ ˆ (^) [ ]

P

E P P

E P P E P P

P

P E P

Professor Charles Moss Fall 2007

  1. Going back to the example in the last lecture, in the first draw Y 15 and n (^50). This yields an estimated value of P of 0.3112. This value compares with the maximum likelihood estimate of 0.3000. Since the maximum likelihood estimator in this case is unbaised, the results imply that the Bayesian estimator is baised.

II. Bayesian Confidence Intervals

A. Apart from providing an alternative procedure for estimation, the Bayesian approach provides a direct procedure for the formulation of parameter confidence intervals. B. Returning to the simple case of a single coin toss, the probability density function of the estimator becomes: (^1 ) 1

X^ X P X P P X X As previously discussed, we know that given 1.4968 and a head, the Bayesian estimator of P is 0.6252. However, using the posterior distribution function, we can also compute the probability that the value of P is less than 0. given a head:

.5 (^1) 0

X^ X P P P P dP X X

Hence, we have a very formal statement of confidence intervals.