From f543bea1ac7a11f4feed7d42c33ea2d4b247d57f Mon Sep 17 00:00:00 2001 From: Anders Sundelin Date: Fri, 12 Nov 2021 18:01:35 +0100 Subject: [PATCH 01/19] Add errata for p.41 --- ERRATA.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ERRATA.md b/ERRATA.md index 296ead5..dc34007 100644 --- a/ERRATA.md +++ b/ERRATA.md @@ -2,7 +2,7 @@ ## 2nd Edition -[to be filled] +page 41: Should be Figure 2.6 ## 1st Edition From f149c4b59c48dd149d3230f13e85901a3b78a410 Mon Sep 17 00:00:00 2001 From: Anders Sundelin Date: Sun, 19 Dec 2021 16:25:42 +0100 Subject: [PATCH 02/19] Add errata for page 108 --- ERRATA.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ERRATA.md b/ERRATA.md index dc34007..16fea00 100644 --- a/ERRATA.md +++ b/ERRATA.md @@ -4,6 +4,8 @@ page 41: Should be Figure 2.6 +page 108 (R code 4.61): mu.HPDI is not defined a this point - I presume you mean mu.PI (defined in R code 4.56 on page 105)? + ## 1st Edition page 13: "What does mean to take a limit..." is missing the word "it". From 905f17fdcebe252a3541ff39d415d44c8097a55c Mon Sep 17 00:00:00 2001 From: Anders Sundelin Date: Mon, 27 Dec 2021 10:17:55 +0100 Subject: [PATCH 03/19] Add note on units for 4M6 to ERRATA --- ERRATA.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ERRATA.md b/ERRATA.md index 16fea00..813a841 100644 --- a/ERRATA.md +++ b/ERRATA.md @@ -6,6 +6,8 @@ page 41: Should be Figure 2.6 page 108 (R code 4.61): mu.HPDI is not defined a this point - I presume you mean mu.PI (defined in R code 4.56 on page 105)? +page 121 (Problem 4M6): Misleading to state that the variance is 64 cm. If any units are used, it should be $cm^2$ + ## 1st Edition page 13: "What does mean to take a limit..." is missing the word "it". From 7e486e2ca9949de0f213382dfb40d055da8e629e Mon Sep 17 00:00:00 2001 From: Anders Sundelin Date: Mon, 27 Dec 2021 15:25:23 +0100 Subject: [PATCH 04/19] Added note for p.127 --- ERRATA.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ERRATA.md b/ERRATA.md index 813a841..acb6928 100644 --- a/ERRATA.md +++ b/ERRATA.md @@ -8,6 +8,8 @@ page 108 (R code 4.61): mu.HPDI is not defined a this point - I presume you mean page 121 (Problem 4M6): Misleading to state that the variance is 64 cm. If any units are used, it should be $cm^2$ +page 127 (Fig 5.3 text): implausibly + ## 1st Edition page 13: "What does mean to take a limit..." is missing the word "it". From bb00d4be28d0decdc450af19a6fc09f5e2803b51 Mon Sep 17 00:00:00 2001 From: Anders Sundelin Date: Mon, 27 Dec 2021 16:10:55 +0100 Subject: [PATCH 05/19] Add errata for p.130 and 132 --- ERRATA.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ERRATA.md b/ERRATA.md index acb6928..c42207a 100644 --- a/ERRATA.md +++ b/ERRATA.md @@ -10,6 +10,10 @@ page 121 (Problem 4M6): Misleading to state that the variance is 64 cm. If any u page 127 (Fig 5.3 text): implausibly +page 130: Last paragraph: "And D and M are associated with another, because A influences them both" + +page 132: Fourth paragraph (after the formula): "but here I've chosen M for marriage rate" + ## 1st Edition page 13: "What does mean to take a limit..." is missing the word "it". From 528c8a7ef569e08c495b49b57d38cf859557e2dc Mon Sep 17 00:00:00 2001 From: Anders Sundelin Date: Wed, 29 Dec 2021 10:23:53 +0100 Subject: [PATCH 06/19] Add typo on p.148 to errata --- ERRATA.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ERRATA.md b/ERRATA.md index c42207a..881075f 100644 --- a/ERRATA.md +++ b/ERRATA.md @@ -14,6 +14,8 @@ page 130: Last paragraph: "And D and M are associated with another, because A in page 132: Fourth paragraph (after the formula): "but here I've chosen M for marriage rate" +page 148: First paragraph: "But if have..." -> "But I have" + ## 1st Edition page 13: "What does mean to take a limit..." is missing the word "it". From 560740262eadcab26a842dc9ec5b5ad09fe18bce Mon Sep 17 00:00:00 2001 From: Anders Sundelin Date: Wed, 29 Dec 2021 11:01:01 +0100 Subject: [PATCH 07/19] Add errata on p.151-152 --- ERRATA.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ERRATA.md b/ERRATA.md index 881075f..eaef96c 100644 --- a/ERRATA.md +++ b/ERRATA.md @@ -16,6 +16,8 @@ page 132: Fourth paragraph (after the formula): "but here I've chosen M for marr page 148: First paragraph: "But if have..." -> "But I have" +page 151-152: R code 5.41 actually produces the lower-right plot in Figure 5.9 + ## 1st Edition page 13: "What does mean to take a limit..." is missing the word "it". From a38ac60ddd05cf0f93cf7d3cbb429559f4a78c92 Mon Sep 17 00:00:00 2001 From: Anders Sundelin Date: Sat, 12 Feb 2022 19:54:01 +0100 Subject: [PATCH 08/19] Add errata note on function name p.213 --- ERRATA.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ERRATA.md b/ERRATA.md index eaef96c..d556596 100644 --- a/ERRATA.md +++ b/ERRATA.md @@ -18,6 +18,8 @@ page 148: First paragraph: "But if have..." -> "But I have" page 151-152: R code 5.41 actually produces the lower-right plot in Figure 5.9 +page 213: Overthinking box: function name is sim_train_test now in 2nd ed. + ## 1st Edition page 13: "What does mean to take a limit..." is missing the word "it". From 650b05284e51c99e9f3c0326d45544ac499c4795 Mon Sep 17 00:00:00 2001 From: Anders Sundelin Date: Sun, 20 Feb 2022 21:13:20 +0100 Subject: [PATCH 09/19] Add more errata notes on R code sections --- ERRATA.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ERRATA.md b/ERRATA.md index d556596..84606fc 100644 --- a/ERRATA.md +++ b/ERRATA.md @@ -20,6 +20,10 @@ page 151-152: R code 5.41 actually produces the lower-right plot in Figure 5.9 page 213: Overthinking box: function name is sim_train_test now in 2nd ed. +page 228: R code 7.28: Should be 40.9, to tie the number more tightly to the paragraph above + +page 248: R code 8.14: Should be precis(m8.3, depth=2 ) + ## 1st Edition page 13: "What does mean to take a limit..." is missing the word "it". From f765d482b240067f1dcb3e2813ed765175764ce2 Mon Sep 17 00:00:00 2001 From: Anders Sundelin Date: Sat, 26 Mar 2022 10:06:30 +0100 Subject: [PATCH 10/19] Add note on p 273 equation --- ERRATA.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ERRATA.md b/ERRATA.md index 84606fc..dcb7026 100644 --- a/ERRATA.md +++ b/ERRATA.md @@ -24,6 +24,8 @@ page 228: R code 7.28: Should be 40.9, to tie the number more tightly to the par page 248: R code 8.14: Should be precis(m8.3, depth=2 ) +page 273: Last equation, should end with "log p(\mu_x | 0, 0.5)" (substitute vertical bar for the comma) + ## 1st Edition page 13: "What does mean to take a limit..." is missing the word "it". From 545d985e36706cc1f30a6dedd76372461d01aedf Mon Sep 17 00:00:00 2001 From: Anders Sundelin Date: Sat, 26 Mar 2022 13:40:42 +0100 Subject: [PATCH 11/19] Add note on missing dH in R code 9.10 --- ERRATA.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ERRATA.md b/ERRATA.md index dcb7026..7444e16 100644 --- a/ERRATA.md +++ b/ERRATA.md @@ -26,6 +26,9 @@ page 248: R code 8.14: Should be precis(m8.3, depth=2 ) page 273: Last equation, should end with "log p(\mu_x | 0, 0.5)" (substitute vertical bar for the comma) +page 278: R code 9.10: Beware that the real HMC2 function also defines dH in the returned list. This is used in the plot (R code 9.7). It is the difference in total energy (proposed_U + proposed_K) - (current_U + current_K). + + ## 1st Edition page 13: "What does mean to take a limit..." is missing the word "it". From ea8e4c44f1f69c3a3c84fdb0ae4685244682030a Mon Sep 17 00:00:00 2001 From: Anders Sundelin Date: Tue, 5 Apr 2022 17:56:37 +0200 Subject: [PATCH 12/19] Add note on p.338 --- ERRATA.md | 1 + 1 file changed, 1 insertion(+) diff --git a/ERRATA.md b/ERRATA.md index 7444e16..acfa468 100644 --- a/ERRATA.md +++ b/ERRATA.md @@ -28,6 +28,7 @@ page 273: Last equation, should end with "log p(\mu_x | 0, 0.5)" (substitute ver page 278: R code 9.10: Beware that the real HMC2 function also defines dH in the returned list. This is used in the plot (R code 9.7). It is the difference in total energy (proposed_U + proposed_K) - (current_U + current_K). +page 338: "results for the first two chimpanzees" should really be (IMHO): "partial results for the first two treatments (the total data frame has 7x4=28 rows, one each per actor and treatment combination." ## 1st Edition From 7d26951012f84bdf0ad93ed0b42c7468e7501d2c Mon Sep 17 00:00:00 2001 From: Anders Sundelin Date: Tue, 5 Apr 2022 21:50:42 +0200 Subject: [PATCH 13/19] Use coerce_index function on p.343 --- ERRATA.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ERRATA.md b/ERRATA.md index acfa468..62cf1c4 100644 --- a/ERRATA.md +++ b/ERRATA.md @@ -30,6 +30,8 @@ page 278: R code 9.10: Beware that the real HMC2 function also defines dH in the page 338: "results for the first two chimpanzees" should really be (IMHO): "partial results for the first two treatments (the total data frame has 7x4=28 rows, one each per actor and treatment combination." +page 343 (R code 11.32): dat_list$dept_id <- coerce_index(d$dept) # use coerce_index and the original data to construct new index variable + ## 1st Edition page 13: "What does mean to take a limit..." is missing the word "it". From e43fab161f709df6cf0312395fc2636850cb6b57 Mon Sep 17 00:00:00 2001 From: Anders Sundelin Date: Tue, 19 Apr 2022 14:50:01 +0200 Subject: [PATCH 14/19] Add typo correction p. 331 --- ERRATA.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ERRATA.md b/ERRATA.md index 62cf1c4..088e55b 100644 --- a/ERRATA.md +++ b/ERRATA.md @@ -28,6 +28,8 @@ page 273: Last equation, should end with "log p(\mu_x | 0, 0.5)" (substitute ver page 278: R code 9.10: Beware that the real HMC2 function also defines dH in the returned list. This is used in the plot (R code 9.7). It is the difference in total energy (proposed_U + proposed_K) - (current_U + current_K). +page 331: last paragraph: should be CONTRASTS. + page 338: "results for the first two chimpanzees" should really be (IMHO): "partial results for the first two treatments (the total data frame has 7x4=28 rows, one each per actor and treatment combination." page 343 (R code 11.32): dat_list$dept_id <- coerce_index(d$dept) # use coerce_index and the original data to construct new index variable From 1ba0ca9b137a878e56bd610e9f5daa4381d6242a Mon Sep 17 00:00:00 2001 From: Anders Sundelin Date: Tue, 19 Apr 2022 16:54:03 +0200 Subject: [PATCH 15/19] Report typo in formula on p. 339 --- ERRATA.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ERRATA.md b/ERRATA.md index 088e55b..ea240a2 100644 --- a/ERRATA.md +++ b/ERRATA.md @@ -32,6 +32,8 @@ page 331: last paragraph: should be CONTRASTS. page 338: "results for the first two chimpanzees" should really be (IMHO): "partial results for the first two treatments (the total data frame has 7x4=28 rows, one each per actor and treatment combination." +page 339: First equation: typo in the numerator - should be 9! (in accordance with the binomial coefficient formula) + page 343 (R code 11.32): dat_list$dept_id <- coerce_index(d$dept) # use coerce_index and the original data to construct new index variable ## 1st Edition From 039280a1fdc5e28e3c6f50dc0ea173b489d995a7 Mon Sep 17 00:00:00 2001 From: Anders Sundelin Date: Sun, 24 Apr 2022 14:09:40 +0200 Subject: [PATCH 16/19] Add errata note on p.378 --- ERRATA.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ERRATA.md b/ERRATA.md index ea240a2..4c89e52 100644 --- a/ERRATA.md +++ b/ERRATA.md @@ -36,6 +36,8 @@ page 339: First equation: typo in the numerator - should be 9! (in accordance wi page 343 (R code 11.32): dat_list$dept_id <- coerce_index(d$dept) # use coerce_index and the original data to construct new index variable +page 378: First line, should be "probability that the monks did drink" + ## 1st Edition page 13: "What does mean to take a limit..." is missing the word "it". From 34ee2222b2757784e618b2352b23b07458feef7f Mon Sep 17 00:00:00 2001 From: Anders Sundelin Date: Sat, 7 May 2022 20:54:49 +0200 Subject: [PATCH 17/19] Add errata on p.410 --- ERRATA.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ERRATA.md b/ERRATA.md index 4c89e52..96bfbba 100644 --- a/ERRATA.md +++ b/ERRATA.md @@ -38,6 +38,8 @@ page 343 (R code 11.32): dat_list$dept_id <- coerce_index(d$dept) # use coerce page 378: First line, should be "probability that the monks did drink" +page 410: Mismatch between R.code 13.7 where a_bar is 1.5 and the second paragraph, where it is assumed to be 1.4 + ## 1st Edition page 13: "What does mean to take a limit..." is missing the word "it". From bc3570ca3b6b7578d2ad3d8120c4d59756318f48 Mon Sep 17 00:00:00 2001 From: Anders Sundelin Date: Thu, 26 May 2022 10:00:46 +0200 Subject: [PATCH 18/19] Add typos in Ch.14 in ERRATA.md --- ERRATA.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/ERRATA.md b/ERRATA.md index 96bfbba..869f2ad 100644 --- a/ERRATA.md +++ b/ERRATA.md @@ -40,6 +40,18 @@ page 378: First line, should be "probability that the monks did drink" page 410: Mismatch between R.code 13.7 where a_bar is 1.5 and the second paragraph, where it is assumed to be 1.4 +page 453: (Overthinking): Typo in paragraph 4: Should be compose_noncentered. + +page 463: Typo in para 5, should be: "when one household gives more, the other gives less" + +page 469: Typo in para 3, should be: "famililar Poisson probability" + +page 472: Type in para 1, should be: "those k parameters" + +page 475: Typo in Rcode 14.45, should be: exp( post$a + post$b*lp ) + +page 477: Typo, first line in ch.14.5.2, should be "more or less distant" + ## 1st Edition page 13: "What does mean to take a limit..." is missing the word "it". From ee4421397b11a22473d71408d491cda751b382ef Mon Sep 17 00:00:00 2001 From: Anders Sundelin Date: Mon, 11 Jul 2022 16:15:39 +0200 Subject: [PATCH 19/19] Add errata for chapter 14 --- ERRATA.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ERRATA.md b/ERRATA.md index 869f2ad..00cc5a4 100644 --- a/ERRATA.md +++ b/ERRATA.md @@ -52,6 +52,8 @@ page 475: Typo in Rcode 14.45, should be: exp( post$a + post$b*lp ) page 477: Typo, first line in ch.14.5.2, should be "more or less distant" +page 508: Typos, m15.3 should be m15.5 (Rcode 15.17 is correct), m15.4 should be m15.6. Also applies to the figure. + ## 1st Edition page 13: "What does mean to take a limit..." is missing the word "it".