Introduction To Bayesian Statistics: 24 February 2016 A Semester's Worth of Material in Just A Few Dozen Slides
Introduction To Bayesian Statistics: 24 February 2016 A Semester's Worth of Material in Just A Few Dozen Slides
Introduction To Bayesian Statistics: 24 February 2016 A Semester's Worth of Material in Just A Few Dozen Slides
Jeff Witmer
24 February 2016
Thus, P(a|b) =
P(a)P(b | a)
å P(a*)P(b | a*)
a*
Where a* means “any value of a”
P(a)P(b | a)
P(a|b) =
å P(a*)P(b | a*)
a*
(0.01)(0.95) 0.0095
= = » 0.24
(0.01)(0.95) + (0.99)(0.03) 0.0095 + 0.0297
Typical statistics problem: There is a parameter, θ,
that we want to estimate, and we have some data.
Traditional (frequentist) methods: Study and describe
P(data | θ). If the data are unlikely for a given θ, then
state “that value of θ is not supported by the data.” (A
hyp. test asks whether a particular value of θ might be
correct; a CI presents a range of plausible values.)
Bayesian methods: Describe the distribution P(θ | data).
where
where
a
Fact : mean =
a +b
Run BetaPlot.R….
Binomial (Bernoulli) data and a Beta prior
Posterior µ Prior Likelihood
Thus post
This is a Beta(a+z, b+n-z)
See Effect on posterior of large n.R. Data: 1 success in 4 trials.
See Effect on posterior of large n.R. Data: 10/40 (vs ¼ )
See Effect on posterior of sharp prior.R
See BernBetaExampleLoveBlindMen.R. Data: 16 of 36
men correctly identify their partner.
See Run Jags-Ydich-Xnom1subj-MbernBeta-LoveBlindMen.R
which uses MCMC – and gives similar results
See rpubs.com/jawitmer/154977
Normal data – comparing 2 means
See the BEST website:
http://www.sumsar.net/best_online/
There is also an easy-to-use R package:
Bayesian First Aid
with(ExerciseHypoxia, t.test(MBF ~ Oxygen))
is changed to
Outlier