lecture 3: bayesian parameter estimates i. › ... › lecture3.pdf · lecture 3: bayesian...

15
Lecture 3: Bayesian parameter estimates I.

Upload: others

Post on 27-Jun-2020

6 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Lecture 3: Bayesian parameter estimates I. › ... › Lecture3.pdf · Lecture 3: Bayesian parameter estimates I. Bayes’ theorem. ... Bayes Theorem Thomas Bayes 1702-1761 (same

Lecture 3: Bayesian parameter estimates I.

Page 2: Lecture 3: Bayesian parameter estimates I. › ... › Lecture3.pdf · Lecture 3: Bayesian parameter estimates I. Bayes’ theorem. ... Bayes Theorem Thomas Bayes 1702-1761 (same

Bayes’ theorem

Page 3: Lecture 3: Bayesian parameter estimates I. › ... › Lecture3.pdf · Lecture 3: Bayesian parameter estimates I. Bayes’ theorem. ... Bayes Theorem Thomas Bayes 1702-1761 (same

how to calculate Bayesian probabilities:

probability of car hiding

probability of car hidingafter door 3 opened

Page 4: Lecture 3: Bayesian parameter estimates I. › ... › Lecture3.pdf · Lecture 3: Bayesian parameter estimates I. Bayes’ theorem. ... Bayes Theorem Thomas Bayes 1702-1761 (same

how to calculate Bayesian probabilities:

Page 5: Lecture 3: Bayesian parameter estimates I. › ... › Lecture3.pdf · Lecture 3: Bayesian parameter estimates I. Bayes’ theorem. ... Bayes Theorem Thomas Bayes 1702-1761 (same

Bayesian parameter estimates:

Page 6: Lecture 3: Bayesian parameter estimates I. › ... › Lecture3.pdf · Lecture 3: Bayesian parameter estimates I. Bayes’ theorem. ... Bayes Theorem Thomas Bayes 1702-1761 (same

Bayesian parameter estimates:

Page 7: Lecture 3: Bayesian parameter estimates I. › ... › Lecture3.pdf · Lecture 3: Bayesian parameter estimates I. Bayes’ theorem. ... Bayes Theorem Thomas Bayes 1702-1761 (same

Bayesian parameter estimates:

Page 8: Lecture 3: Bayesian parameter estimates I. › ... › Lecture3.pdf · Lecture 3: Bayesian parameter estimates I. Bayes’ theorem. ... Bayes Theorem Thomas Bayes 1702-1761 (same

Bayesian parameter estimates:

Page 9: Lecture 3: Bayesian parameter estimates I. › ... › Lecture3.pdf · Lecture 3: Bayesian parameter estimates I. Bayes’ theorem. ... Bayes Theorem Thomas Bayes 1702-1761 (same

Bayesian parameter estimates:

Page 10: Lecture 3: Bayesian parameter estimates I. › ... › Lecture3.pdf · Lecture 3: Bayesian parameter estimates I. Bayes’ theorem. ... Bayes Theorem Thomas Bayes 1702-1761 (same

Bayesian parameter estimates:

Page 11: Lecture 3: Bayesian parameter estimates I. › ... › Lecture3.pdf · Lecture 3: Bayesian parameter estimates I. Bayes’ theorem. ... Bayes Theorem Thomas Bayes 1702-1761 (same

Bayesian parameter estimates:

Page 12: Lecture 3: Bayesian parameter estimates I. › ... › Lecture3.pdf · Lecture 3: Bayesian parameter estimates I. Bayes’ theorem. ... Bayes Theorem Thomas Bayes 1702-1761 (same

Bernoulli distribution:

Page 13: Lecture 3: Bayesian parameter estimates I. › ... › Lecture3.pdf · Lecture 3: Bayesian parameter estimates I. Bayes’ theorem. ... Bayes Theorem Thomas Bayes 1702-1761 (same

%%syms nn nb xnum = x^nb*(1-x)^(nn-nb);denom = gamma(nn-nb+1)*gamma(nb+1)/gamma(nn+2);p = num/denom;p=x^nb*(1-x)^(nn-nb)/gamma(nn- nb+1)/gamma(nb+1)*gamma(nn+2);figure(30)ezplot(subs(p,[nn,nb],[35,15]),[0,1]);

%%

Matlab code:

Bayesian parameter estimates:

Page 14: Lecture 3: Bayesian parameter estimates I. › ... › Lecture3.pdf · Lecture 3: Bayesian parameter estimates I. Bayes’ theorem. ... Bayes Theorem Thomas Bayes 1702-1761 (same

Bayesian parameter estimates:

Page 15: Lecture 3: Bayesian parameter estimates I. › ... › Lecture3.pdf · Lecture 3: Bayesian parameter estimates I. Bayes’ theorem. ... Bayes Theorem Thomas Bayes 1702-1761 (same

Bernoulli distribution: