Skip to main content

Public Interest Data Science

Pressures, Values, Lineages, and Genres

A textbook on doing data science for public-interest ends: diagnosing the structural pressures on public knowledge, articulating the values that push back, learning from the public-interest professions, and contributing to public conversations through the genres that make analysis accountable.

Author

Brian C. Keegan

Published

January 1, 2026

Preface

This is a book about doing data science for ends the public can name, contest, and use.

You already know, or will shortly, that most data science is not that. It produces things for an employer to ship, a platform to monetize, or a manager to track. When it produces things for the public, it tends to produce dashboards: objects that look like accountability without being accountable to anyone in particular. This book is written for the student who has noticed the gap between what data science can do and what it typically does, and who wants a way in that is neither naive about the tools nor resigned about the politics.

Who this book is for

If you are a student taking a data-science course, a journalism or policy student learning computational methods, a working practitioner considering a move into civic or public-interest work, an instructor looking for a course companion, or a public-sector analyst being asked to do “data-driven” work with no time to read the entire literature, this book is for you. It assumes introductory Python, comfort with the command line, and a willingness to read ten pages about a court case before writing the function that acts on it. It does not assume a background in science and technology studies, law, or accounting. It will give you enough of each to keep going.

You can read it straight through, pick chapters relevant to a specific project, or use it as a course text. The chapters are written to be read out of order. The companion course, INFO 4871/5871 Public Interest Data Science at the University of Colorado Boulder, assigns them that way: each of its modules pairs one lineage with one pressure, one value, and one genre drawn from different parts of the book.

What the book does

The book rests on a framework from Keegan (2026). Three structural pressures narrow the public’s capacity to observe and govern data-intensive systems: enclosure (who can observe?), exemption (who must answer?), and erosion (what can be remembered?). Three values push back: openness, oversight, and ownership. Values last only when they are built into an installed base with six elements: linkability, interpretability, continuity, safe scrutiny, authority, and remedy.

The book has five parts:

  1. Pressures and Values (1  Introduction to Public Interest Data Science to 5  Erosion and Ownership). The contested idea of “the public interest”; the installed base and its intellectual predecessors; and three paired chapters, each setting a pressure against the value that answers it.
  2. Lineages (6  Journalism to 10  Engineering). What data scientists can inherit from journalism, law, accounting, planning, and engineering, and where each inheritance fails.
  3. Adjacent Conversations (11  Public Interest Technology and Data for Good to 13  Critical Data Studies, Data Justice, and Refusal). Public interest technology, data for good, GovTech, civic tech, critical data studies, data justice, and refusal.
  4. Genres (14  Op-Eds to 19  Archival Deposits). The forms through which data scientists contribute to public conversations: op-eds, reports, research proposals, testimony, public comments, and archival deposits.
  5. Closing (20  The Limits of the Framework). The limits of the framework itself.

How the book is built

Every chapter interweaves conceptual narrative with runnable Python tutorials at roughly a 50/50 balance. You will read two or three pages of argument, then read and run two or three pages of code that makes the argument visible in a specific case, then return to the argument. This is deliberate. Concepts without technique produce earnest seminars. Technique without concepts produces dashboards that nobody trusts.

Code blocks do not run at build time. They are illustrative: you are expected to type them, adapt them, and run them yourself. The book’s repository contains test fixtures, sample data, and the occasional larger notebook that a chapter only excerpts. When a chapter uses a real API (Wikimedia pageviews, regulations.gov, the Internet Archive), the endpoints cited were live as of the book’s most recent release; if you find one that has moved, open an issue.

Every chapter has at least one “Missing Manual” callout flagging something that textbooks usually omit: a surprising library default, a real-world API friction, the politics of a “simple” choice. Every chapter has at least one “In the Public Interest” callout tying the technical material back to openness, oversight, or ownership. Every chapter ends with 4–5 graduated exercises, from guided (“follow these steps”) to open-ended (“design a pipeline that…”), and a curated list of further resources.

Chapters in Part IV have one additional rule: they must end with a real submittable artifact. Not a thought experiment. An actual op-ed, report section, proposal page, testimony statement, public comment on a live matter, or archival deposit with a DOI, each paired with a technical artifact someone else can run. A reader who finishes Part IV has a portfolio.

Running examples

To give the book coherence across 20 chapters, a small set of running examples is threaded throughout. Most come from Boulder, Denver, Colorado, and federal sources, grouped here by where the records come from. When a chapter needs a case, it reaches for one of these before inventing a new one:

  • Boulder and Denver: City of Boulder and City and County of Denver records (campaign finance, meeting minutes, agendas, budgets, permits, 311 requests).
  • Boulder County: Boulder County as planner and record keeper: land use matters, planning documents, and records already released under the Colorado Open Records Act (from the Public Records Archive of its Open Records Center).
  • Colorado: Colorado law as rule maker: the Colorado Open Records Act, the Colorado AI Act, and the General Assembly.
  • Federal and national sources: national data from the American Community Survey (via folktables), federal automated decision systems, federal environmental and scientific data (EPA, NOAA, USGS, Census) as at-risk datasets, and regulations.gov for federal rulemaking.
  • Census and FRED APIs for demographic and economic context.
  • Wikipedia and Internet Archive APIs for archival work and link-rot audits.
  • Hugging Face model cards and datasheets for audit and documentation exercises.
  • A small synthetic worker-log fixture that lets us teach audit methods without violating anyone’s privacy.
  • Public FOIA and CORA request data as a class-wide shared resource.

By the end of the book you will have built, in parts, a small public-interest data infrastructure of your own: a reproduced investigation and a documented city dataset; an erosion audit and a stewardship plan or refusal specification; a ledger of exemptions and remedies; a tested, disaggregated audit; and the public texts that carry them (an op-ed, a public comment, testimony, and a report), with a deposit on Zenodo that mints a DOI.

What the book does not do

Honesty up front. This book is partial in several ways that matter.

It is US-centric. Most of the legal and administrative infrastructure discussed is American: FOIA and CORA, the Administrative Procedure Act, NIST, NSF, NYC Local Law 144. Where European, Latin American, and Global South counterparts exist (the Dutch SyRI case, IndiaStack, Ushahidi, the CARE Principles, Te Mana Raraunga), the book names them and points you to further reading, but it does not pretend to do them justice in three pages.

It is comfortable with records and less comfortable with refusal. The installed-base framework takes linkability, durable identifiers, and retention as load-bearing. Chapter 13 takes that comfort seriously as a limit, drawing on Zong and Matias, D’Ignazio and Klein, the CARE Principles, and Indigenous data sovereignty scholarship. Readers who want to start from refusal and arrive at records (rather than the other way around) should read Chapter 13 early and often.

It is thin on the labor inside data work. Gray and Suri’s Ghost Work is cited, and Chapter 11 tries to name invisible maintenance labor explicitly, but a book that seriously treated data-labor economics would look quite different. Consider this an invitation to the reader, or to the next edition.

It is thin on measurement theory. You will not find a full psychometric critique of the audit metrics in Chapter 8, and you will not find a deep philosophy-of-science treatment of what it means for a model to “work.” Those books exist and are cited.

It over-relies on the professional-lineage framing. Treating journalism, law, accounting, planning, and engineering as lineages the field can inherit from is a useful move, but every profession has its own pathologies, and the book does not do equal-time analysis of all of them. Read the criticisms. They are in the further-reading lists.

These limits are not bugs to be patched. They are framing choices that enable the book to cohere. Knowing where they bind is part of what you are learning, and 20  The Limits of the Framework turns the framework on itself to find out.

How to contribute

This book lives in a git repository. Fork it, improve it, and open a pull request. Before you do, read claude.md, which codifies the voice, structure, and citation conventions. Typo fixes and small corrections can come in as pull requests directly. Rewrites of sections, new examples, or proposed new chapters should start as an issue so we can talk about them first.

Students in the companion course make one chapter-scale contribution each term: a new or rewritten section with narrative, a runnable tutorial, verified references, and curated resources. Students whose contributions shape the book are named in the acknowledgments. Some of the best chapters in future editions will be written by readers who encountered this one and saw what was missing.

A note on the AI-assisted drafts

The first complete draft of this book was produced with substantial assistance from Claude, Anthropic’s assistant, following a detailed editorial prompt written by the author. The 2027 revisions, including the paired pressure-and-value chapters and the new chapter on the limits of the framework, were also drafted with Claude’s assistance from the author’s course design and is under author review. The disclosure statement is in Appendix A. A book about public-interest data science should not hide how it was made, any more than a model card should hide its training data.

Acknowledgments

The framework owes its shape to years of conversation with colleagues in the INFO department at CU Boulder, students in previous versions of the course who asked the questions this book tries to answer, and the infrastructure studies and STS communities whose citations fill the bibliography. Specific individuals will be named once the revision cycle is complete. Any errors are the author’s, and there will be errors. File an issue.

Now to Chapter 1.

Keegan, Brian C. 2026. “Public Interest Data Infrastructuring.” Under Review.