Docsity

Bayesian Statistics - Basic Statistical Methods | ISYE 2028, Study notes of Data Analysis & Statistical Methods

Toggle sidebar
bg1
ISYE 2028 A and B
Spring 2009
Lecture 18
Dr. Kobi Abayomi
April 25, 2009
1 Introduction: Bayesian Statistics
The Bayesian approach augments ‘frequentist’ procedures by including ‘prior’ information about
the parameter of interest, θ.
Consider X∼fθ(x) (say X∼N(µ, σ2)).
In the ‘frequentist approach’ µ, σ2are constants, which we estimate, say via the likelihood, Lik(x|θ) =
Qn
i=1 fθ(xi), for example. We derive estimates using the likelihood of the data, or the sampling
distribution. Common estimates are ˆµ=xand ˆσ2=s2.
In the ‘Bayesian approach’ θ(say (µ, σ2)) is an instance of a random variable with a PDF, say
π(θ), and now we derive estimates using the additional randomness of π(θ) via Bayes0Equation:
π(θ|x) = f(x|θ)·π(θ)
g(x)
In this setup, for x1, ..., xn=X∼fθ(x)
π(θ)≡prior dist. for θ
f(x|θ)≡‘likelihood0, prob. of data given θ
g(x)≡marginal dist of x1, ..., xn
π(θ|x)≡the posterior dist f or θ
1
pf3
pf4
pf5

Partial preview of the text

Download Bayesian Statistics - Basic Statistical Methods | ISYE 2028 and more Study notes Data Analysis & Statistical Methods in PDF only on Docsity!

ISYE 2028 A and B

Spring 2009

Lecture 18

Dr. Kobi Abayomi

April 25, 2009

1 Introduction: Bayesian Statistics

The Bayesian approach augments ‘frequentist’ procedures by including ‘prior’ information about the parameter of interest, θ.

Consider X ∼ fθ(x) (say X ∼ N (μ, σ^2 )).

In the ‘frequentist approach’∏ μ, σ^2 are constants, which we estimate, say via the likelihood, Lik(x|θ) = n i=1 fθ(xi), for example.^ We derive estimates using the likelihood of the data, or the sampling distribution. Common estimates are ˆμ = x and ˆσ^2 = s^2.

In the ‘Bayesian approach’ θ (say (μ, σ^2 )) is an instance of a random variable with a PDF, say π(θ), and now we derive estimates using the additional randomness of π(θ) via Bayes′Equation:

π(θ|x) =

f (x|θ) · π(θ) g(x)

In this setup, for x 1 , ..., xn = X ∼ fθ(x)

π(θ) ≡ prior dist. f or θ

f (x|θ) ≡ ‘likelihood′, prob. of data given θ

g(x) ≡ marginal dist of x 1 , ..., xn

π(θ|x) ≡ the posterior dist f or θ

We get the marginal distribution for the data, g(x)

g(x) =

∫ (^) ∞^ θ^ f^ (x|θ)π(θ)^ if^ θ is discrete −∞ f^ (x|θ)π(θ)^ if^ θ is cont.

2 Bayesian Computation

In the Bayesian approach, the posterior for θ, π(θ|x) is a full PDF, or distribution. This distribution is the tool or method by which we conduct inference.

Example:

Let X ∼ Bin(2, p), and π(p = .1) = .6, π(p = .2) = .4. Then

fp=1/ 2 (x) = f (x|p = 1/2) = C x^2 px(1 − p)^2 −x

And

g(x) =

p

fp(x)π(p) =

= f (x|.1) · π(.1) + f (x|.2) · π(.2) = = C x^2. 1 x. 92 −x^ · .6 + C x^2. 2 x. 82 −x^ ·. 4

So

π(. 1 |x) = f (x|.1) · π(.1) g(x)

. 1 x. 92 −x^ ·. 6 . 1 x. 92 −x^ · .6 +. 2 x. 82 −x^ ·. 4

and here,

π(. 2 |x) = 1 − π(. 1 |x)

Suppose we observe data xobs = 0, then:

π(. 1 |0) =

= C x^2

0

px(1 − p)^2 −xdp

In this case g(0) = g(1) = g(2) = 1/3. so

π(p|x) =

C x^2 px(1 − p)^2 −x 1 / 3

= 3 · C x^2 px(1 − p)^2 −x

Now, with a full PDF for p, we can find ‘posterior’ estimates of parameters. Contrast this with the ‘frequentist’ approach where we found point estimates and used the sampling distribution; in the Bayesian approach the sampling distribution role in inference on the parameter is replaced with the Bayesian posterior distribution.

Example

X ∼ Bin(2, p) and π(p) = 1, 0 ≤ p ≤ 1, we observe data x = 1

Thus

π(p|1) = 6p(1 − p)

Thus

pˆ = E(p) =

0

p · 6 p(1 − p)dp = 1/ 2

...one possible estimate for the parameter p.

Another possible estimate of p, ˆp∗, the posterior mode:

dπ(p|x) dp = 6 − 12 p =

pˆ∗^ = 1/ 2

3 Bayesian Posterior Intervals

In the frequentist approach the Confidence Interval is the interval, say I, such that

P(μ ∈ I in repeated experiments) = (1 − α)%

In the Bayesian approach the Confidence Interval is the interval, I, such that

P(μ ∈ I) = (1 − α)%

Example

Let X ∼ Bin(2, p) and π(p) = 1, 0 ≤ p ≤ 1 and the observed data xobs = 0. The 95% Bayes Interval is (a, b) such that

∫ (^) a

0

3(1 − p)^2 dp =. 025

and

∫ (^1)

b

3(1 − p)^2 dp =. 025

thus a = .0084 and b = .7076. Then P(p ∈ (. 0084 , .7076)) =. 95

4 Exercises