Part V: One Analysis, Many Publications

Keywords

Quarto, reproducible publishing, coding agents, Markdown, Python, EPUB, data analysis, k-means clustering

Where Colombia’s tap water is tested, the countryside’s is far riskier than the towns’. In 2023, of the rural zones (a municipality’s countryside, outside its head town) with a utility-supplied water-risk score, 28% fell in the high-risk or unfit bands, against 6% of urban ones. And much rural water has no score at all: that year, 6.8 million of the 12.6 million people in rural zones lived where the open data hold none.

This part asks which kinds of municipal zone exist, judged by water safety, services and context, and how infant mortality, exam scores and school dropout differ between those kinds. Each row of its data is a zone-year: one municipality’s urban zone (the head town) or rural zone in one year. The analysis groups those rows, so a municipality’s two zones can be different kinds. You are the analyst. Your readers are officials, who need a report, and a municipal council, which needs slides, and both deserve an answer that says plainly what the data cannot show:

The exercises at the end of the part test whether you can do it without the prompts.

Where we are: Part V: One Analysis, Many Publications, highlighted among the book's five parts. Its chapters in order: 17, The Question, the Data and the Rules, build: the project folder, its data and rules; 18, Look Before You Model, build: explore.qmd, a first look at the data, ends at checkpoint 05; 19, From Table to Features, build: prepare(), nine comparable features, ends at checkpoint 06; 20, Finding Kinds of Places: k-Means, build: k-means and the clusters page, ends at checkpoint 07; 21, Interpreting Clusters, build: named clusters and their outcomes, ends at checkpoint 08; 22, Correlation Is Not Causation, build: the within-cluster check, ends at checkpoint 09; 23, Publish Many, build: report, slides, website and blog, ends at checkpoints 10–13; Exercises for the Water Analysis, practise: exercises, then your own prompts.

Where we are: Part V.