data_science_in_julia_for_hackers icon indicating copy to clipboard operation
data_science_in_julia_for_hackers copied to clipboard

Chapter 3 Error

Open lil-n00b opened this issue 2 years ago • 2 comments

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. Screenshot from 2021-12-10 15-39-51 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!

lil-n00b avatar Dec 10 '21 15:12 lil-n00b

Found another typo in 3.4: Screenshot from 2021-12-10 16-27-16 This time A and B got swapped.

Also what are your opinions of \Rightarrow instead of =>? Cheers!

lil-n00b avatar Dec 10 '21 15:12 lil-n00b

@lil-n00b We are checking this. Sorry for the delay. We have too many things going on. Thanks for reporting it!

unbalancedparentheses avatar Dec 16 '21 19:12 unbalancedparentheses