Commit f01e5ff
committed
Second full-book sweep: fix errors in math, code, prose, and alt text
A deeper read-through of every chapter, the appendices, and the
glossary, following up on the sweep merged in #579. Beyond typos, this
pass caught several errors in displayed numbers and worked examples:
Numeric/math errors:
- Ch7: the standard deviation worked example computed the mean of
{3, -1, 5, 9} as 2 instead of 4, making the whole example wrong
(SD is sqrt(13) = 3.61, not sqrt(17) = 4.12); the population sigma
formula was missing its square root (also in ch8); a Bernoulli
trial list had 26 values instead of 25; the SE-vs-sample-size
summary claimed SE is inversely proportional to the "squared sample
size" rather than the square root.
- Ch8: the displayed t-based 95% CI (3.498, 3.846) was computed from
the wrong data frame (the 25-almond sample instead of
almonds_sample_100), contradicting the correct R output (3.610,
3.754) right below it; "when sigma is unknown" appeared twice where
the first should read "known".
- Ch10: the displayed 95% CI for beta_0 was computed from b1 instead
of b0, printing (-14.112, 14.854) instead of roughly (65, 94); the
model-comparison H0 displayed the wrong reduced model (dropped X3
instead of X2 as the text states).
- Ch2: "10 divided by 8, or 1.125" -> 1.25; a plot title said "mpg"
for wind speed; the April boxplot passage claimed the whiskers
reach the max (23.1 whisker limit vs 29.92 max - there are
outliers).
- Ch6: three display equations used the credit-limit slope 0.263
where the rendered coefficient is 0.264.
Stale-edition leftovers and code/prose mismatches:
- Ch1: the flights bullet piped an already-computed count through
nrow() again, rendering "Information on all flights." with no
number; "lat and long" -> "lat and lon".
- Ch2: "Envoy Airlines" -> "Envoy Air"; fruits_counted's variable is
number, not count; stale carrier facts in alt text (EV is not in
nycflights23; YX has the tallest bar); the ch2 recap code plotted
temp where the chapter plotted wind_speed.
- Ch3: two leftover "temperature"/temp references in the wind-speed
example; a garbled group_by transition sentence (with the stale
summary_temp name); VX (defunct, not in the data) -> G4; LC3.5 and
its solution still discussed monthly temperatures - both now use
the chapter's wind-speed analysis; Q3-5 used the reversed gain
formula.
- Ch5: "five levels ... Americas" leftovers in the six-continent
section; "21st through 24th courses" (from the old evals data) ->
countries; captions saying "out of 193"/"out of 142" where the
filtered data has 181/188 rows.
- Ch7: two wrong cross-references (@sec-sampling-simulation vs
@sec-sampling-manual); mislabeled SE_Xbar_50/100 for the n=25/50
simulations; X-bar minus Y-bar notation where X1-bar minus X2-bar
is defined; CLT statements about X_1, X_2 that should be about the
sample means.
- Ch9: leftover promotions-era wording ("value of 50" -> "above 50",
not_popular -> "not popular", "songs with metal names"); the
Welch-conditions check said the sample sizes were "not skewed".
- Ch10: country_of_origin -> continent_of_origin;
moisture_precentage/moisture_content -> moisture_percentage; H_1 ->
H_A; "sample of `r n` courses" -> eruptions; b_1 = sum(c_i y_i)
stated for b_3; D_{04} dummy subscripts for observation five; two
chunks piped coffee_quality where the narrative builds coffee_data;
a residual-plot axis labeled "duration" while plotting fitted
values.
- Preface: "Both of us" (two-author leftover, twice) -> "All of us";
index.Rmd -> index.qmd; a doubled colon and misindented bullets in
the version history.
- Appendix A: quartiles called "quantiles" in the five-number
summary; "0.05/2 - 0.025" -> "= 0.025".
- Appendix C: mean_profit naming for a median revenue; "lessor" ->
"lesser".
Also: alt-text corrections where descriptions contradicted the plotted
data (axes swapped in chs 5/6, Halloween dip vs the 9/9/99 spike in
ch11, bell-shaped claim for the deliberately non-normal almonds bowl),
removal of duplicated "Difficulty stars" lines in chs 2-4, and
assorted grammar fixes throughout.
cspell issue count is unchanged from baseline; Learning Check
question/solution counts are unchanged.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EBuUHZXFqZKh7hEJxw5KvT1 parent c657c90 commit f01e5ff
16 files changed
Lines changed: 137 additions & 140 deletions
File tree
- lc-answers
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
| 81 | + | |
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| |||
208 | 208 | | |
209 | 209 | | |
210 | 210 | | |
211 | | - | |
| 211 | + | |
212 | 212 | | |
213 | 213 | | |
214 | 214 | | |
| |||
232 | 232 | | |
233 | 233 | | |
234 | 234 | | |
235 | | - | |
| 235 | + | |
236 | 236 | | |
237 | 237 | | |
238 | 238 | | |
239 | 239 | | |
240 | | - | |
241 | | - | |
| 240 | + | |
| 241 | + | |
242 | 242 | | |
243 | 243 | | |
244 | 244 | | |
| |||
253 | 253 | | |
254 | 254 | | |
255 | 255 | | |
256 | | - | |
| 256 | + | |
257 | 257 | | |
258 | 258 | | |
259 | 259 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
323 | 323 | | |
324 | 324 | | |
325 | 325 | | |
326 | | - | |
| 326 | + | |
327 | 327 | | |
328 | 328 | | |
329 | 329 | | |
| |||
445 | 445 | | |
446 | 446 | | |
447 | 447 | | |
448 | | - | |
| 448 | + | |
449 | 449 | | |
450 | 450 | | |
451 | 451 | | |
| |||
468 | 468 | | |
469 | 469 | | |
470 | 470 | | |
471 | | - | |
| 471 | + | |
472 | 472 | | |
473 | 473 | | |
474 | 474 | | |
| |||
0 commit comments