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

Fixed an issue with m4_3b model which returned a negative b-value not consistent with output from textbook #230

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

vanislekahuna
Copy link

The previous m4_3b model resulted in a negative $\beta$-value which isn't consistent with what's in Prof. McElreath's "Statistical Rethinking" textbook. I've written a line of code to properly generate a log-normal distribution for the $\beta$-value so that it results in a positive value (i.e. roughly 0.902) when you return the summary table for trace_4_3b. I'm planning to submit more PR's as I read through the text so any good feedback for my first PR would be helpful!

Thank you for opening a pull request!

Please check our style guide, and also make sure that the notebooks you've modified pass the pre-commit checks. If, for example, you modified notebook1.ipynb and notebook2.ipynb, you could do this by running:

pre-commit run --files notebook1.ipynb notebook2.ipynb

You may need to run it a couple of times before all the checks pass.

…onsistent with what's in the textbook. I've written a line of code to properly generate a log-normal distribution for the b value so that it results in a positive value when you return the summary for .
@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@vanislekahuna vanislekahuna marked this pull request as draft November 2, 2023 18:39
@vanislekahuna vanislekahuna marked this pull request as ready for review November 2, 2023 18:39
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.

None yet

1 participant