DS from S: Chapter 6
Probability
I feel like the distinction of this chapter from the previous one (“Statistics”) is pretty arbitrary.
Didn’t get a ton out of the last chapter, and I’m not expecting to get a ton out of this one, but hoping to be surprised. I’m expecting to encounter more unusual notation conventions this time.
I’m guessing there will be something on Bayes’ Theorem here, which I’m familiar with, but which I hadn’t learned by the time I got my Ph.D.
What I liked
Lol I was right, Bayes’ Theorem is here!
Good example of using Bayes for correlation between kids’ genders
Oh, an example of a ternary if-then-else clause!
I just liked this because I only just learned about them from this book
What I disliked
Like the last couple of chapters, the author implements stuff that should get pulled from a library.
What I learned
N/A
Other notes
I think I got a slightly different (but still reasonable) result than the author did for the two-kid example. I wonder what the source of the difference is.
Looks like greek letters are displaying weird on my reader (Kindle Classic) when printed in-line in a sentence.
My colors were slightly different than the author’s when printing them.
Augthor suggests you call
make_hist(0.75, 100, 10000)to get figure 6-4 but it’s actually the functionbinomial_histogram()that he defined.Not sure why the author used inverse CDF function. I’ve never used that before (but it makes sense what it does).

