7BAYES’ THEOREM WITH LEGO

Image

In the previous chapter, we covered conditional probability and arrived at a very important idea in probability, Bayes’ theorem, which states:

Image

Notice that here we’ve made a very small change from Chapter 6, writing P(B | A)P(A) instead of P(A)P(B | A); the meaning is identical, but sometimes changing the terms around can help clarify different approaches to problems.

With Bayes’ theorem, we can reverse conditional probabilities—so when we know the probability P(B | A), we can work out P(A | B). Bayes’ theorem is foundational ...

Get Bayesian Statistics the Fun Way now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.