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

Post on 27-Jun-2020

10 Views

Category:

Documents

0 Downloads

Preview:

Click to see full reader

TRANSCRIPT

Lecture 3: Bayesian parameter estimates I.

Bayes’ theorem

how to calculate Bayesian probabilities:

probability of car hiding

probability of car hidingafter door 3 opened

how to calculate Bayesian probabilities:

Bayesian parameter estimates:

Bayesian parameter estimates:

Bayesian parameter estimates:

Bayesian parameter estimates:

Bayesian parameter estimates:

Bayesian parameter estimates:

Bayesian parameter estimates:

Bernoulli distribution:

%%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:

Bayesian parameter estimates:

Bernoulli distribution:

top related