resampling-stats / resampling-with

Source repository for third edition of "Resampling: The New Statistics"
https://resampling-stats.github.io
Other
11 stars 9 forks source link

Ben/bayesian analysis #135

Closed ben-herbst closed 1 year ago

ben-herbst commented 1 year ago
ben-herbst commented 1 year ago

Messed around with monte_carlo.Rmd. Will resolve the conflicts

ben-herbst commented 1 year ago

Hi Pete

A gentle introduction is necessary, please go ahead!

I'll finish the rest of the chapter. Plan to replace his example using the normal distribution with a discrete example, e.g. coin tosses.

[image: Praelexis] https://praelexis.com/ Ben Herbst Data Scientist | Machine Learning Engineer

7 Neutron Avenue ⋅ Techno Park ⋅ Stellenbosch ⋅ 7600 PO Box 3396 ⋅ Matieland ⋅ Stellenbosch ⋅ 7602 mobile: +27 83 566 4466 ⋅ office: +27 21 200 5817 website http://www.praelexis.com/| map @.,18.8270702,17z/data=!3m1!4b1!4m5!3m4!1s0x1dcdb3226a13a605:0x12022a8f60a2a6bb!8m2!3d-33.9651846!4d18.8292589> | email @.> [image: Twitter] https://twitter.com/praelexis[image: Facebook] http://www.facebook.com/praelexis[image: LinkedIn] https://www.linkedin.com/company/praelexis/ Confidentiality Note: This email may contain confidential and/or private information. If you received this email in error please delete and notify sender.

On Mon, Aug 28, 2023 at 5:30 PM pxr687 @.***> wrote:

@.**** commented on this pull request.

In source/bayes_simulation.Rmd https://github.com/resampling-stats/resampling-with/pull/135#discussion_r1307579747 :

+\sum_X P(X, Y) = \sum_X P(X | Y) P(Y), +$$ +or +$$ +\sum_X P(X, Y) = P(Y) \sum_X P(X | Y). +$$ +Since $P(X | Y)$ is a probability distribution over $X$, we have $ \sum_X P(X | Y) = 1$. We therefore have +$$ +P(Y) = \sum_X P(X, Y). +$$ +Similarly, +$$ +P(X) = \sum_Y P(X, Y). +$$ + +These are called the marginal distributions of $X$ and $Y$.

I wonder if that could do with a gentle intro page by itself? Maybe we could use that Pew democrat/republican abortion data? Happy to work on that if you both think it could be useful?

— Reply to this email directly, view it on GitHub https://github.com/resampling-stats/resampling-with/pull/135#discussion_r1307579747, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZO3U53IPL5M6BUVFVQCZVDXXS2Q3ANCNFSM6AAAAAA35MBYUA . You are receiving this because you authored the thread.Message ID: @.***>