Start free trial
Trending New Genres Authors
EnglishEnglish
EspañolSpanish
简体中文Chinese
繁體中文Chinese (Traditional)
FrançaisFrench
DeutschGerman
日本語Japanese
PortuguêsPortuguese
ItalianoItalian
한국어Korean
РусскийRussian
NederlandsDutch
العربيةArabic
PolskiPolish
हिन्दीHindi
Tiếng ViệtVietnamese
SvenskaSwedish
ΕλληνικάGreek
TürkçeTurkish
ไทยThai
ČeštinaCzech
RomânăRomanian
MagyarHungarian
УкраїнськаUkrainian
IndonesiaIndonesian
DanskDanish
SuomiFinnish
БългарскиBulgarian
עבריתHebrew
NorskNorwegian
HrvatskiCroatian
CatalàCatalan
SlovenčinaSlovak
LietuviųLithuanian
SlovenščinaSlovenian
СрпскиSerbian
EestiEstonian
LatviešuLatvian
فارسیPersian
മലയാളംMalayalam
தமிழ்Tamil
اردوUrdu
Searching...
SoBrief
The Art of Data Science

The Art of Data Science

A Guide for Anyone Who Works with Data
A model can predict well and still miss why: learn what its answer actually means.
by Roger D. Peng 2015 154 pages
3.7
301 ratings
Listen
Immersive
V2.3
Amazon Kindle Audible
Try Full Access for 3 Days
Unlock listening & more!
Continue

Key Takeaways

Treat data analysis as a craft of repeated expectation, checking, and revision.

Analysis moves in loops. The book rejects the tidy story in which an analyst runs a method, gets an answer, and stops. Instead, each part of the work begins with an expectation, gathers evidence, and compares the two. A mismatch may mean the data are faulty, the expectation was wrong, or the question needs revision. This recurring cycle is the book's central method, called the epicycle of data analysis.

The question can change. A company initially asks how common asthma is, but that figure already exists. After discussion with the boss, the useful question becomes how many people have asthma that current treatment does not control. Later, reporting results prompts a new question about future market size. Feedback is part of analysis because it can reveal what the first answer left out.

Analysis

What's powerful here is the book's insistence that analytic work resembles debugging more than assembly-line production. A programmer tests an expectation against system behavior, isolates whether the code or the assumption is wrong, and iterates. Data work benefits from the same disciplined uncertainty. The framework also makes a useful distinction between correcting a data error and changing a belief to fit inconvenient results. That distinction can be hard to maintain under deadline or managerial pressure, so recording expectations before inspecting results can help preserve an honest audit trail.

Classify the question before deciding what a model should optimize.

Different questions permit different answers. The book distinguishes six aims: describing a dataset, exploring patterns, inferring population properties, predicting outcomes, estimating causal effects, and explaining mechanisms. A pattern found while exploring can suggest a hypothesis, but it does not establish that the pattern generalizes. A prediction can be accurate without explaining why it works, and an association alone does not prove cause.

The diet example shows the ladder. An analyst might first find that people eating more fruits and vegetables report fewer viral illnesses. That is exploratory evidence. Testing whether the relationship appears in a representative adult sample is inferential. Asking whether changing diet reduces illness is causal, while asking how diet changes the body's response is mechanistic. The available data constrain which question can responsibly be answered.

Analysis

This distinction anticipates a recurring problem in applied machine learning: optimizing a score can quietly replace the actual decision question. A model that predicts who will use a service may be useful for targeting, yet it does not identify what would make a person use it. Causal inference asks about outcomes under different interventions, which requires assumptions or designs beyond predictive fit. The taxonomy helps teams negotiate what counts as success before analysis begins. Its categories can overlap in practice, but making the primary aim explicit prevents a technically polished answer from solving the wrong problem.

Sharpen the question until each possible answer means something specific.

A good question earns its precision. It should matter to its audience, not already be answered, rest on a plausible account of the subject, be answerable with available data, and be specific enough that an answer has a clear interpretation. The analyst should imagine the possible results before beginning. If the same result could support several conflicting explanations, the measures may not represent the idea the question is really about.

The sleep-app case makes this concrete. A manager wants to target ads for a sleep tracker, so an analyst first asks which users get too little sleep. A sleep specialist points out that sleep duration may not capture the problem customers care about. The question shifts to daytime drowsiness, then becomes more precise by defining chronic drowsiness as an episode at least every other day. That definition makes both analysis and action clearer.

Analysis

This is a practical application of measurement theory: abstract ideas such as poor sleep must be translated into observable indicators, and the chosen indicator shapes the conclusion. The expert consultation prevents a convenient variable from becoming a misleading proxy. The same logic matters in product analytics, where engagement metrics can stand in for satisfaction or value without actually measuring either. Precision does not mean adding arbitrary thresholds until a question looks technical. Definitions should be justified by domain knowledge and connected to the decision the result is meant to inform.

Inspect the dataset before trusting its first attractive pattern.

Start with the data's physical facts. Exploratory data analysis checks whether a dataset has the expected shape, contents, units, and coverage, then uses summaries and plots to sketch an answer. In the book's EPA example, the 2014 ozone file contains 7,147,884 hourly records and 23 columns. Simple checks reveal 52 location names, which initially seems wrong for a country with 50 states. The extra entries are Washington, D.C., and Puerto Rico, so the discrepancy is explained rather than silently discarded.

Plots help find what tables hide. The analysis compares eastern and western monitors using a longitude cutoff. Mean ozone is about 0.030 ppm in the east and 0.034 in the west; medians are 0.030 and 0.035. Removing states with unusually high readings leaves the pattern intact. External standards, counts, and unusual records all provide checks on whether this simple result deserves attention.

Analysis

The example makes data quality concrete without pretending that cleaning has a universal recipe. Counts, ranges, and visualizations function like independent witnesses: agreement among them raises confidence that the file is being understood correctly. This is also a defense against the seduction of large datasets. Millions of rows can create an aura of authority while still containing a coding error, an odd sampling pattern, or an irrelevant measure. The easy first comparison is useful as a diagnostic, not as a final scientific claim; one year and a chosen geographic boundary limit what it can establish.

Use models to reveal mismatches between expectations and reality.

A model is a compact expectation. It reduces many observations to a simpler description while proposing how the data could have been generated. Analysts should sketch what a model predicts before fitting it, then compare that expectation with the observed data. If the fit misses a visible feature, the response might be a different model, a closer look at data collection, or new data.

The price survey shows why model choice matters. Twenty volunteers reported what they might pay for a book. Their average response was $17.20, but the distribution had a strong cluster near $10 and could not plausibly include negative prices. A Normal model poorly reflected those features; a Gamma model allowed only positive values and fit the data more plausibly. The estimated share willing to pay at least $30 shifted from about 11% under the Normal model to about 7% under the Gamma model.

Analysis

The model is treated here as a falsifiable story about data generation, not as a badge of sophistication. That orientation connects naturally to posterior predictive checking and simulation-based workflows: generate what the model says should happen, then see whether reality resembles it. The price example also exposes a general risk: a neat summary can conceal distributional shape, and downstream decisions may change when that shape is modeled differently. Yet a better-fitting curve cannot repair a volunteer sample that fails to represent likely customers. Model adequacy and sample quality are separate problems.

Separate prediction accuracy from evidence about population relationships.

Inference needs a target. Before generalizing from a sample, define the population, explain how the sample was obtained, and state a model for how its members relate. A sample of 5,000 people can be large yet unrepresentative. In the book's 2015 Apple Music example, MusicWatch reported that 48% of trial users were no longer using the service, while Apple said 79% remained active. The difference could reflect selection, different definitions of active use, or other measurement choices, not simply random error.

Prediction has another goal. In a New York City example, adjusted models found a positive association between PM10 pollution and mortality, though the relationship was small. A random forest used to predict mortality ranked PM10 as relatively unimportant. That does not refute the association; the algorithm prioritizes predictive usefulness, not the explanation or population relationship an inferential analysis seeks.

Analysis

The central lesson is that the question determines which errors matter. A public health analysis may care about a small population-level association even when it contributes little to individual prediction. Conversely, a forecasting system may be valuable without offering a causal explanation. The Apple comparison is a useful warning against treating opposing percentages as a simple contest of truth: the two parties may not have measured the same behavior. More generally, sample size reduces some kinds of random uncertainty, but it cannot by itself correct selection bias or ambiguous measurement.

Stress-test conclusions with plausible alternatives, not just more complexity.

A primary model is a candidate, not a verdict. The book calls the leading model the primary model and uses secondary models to test how sensitive its conclusions are to reasonable changes. In a hypothetical advertising campaign, the simplest model estimates an increase of $44.75 in daily sales. Adding a curved background time trend changes that estimate to $39.86; a more flexible trend produces $49.10. The estimates differ, but none alone settles whether the campaign is worth its cost.

Choose with context. Compare effect size, the plausibility of each model, and the value of simplicity. A complex model is not automatically better, nor is a simple one automatically adequate. For prediction, test performance on held-out data matters; in the book's credit-risk example, 70% accuracy hides extremely poor identification of bad-credit cases. The cost of each kind of error should shape the model's evaluation.

Analysis

This approach resembles robustness analysis in economics and engineering: conclusions gain credibility when they survive reasonable alternative assumptions, not when they survive every imaginable specification. The emphasis on plausibility is essential because a flexible model can fit noise as readily as signal. Prediction evaluation also needs decision costs, since equal accuracy can conceal very unequal consequences. A further safeguard is to distinguish planned sensitivity checks from endless model searching. If many alternatives are tried and only the favorable one is reported, the apparent robustness can become a product of selective reporting.

Interpret effect size and uncertainty, not merely statistical significance.

Return to the original question. Results should be interpreted in the units and population that the question specifies. A coefficient per ounce of soda cannot answer a question framed per 12-ounce serving until the units are reconciled. Analysts should describe the direction and magnitude of an estimate, then assess its uncertainty and practical importance. Statistical significance alone does not say whether an effect is large enough to matter.

Ranges carry more information than a threshold. In the book's illustrative soda and BMI example, an estimate of 0.28 kg/m² has a 95% confidence interval from 0.15 to 0.42. That range communicates plausible values more directly than a p-value of 0.03 reduced to a pass or fail at 0.05. The result is still an association, not proof that changing soda consumption would cause BMI to change. Decisions also depend on the affected population and the consequences of acting.

Analysis

This section aligns with modern statistical reporting guidance that favors estimates and intervals over binary declarations. An interval makes uncertainty visible, although it is not a guarantee that the true value lies within the particular calculated range. The practical scale matters too: a small individual effect may have substantial population consequences when exposure is widespread, as the book notes for air pollution. Interpretation therefore needs both statistical context and decision context. The causal boundary is equally important: precise estimation of an association does not transform observational evidence into an intervention effect.

Use communication as an instrument of analysis, not a final coat of paint.

Feedback is evidence. Routine communication can answer a focused technical question, help resolve a puzzling result, or collect broader reactions to the analysis. Each purpose calls for a suitable audience and enough context, but not a data dump. Content experts may catch a bad assumption; other analysts may spot a modeling issue; managers can clarify the decision the result must serve.

The report is another test. In the asthma example, a boss asks when the data were collected and how demographic changes might affect future prevalence. The first question exposes a missing detail in the report. The second suggests a new analysis. Clear, concise communication and a receptive attitude make such feedback possible. The goal is not to defend an analysis as finished, but to help the intended audience understand what it supports and what remains unresolved.

Analysis

Communication functions as a form of quality control because different audiences notice different failure modes. This is closely related to distributed cognition: no single analyst holds all relevant technical, domain, and organizational knowledge. Inviting critique early can prevent wasted modeling effort and improve the eventual decision. Still, openness alone does not guarantee useful feedback. Teams need enough psychological safety for people to disagree, and analysts need to distinguish informed criticism from pressure to produce a preferred result. Concision helps, but transparency about uncertainty and limitations matters more than a polished narrative.

Analysis

The book's defining contribution is procedural rather than mathematical. It makes expert data work more legible by treating analysis as a sequence of provisional beliefs, tests, and revisions. The repeated cycle links question formation, data inspection, modeling, interpretation, and communication, giving practical unity to activities often taught as separate technical subjects. Its most valuable implication is that mistakes can enter before code is written: a vague question, an inadequate proxy, or an undefined population can make a correct calculation answer the wrong thing.

The examples show why no single diagnostic is sufficient. The ozone comparison uses counts, external standards, plots, and a simple regional contrast. The Apple Music discrepancy emphasizes sampling and measurement. The pollution example demonstrates that a variable can matter for inference without helping prediction. Together, these cases teach a kind of analytic pluralism: use multiple checks because evidence has different failure modes.

The framework also benefits from a modern safeguard that the book only implies: keep a record of expectations and analysis decisions. Exploratory work is necessarily flexible, but unrecorded flexibility can encourage hindsight and selective reporting. A useful practice is to separate discovery from confirmation, then test promising patterns on independent data where possible. Likewise, sensitivity analysis is meaningful only when alternatives are plausible and transparently reported, not when models are repeatedly changed until a preferred answer appears.

The book is not a substitute for study design, causal identification, or deep statistical training. Its broad workflow cannot make biased data representative, nor can an iterative process eliminate uncertainty. Its promise is more modest and more durable: analysts can make their reasoning visible, diagnose mismatches instead of hiding them, and align the strength of their conclusions with the strength of their evidence. That is a craft discipline, not a software feature.

Summary in 30 Seconds
A useful analysis begins with a precise question, because description, prediction, population inference, causal effects, and mechanisms require different evidence. Inspect data quality and plausible patterns before modeling. A predictive model can rank outcomes well without explaining relationships, while an association does not establish cause. Compare reasonable alternative models, report effect sizes and uncertainty, and judge practical importance rather than relying on statistical significance alone. Feedback can expose weak assumptions and unanswered questions.
Contains spoilers

Last updated:

Report Issue
Want to read the full book?

Glossary

Epicycle of data analysis

Expectation and revision cycle

A repeating process used throughout data analysis: establish what should be observed, gather information or perform an analysis, compare the result with the expectation, and revise either the expectation or the data when they conflict. The cycle applies to questions, data exploration, models, interpretation, and communication, rather than occurring only once.

Exploratory data analysis

Initial data investigation

The examination of a dataset's structure, variables, distributions, and relationships, often using visualizations. Its goals are to detect data problems, judge whether the available data can answer the question, and develop an initial sketch of the answer. It guides later analysis but does not by itself establish that a pattern generalizes or is causal.

Sensitivity analyses

Tests of model robustness

Analyses that compare a primary model with secondary models designed to challenge its assumptions or conclusions. Changes might include adding or removing predictors, adjusting for potential confounders, or excluding outliers. The results show how dependent a conclusion is on modeling choices, provided the alternatives are substantively plausible and transparently selected.

Selection bias

Distorted sample inclusion

A systematic error that arises when the process selecting observations produces a sample that does not represent the population relevant to the question. Estimates may then describe the selected group rather than the intended population. A large sample does not necessarily solve the problem, because selection can remain systematically unrepresentative.

Simpson's Paradox

Reversal after grouping adjustment

A pattern in which an overall relationship differs from, or reverses, the relationship observed after accounting for a grouping factor. In the book's pollution example, the crude association between PM10 and mortality appears near zero, while adjusting for season reveals a positive association. The reversal occurs because season relates to both variables in opposing ways.

Confidence interval

Range expressing estimate uncertainty

A range calculated from sample data to express uncertainty about an unknown population parameter. Under repeated sampling and the method's assumptions, intervals constructed at a stated confidence level would contain the true parameter at that frequency. A 95% confidence interval does not mean there is a 95% probability that the fixed parameter lies in this particular observed interval.

Primary model

Current leading model

The model currently judged to provide the best answer to the analysis question, based on available knowledge and exploratory work. It is a working candidate, not necessarily the final or uniquely correct model. Secondary models challenge its assumptions and reveal whether its estimates or conclusions change under reasonable alternatives.

Prediction analysis

Modeling for outcome forecasts

An analysis whose main goal is to predict an outcome accurately for new or unseen cases. Predictors are useful insofar as they improve prediction, whether or not they explain a causal relationship. Performance should be evaluated on data not used to fit the model, and the relevant error tradeoffs depend on the consequences of different mistakes.

Download PDF

To save this The Art of Data Science summary for later, download the free PDF. You can print it out, or read offline at your convenience.
Download PDF
File size: 0.25 MB     Pages: 14

Download EPUB

To read this The Art of Data Science summary on your e-reader device or app, download the free EPUB. The .epub digital book format is ideal for reading ebooks on phones, tablets, and e-readers.
Download EPUB
File size: 1.26 MB     Pages: 19
Want to read the full book?
Follow
Listen
Home
Swipe
Library
Get App
Try Full Access for 3 Days
Listen, bookmark, and more
Compare Features Free Pro
📖 Read Summaries
Read unlimited summaries. Free users get 3 per month
🎧 Listen to Summaries
Listen to unlimited summaries in 40 languages
—
❤️ Unlimited Bookmarks
Free users are limited to 4
—
📜 Unlimited History
Free users are limited to 4
—
📥 Unlimited Downloads
Free users are limited to 1
—
Risk-Free Timeline
Today: Get Instant Access
Listen to full summaries of 26,000+ books. That's 12,000+ hours of audio!
Day 2: Trial Reminder
We'll send you a notification that your trial is ending soon.
Day 3: Your subscription begins
You'll be charged on Nov 30,
cancel anytime before.
Consume 2.8× More Books
2.8× more books Listening Reading
Our users love us
1M+ readers
Trustpilot Rating
TrustPilot
4.6 Excellent
This site is a total game-changer. I've been flying through book summaries like never before. Highly, highly recommend.
— Dave G
Worth my money and time, and really well made. I've never seen this quality of summaries on other websites. Very helpful!
— Em
Highly recommended!! Fantastic service. Perfect for those that want a little more than a teaser but not all the intricate details of a full audio book.
— Greg M
Save 62%
Yearly
$119.88 $44.99/year/yr
$3.75/mo
Monthly
$9.99/mo
Start a 3-Day Free Trial
3 days free, then $44.99/year. Cancel anytime.
Unlock a world of fiction & nonfiction books
26,000+ books for the price of 2 books
Read any book in 10 minutes
Discover new books like Tinder
Request any book if it's not summarized
Read more books than anyone you know
#1 app for book lovers
Lifelike & immersive summaries
30-day money-back guarantee
Download summaries in EPUBs or PDFs
Cancel anytime in a few clicks

Why one summary?

Scanner
Find a barcode to scan

⭐
⭐
⭐
We have a special gift for you
Open
38% off
DISCOUNT FOR YOU
⭐
⭐
⭐
$79.99
$49.99/year
Only $4.16 per month
Continue
2 taps to start, super easy to cancel
Settings
General
Widget
Loading...