(SINGLE-PARAMETER)
Shirlee Remoto-Ocampo
shirlee.ocampo@dlsu.edu.ph
Bayesian inference
Prior information p() on parameters
Likelihood of data given parameter
values f(y| )
Bayesian inference
f ( y | ) p ()
p ( | y )
f ( y)
or
( | y ) f ( y | ) p()
Shirlee Remoto-Ocampo
Shirlee Remoto-Ocampo
Importance of priors
Prior beliefs about uncertain parameters
are a fundamental part of Bayesian
statistics.
When we have few data about the
parameter of interest, our prior beliefs
dominate inference about that parameter.
In any application, effort should be made
to model our prior beliefs accurately.
24-25 January 2007
Shirlee Remoto-Ocampo
Shirlee Remoto-Ocampo
Shirlee Remoto-Ocampo
Shirlee Remoto-Ocampo
Shirlee Remoto-Ocampo
Shirlee Remoto-Ocampo
Shirlee Remoto-Ocampo
Example
1. Prior Distribution: A ball W is randomly thrown
(according to a uniform distribution on the table).
The horizontal position of the ball on the table is ,
expressed as a fraction of the table width.
2. Likelihood: A ball O is randomly thrown n times.
The value of y is the number of times ball O lands to
the right of ball W.
UNIFORM-BINOMIAL MODEL
Shirlee Remoto-Ocampo
Shirlee Remoto-Ocampo
Location Model
P(y-|) is free of and y
Example:
Show that N(,1) represents a location
Model.
Other examples:
U( 1/2 , + )
Cauchy density
Shirlee Remoto-Ocampo
Example
Shirlee Remoto-Ocampo
Scale Model
P(y/|) is free of and y
Y has a scale model if a function f and a quantity
such that Y has a distribution
f(y|) =
1
f( )
Location-Scale Model
Y has a scale model if a function f and quantities
and such that Y has a distribution given (, )
satisfies
f(y|, ) =
1
f( )
Shirlee Remoto-Ocampo
Shirlee Remoto-Ocampo
p()| |
p() =
density
p() [J(]
2 (|)
E[
|]
2
Example
Find the Jeffreys noninformative prior
for the Poisson distribution (single
parameter).
Shirlee Remoto-Ocampo
Shirlee Remoto-Ocampo
Example
Find the Jeffreys noninformative prior
for the Poisson distribution.
1 , 2 | ~Poisson()
1 , 2 |1 , 2 ~Poisson(1 , 2 )
Shirlee Remoto-Ocampo
EXERCISE/SEATWORK
Shirlee Remoto-Ocampo
Informative priors
An informative prior is an accurate
representation of our prior beliefs.
An informative prior is essential when we
have few or no data for the parameter of
interest.
Elicitation is the process of translating
someones beliefs into a distribution.
24-25 January 2007
Conjugate priors
When we move away from noninformative
priors, we might use priors that are in a
convenient form.
That is a form where combining them with the
likelihood produces a distribution from the
same family.
Informative Priors
Shirlee Remoto-Ocampo
Conjugate Priors
Conjugacy property that the posterior
distribution follows the same parametric form as
the prior distribution
Hyperparameters parameters of a prior
distribution
Shirlee Remoto-Ocampo
Assessment of Likelihood
Case 1: Sufficiently large set of data
1. Make an appropriate frequency histogram for the
data
2. Determine the mean and the variance.
3. Hypothesize a distribution that might fit the data
4. Estimate the parameter under the hypothesized
data
5. Test the good ness of fit of data against the
hypothetical data
Shirlee Remoto-Ocampo
Assessment of Likelihood
Case 2: Extremely (sparse) Set of Data
Make a smooth assessment of the CDF
1. Make a preliminary estimate of the cumulative
frequencies corresponding to each observed value
of the variable of interest, that is, array of n
observations. The kth observation will be the
k/(n+1)th quantile.
2. Adjust the estimates so that the whole distribution
will be smooth and of reasonable shape.
Shirlee Remoto-Ocampo
Shirlee Remoto-Ocampo
=1 .
Shirlee Remoto-Ocampo
Shirlee Remoto-Ocampo
Shirlee Remoto-Ocampo
Binomial Distribution
Shirlee Remoto-Ocampo
Shirlee Remoto-Ocampo
Shirlee Remoto-Ocampo
Beta Distribution
Shirlee Remoto-Ocampo
Shirlee Remoto-Ocampo
Question:
What is the posterior mean and posterior
variance of the beta-binomial model?
Uniform-binomial model?
Shirlee Remoto-Ocampo
Shirlee Remoto-Ocampo
Shirlee Remoto-Ocampo
Shirlee Remoto-Ocampo
Shirlee Remoto-Ocampo
Posterior Mean
Gamma-Poisson Model
https://www.youtube.com/watch?v=0XD6C_MQX
XE
Shirlee Remoto-Ocampo
Exponential-Gamma Model
Let 1 , 2 , be a random sample ~ Exp(), >
0. Suppose that the prior distribution of is
Gamma (,), , > 0. Then the posterior
distribution of is Gamma (r = r + , n = n +
) where y = =1 .
EXERCISE!
Shirlee Remoto-Ocampo
Normal-Normal Model
Normal with known mean
PROBLEM SET
Shirlee Remoto-Ocampo
Shirlee Remoto-Ocampo
Shirlee Remoto-Ocampo
Conjugate Priors
Prior
Beta
Gamma
Gamma
Beta
Likelihood
Binomial
Poisson
Exponential
Negative Binomial
Normal
Posterior
Beta
Gamma
Gamma
Conjugate Priors
Prior
Likelihood
Dirichlet
Multinomial
Shirlee Remoto-Ocampo
Posterior
APPLICATIONS
Suppose that the prior information concerning p, the
proportion of defectives, can well be represented by a
Beta distribution with parameters = 1 and = 19.
Following the assessment of his prior distribution, the
manager takes a random sample of 5 items from the
production process, observing one defective item.
Determine the posterior distribution of p.
Suppose that the manager decides to take another
random sample of 5 items and observes 2 defectives.
Determine the new posterior distribution of p.
Shirlee Remoto-Ocampo
APPLICATIONS
Suppose that the magnetic recording tape is
manufactured by a certain process, the mean number of
defects W on a 1000 ft roll of tape is unknown, and
suppose that the prior distribution of W is a gamma
distribution with mean 2 and variance 1. Suppose that
the number of defects on any roll of tape when W = w
has a Poisson distribution with mean w. Suppose further
that after a random sample of rolls of tape has been
counted, the mean of the posterior distribution of W is
1.6 and the variance is 0.16. Show that 8 rolls of tape
were included in the sample.
Shirlee Remoto-Ocampo
APPLICATIONS
An unknown proportion W of the items produced by a
certain machine is defective. Suppose that the prior
distribution of W is Beta with parameters = 1 and
= 99. Suppose also that items produced by the
machine are selected at random and observed one at a
time until exactly 5 defective items have been found. If,
when sampling terminates, the mean of posterior
distribution of W is 0.02, show that 195 nondefective
items were observed during the sampling process.
EXERCISE!
Shirlee Remoto-Ocampo
APPLICATIONS
Suppose that two physicists A and B are concerned with
obtaining a more accurate of some physical constant ,
previously known approximately. Suppose physicist A,
being very familiar with this area of study, can make a
moderately good guess of what the answer will be, and
that his prior opinion about can be approximately
represented by a normal distribution centered at 900
with a standard deviation of 20. By contrast, suppose that
physicist B has had little experience in this area, and has
rather vague prior beliefs which can be represented by a
normal distribution with mean 800 and a standard
deviation of 80.
Shirlee Remoto-Ocampo
Shirlee Remoto-Ocampo
Pythagorean Theorem is to
Geometry as Bayes Theorem is to
Probability.
THANK YOU!
Shirlee Remoto-Ocampo