Conventions

This page sets out the visual conventions used throughout the book. We describe them here rather than leaving the reader to infer them chapter by chapter.

Code

R code appears in syntax-highlighted blocks. Output is prefixed with #>. This convention makes the boundary between input and output explicit:

mean(c(1, 2, 3, 4, 5))
#> [1] 3

Inline code appears in monospace. Function calls always include parentheses (mean() rather than mean), so that they read unambiguously as functions rather than objects. Package-qualified calls (dplyr::filter) appear when the function is not universally known, when there is a risk of name collision, or when the chapter is teaching package usage directly.

Callouts

Three callout types appear in the text.

TipTip

A small practical recommendation.

A short question testing comprehension of the just-read material. Click to expand the answer.

WarningWarning

A pitfall the reader may otherwise hit.

Cross-references

Within this book, we reference sections, figures, and tables by their Quarto label (@sec-monte-carlo-human, @fig-mcmc-trace, @tbl-comparison). These resolve to clickable links in HTML and to proper figure and table numbers in PDF.

References to the companion volumes Statistical Computing in the Age of AI and Biostatistics Practicum use prose pointers rather than Quarto cross-references. Cross-references do not resolve across separate books, so a pointer of this form is necessary: ‘see the Optimization chapter of the companion Statistical Computing in the Age of AI volume’.

Mathematical notation

We use conventional notation throughout. Vectors are bold lower-case (\(\mathbf{x}\)); matrices are bold upper-case (\(\mathbf{X}\)); scalars and parameters are non-bold. Estimators carry hats (\(\hat\theta\)). Sample size is \(n\) and parameter dimension is \(p\).

Chapter structure

Every content chapter follows the same template. We repeat it deliberately, so that by the third chapter the reader already knows where to find each component.

  1. Learning objectives. What you will be able to do after reading.
  2. Orientation. A short prose framing.
  3. The statistician’s contribution. What no tool can automate. The judgments at the center of the chapter.
  4. Content sections with Check-your-understanding callouts at natural pauses.
  5. Collaborating with an LLM on the chapter topic. Prompt / Watch for / Verification triples for AI assistance.
  6. Exercises. The work.
  7. Further reading. Where to go next on the topic.