Professional Documents
Culture Documents
Environmental Valuation
Basics (continued):
Models for proportions and means
{fjvpolo or mnegrin}@dmc.ulpgc.es
1
Course on Bayesian Methods in Environmental Valuation
Contents
1. Introduction to Bayesian Analysis
3. Software: WinBUGS
Introduction to Bayesian Analysis
Bayes Theorem:
P A | H i PH i
P H i | A
j PA | H j PH j
The posterior probability of Hi given A is proportional to
the product of the prior probability of Hi and the
likelihood of A when Hi is true.
Introduction to Bayesian Analysis
Uninformative prior
-Uniform, as wide as possible
-Sometimes called flat priors
-Problem: often difficult to define
Informative Prior
-Not uniform
-Assume we have some prior knowledge
Conjugate Prior
-Prior and posterior have same distribution
Often makes the maths easier
Noninformative or reference priors
P | X P P X |
P( | X) is called the posterior distribution
Product of the prior and the likelihood
We can ignore the constant of proportionality
Posterior distribution
The posterior distribution contains all the current
information about the unknown parameter
All Bayesian inference is based on the posterior
distribution:
-Estimation
-Estimating values of unknown parameters that can
never be observed or known
-Testing
-Prediction
-Estimating the values of potentially observable but
currently unobserved quantities.
Using Bayes rule to update probabilities
Bayes rule:
P(event | data) P(event) x P(data | event)
Posterior prior x likelihood
Bayes rule applied to the example
You take the blood test and the result is positive (+). This
is the data or observation.
Estimation
Frequentist approach
Parameters are considered "fixed but unknown"
We can not assign a distribution.
Bayesian approach
Parameters are considered random and unknown
They are random because they are unknown
Bayesian Inference
Bayesian intervals
Frequentist approach
H0 vs. H1 (2 hypothesis)
: Type I error (Probability of rejecting the hypothesis when
hypothesis is true)
1%, 5% 10%
: Type II error (Probability of accepting the hypothesis
when hypothesis is false)?
p-value
(accept if p-value > 0.05; reject if p-value < 0.05)
Hypthotesis testing
Bayesian approach
H0 : 0
H1 : 0
*
*
P x | x p x | p | x d