data_science_in_julia_for_hackers
data_science_in_julia_for_hackers copied to clipboard
Chapter 3 Error
Hey,
really enjoy reading through the Book.
I believe I found a calculation error and am now pretty confused...
Its near the end of section 3.3.
The problem arises in the last line:
I get
P(A) = 3/6
, P(B) = 3/6
and even P(A ∩ B) = 2/6
but when I substitute into P(A ∪ B)
I think it should say 3/6 + 3/6 - 2/6
giving 4/6
instead of 3/6 + 3/6 - 1/6 = 5/6
.
Calculating success cases / total cases
I also get 4/6
which is intuitively the correct answer. (i.e., (R,W), (G,W), (B,W), (G,B)
.
The confusion probably arose due to the redefinition/overloading of the varaible B
which I only noticed later because A
stayed the same...
Thanks for the great work!
Cheers!
Found another typo in 3.4:
This time
A
and B
got swapped.
Also what are your opinions of \Rightarrow
instead of =>
?
Cheers!
@lil-n00b We are checking this. Sorry for the delay. We have too many things going on. Thanks for reporting it!