Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bayesian Updating and Slide 2 #4

Open
jsilverpa opened this issue Jan 7, 2022 · 1 comment
Open

Bayesian Updating and Slide 2 #4

jsilverpa opened this issue Jan 7, 2022 · 1 comment

Comments

@jsilverpa
Copy link

Hi Richard, thanks so much for the book and the course. Though I wasn't able to register for your course, I've been following along with the videos. I have an question and I hope it is ok to ask this here...

In Lecture 2, you explain the grid method have a slide about Bayesian updating. Your rules:

  1. State a casual model for how the observations arise, given each possible explanation.
  2. count ways data could arise for each explanation
  3. Relative plausibility is relative value from (2)

Your example uses throwing the globe and seeing if your finger lands on water or land so (2) above is easy to compute using the binomial distribution. But, how do you calculate (2) when your problem gets slightly more complicated (e.g. figuring out the probability that a posterior explanation data point is a good fit for matching a line to a set of real-valued data points)?

Thanks in advance.

@rmcelreath
Copy link
Owner

This is the topic of the lectures next week. The additional complication with a line is that there is more than one parameter to consider: an intercept and a slope. But otherwise grid approximation works the same way: pick pairs of intercepts and slopes, compute Pr(data|intercept,slope)*Pr(intercept)*Pr(slope) for each, normalize and you have the posterior distribution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants