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

Chapter 8 of BDA3 #65

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
Open

Chapter 8 of BDA3 #65

wants to merge 11 commits into from

Conversation

rosgori
Copy link
Contributor

@rosgori rosgori commented Dec 10, 2019

I would like to add this chapter to the main repository.

There is one example in this chapter:

  • Example. Stratified sampling in pre-election polling.

I have used pymc3 to reproduce the results. I must say that there are some problems with the hierarchical model, the figure 8.1 (b) is almost the same, except for a minus sign. After months of redoing that example, I don't know a good solution to that. I also used pystan to reproduce the problems with the hierarchical model, although the idea is to remove that part before merging. If anyone has suggestions (either code or English), I'd like to hear them!

@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

You'll be able to see Jupyter notebook diff and discuss changes. Powered by ReviewNB.

rosgori and others added 2 commits December 10, 2019 16:55
The hierarchical model in pymc3 was changed and improved, the results are similar
@rosgori
Copy link
Contributor Author

rosgori commented Mar 29, 2020

I think I finally understood the hierarchical model, and the results are quite similar. I have to change some visualizations and explain more about the model.

The option `softmax` was added to both hierarchical models (PyStan and PyMC3). The results are identical between both (fortunately), but they are different from the book.
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

Successfully merging this pull request may close these issues.

1 participant