Finding stories in data: from a question to a comparison, a chart, and one defensible sentence.
Knowledge Discovery in Data · University of the Philippines Cebu
Definition of data journalism and the sources of story ideas.
Question → comparison → chart → one sentence with a number and a caveat.
Confounders, robustness and honest charts as tests of a finding.
Weeks 3–8 prepared for this: exploration whose results reach a public audience. The stakes are higher; the discipline is the same. Data journalism is reporting news whose evidence is a dataset.
A reporter checks a quote before printing it, and a data reporter checks a number the same way: its origin, what it counts, and what it omits.
A data story is EDA that another person must be able to trust.
A finding that a reader should know, told so that they can check it.
e.g. "48 of 4,841 firms hold 27.6% of the money"
The particular question or point of view a story takes on the data. One dataset has many angles.
e.g. flood data: spending per region, or which firms get the most
Setting a number next to another group, time or expectation. Most findings are one.
e.g. passers studied 7.0 h; the others 2.4 h
The surrounding facts a reader needs to judge whether a number is big, small or normal.
e.g. Region IV-B builds different works than Region I
The number divided by: the "out of how many" or "per what" behind a figure.
e.g. ₱1.6T ÷ 11 years = ₱145.5B per year
Per person: divide a count by the population, so places of different sizes compare fairly.
e.g. 500 cases ÷ 1,000,000 people = 50 per 100,000
How common something is overall: the reference against which a group is compared.
e.g. 0.4% of all projects are terminated
Where the data came from: who produced it and where it was obtained.
e.g. DPWH flood control projects, via the BetterGov.ph mirror
Checking a claim against the evidence before publishing it.
e.g. inspect .unique() on the column a claim rests on
A column that exists but was never filled in. Its zeros mean "not recorded", not "none", as with amount_paid.
e.g. df.amount_paid.unique() gives array([0])
CBS uses a UNIVAC I computer to analyse US presidential election returns.
Philip Meyer surveys residents after the Detroit riot and analyses it on a mainframe.
Meyer’s Precision Journalism teaches reporters social-science methods.
Computer use reaches “critical mass” in American newsrooms.
Meyer argued that journalism should stop being “a refuge for people who have a math phobia”.
Precision journalism means checking a claim with data and a stated method, as a scientist would, instead of by interviews alone.
SourceWikipedia: Computer-assisted reporting; Philip Meyer; Columbia Journalism Review
College-educated residents were as likely to have rioted as high-school dropouts.
The New York Times found discrepancies in police-reported crime rates.
Bill Dedman’s analysis of mortgage lending won a Pulitzer Prize.
Each finding contradicted what people already believed, and each was checkable because the data and method were published.
SourceWikipedia: Computer-assisted reporting; Wikipedia: Philip Meyer
As in weeks 6 to 8, a block with a ▶ Run / Edit button runs in the browser and can be changed. This week’s small examples (ten students, two towns) run there; the flood checks run in the companion notebook.
Some blocks show text to copy into a story: a caption, a correction note, interview questions. They have no Run button and are not part of the notebook.
pd.__version__the installed pandas: 3.0.5 on the laptop, 2.2.0 in the browsert.dtypeseach column’s type: str on the laptop, object in the browserData stories predate the term "data science".
Six previous weeks covered collecting, cleaning and exploring data. This part examines what turns a pattern into a story that others should read.
"During London's cholera outbreak, John Snow plotted each death as a mark on a street map. The marks clustered around one water pump on Broad Street. The prevailing theory held that disease traveled by air; the map indicated water, and the pump handle was removed."One question, one dataset, one chart
The structure is a precise question, data not previously arranged, and a visual that made the answer clear. It has not changed in 170 years.
Disaster response times, budget flows, price spikes and school outcomes follow the same question–data–chart structure, applied to current records.
Snow's own data, re-plotted: each red dot is a death, each square a pump. 359 of the 578 deaths are closer to the Broad Street pump than to any other. The question (where is the source?), the data (addresses of deaths) and one chart made the answer visible.
No one had quantified it before. A first count is itself news.
Two groups, places or times that should look alike but do not. Most data stories are of this type.
A trend broke, a gap widened, or a stable number began to move.
A story here is a finding a reader should know, told so they can check it. All three types reduce to a comparison: a number set next to another group, another year, or an expectation.
Unresolved EDA results: a retained outlier (week 5), a gap in the data (a group not counted), an unexpected correlation (week 8).
one dataset, three kinds of story: a first count (34,079 projects), a contrast (Region VI's median project takes 260 days, Region I's 167) and a change (projects started per year tripled between 2016 and 2024).
"Region VI’s median project takes 93 days longer than Region I’s." Compares regions.
"48 of 4,841 contractors hold 27.6% of awarded value." Compares firms.
"80.8% of projects are complete; 16.0% are on-going." Compares statuses.
An angle is the particular question a story takes on its data. The same 34,079 flood-control rows support all three angles above, each with its own comparison, chart and caveat.
Three photographers at one festival return with three different stories because they stood in different places, not because the festival differed.
A piece that attempts all three angles at once usually develops none of them adequately.
each angle asks a different question, so each needs a different comparison and a different chart: regions side by side, a few firms against all the rest, and the share of projects in each status.
An undirected search of a CSV produces noise. The question "Does study time relate to passing?" names an outcome and a suspected driver, which gives every step a direction.
The outcome is the quantity to be explained (passing); the driver is the suspected explanation (study hours). A boolean column holds only True or False.
The outcome of interest (passing) and the candidate explanation (study hours).
The lab converts score into a boolean passed. The question becomes simpler, at the cost of detail (a 74 and a 40 both become "failed").
Every simplification is open to criticism, so the analyst should state it first.
the cut at 75 makes the question simple (did study time relate to passing?) but discards detail: a 74 and a 40 both become False. That trade-off is stated, not hidden.
Weeks 4 through 8. Each resulted from a single unchecked operation.
| Week | Plausible claim | Why it was false |
|---|---|---|
| 4 | ₱1.17T of work completed but never paid | amount_paid is 0 on every row — unpopulated, not unpaid |
| 5 | 99.6% of flood projects are complete | dropna() deleted every unfinished project; the real figure is 80.8% |
| 6 | One project finished 17 days before it started | True, but it reflects a data error, not misconduct |
| 7 | Projects take a median of 202 days | describe() silently excluded 6,415 unfinished ones |
| 8 | Latitude strongly predicts longitude | r = −0.785 reflects the shape of the archipelago |
None of these involved an arithmetic error. Each came from a correct operation applied to data whose meaning had not been checked.
Each row pairs a correct calculation with a false statement. The next slide examines the first case.
The checks in Part A and the findings in Part C use the 34,079 flood control projects from weeks 4 to 8.
pd.read_csv(url)?pandas downloads with urllib, which this site’s bot protection answers with 403 Forbidden. requests gets through.
The browser cannot download the data, so the flood blocks have no Run button; the companion notebook runs them.
requests.get(url)download the whole table in one request(34079, 15)34,079 projects, 15 columns
one row per contract, 15 columns in four families. Every story this week draws on these columns, and on knowing what each one does and does not record: amount_paid, in red, is the first trap.
a real money column has many different values (left). amount_paid has exactly one: 0, on all 34,079 rows (right). One value on every row means “not recorded”, not “unpaid”. The next slide checks it in code.
The flood data has an amount_paid column. Summing the budgets of completed projects and seeing that amount_paid is 0 suggests ₱1.17 trillion "completed but never paid". However, the column is unpopulated: it exists, but was never filled in.
A blank "tip" line on a receipt does not show that no tip was given, since the restaurant may not record tips on receipts.
Before a claim rests on a column, its .unique() values should be inspected. One value on every row means "not recorded" until shown otherwise.
.unique()every different value in the column: here only 0array([0])a NumPy array holding one value: every one of 34,079 rows says 0df[df.status == "Completed"]keep the completed projects, then add up their budgets in trillionsOf the five claims, the ₱1.17 trillion figure was the most newsworthy. It was also the furthest from the truth.
A finding that resembles a headline requires more checking than a mundane one, not less, because its appeal encourages skipping verification.
df.amount_paid.unique()list every different value in the column: one value only means nothing was recordedlen(df), len(clean)row count before and after cleaning: how many rows were droppedwhy_would_these_relate()not real code: a question for the analystNext: building the finding step by step.
Question → comparison → chart → sentence.
Grouping and summarising were covered in weeks 5–8. This part turns a group comparison into a chart and one sentence a reader can check.
Part B builds a finding step by step on a table small enough to check by eye: the lab’s ten students, their study hours, section and score. A score of 75 or more is a pass.
students["score"] >= 75a True/False column: did the student pass?studentsthe lab calls this table df; here the name is kept for the flood dataThe rows are split by the outcome, and the candidate driver is summarized in each group. One groupby gives the question numerical answers.
The data: 10 students with their weekly study
hours and a passed column (True if the score was 75 or more).
students["score"] >= 85 on the table slide) and run again. How do the groups change?Result on the lecture laptop (select to reveal)
Passed: 7.0 hours on average (5 students); failed: 2.4 hours (5). With a pass mark of 85 only 3 students pass; they average 8.0 hours, and the other 7 average 3.3.
.groupby("passed")["study_hours"]split the students by result, then look at study hours.agg(["mean", "min", "max", "count"])four summaries per group; count says how many students each number rests onBeyond the means, the ranges do not overlap, and count indicates how much weight the claim can bear (little, at 5 per group).
every student is a dot, so the means can be checked by eye: no passer studied fewer than 5 hours, and no one who failed studied more than 4. The gap between the means is 4.6 hours, from only ten students.
Neither the analyst nor the reader can judge its size without a denominator.
left, per year: an average of ₱145.5B, though the real years range from ₱52.6B (2016) to ₱369.3B (2024). Right, per project: the regions run from ₱31.2M (Region I) to ₱242.0M (Central Office), a 7.8× spread the national total hides. The next slide computes them.
₱1.6 trillion is the headline figure for this dataset. On its own it cannot be interpreted. A denominator is the quantity a figure is divided by to make it comparable: per year, per project, per person.
The data covers eleven years. ₱145.5B per year is easier to grasp and can be compared with other budget lines.
df.budget.sum() / 1e12add every budget; 1e12 is a trillion, so the answer is in trillions (round keeps 2 decimals: 1.60 prints as 1.6)df.year.nunique()how many different years appear: 11 (2016 to 2026)… / 1e9 / 11in billions (1e9), then divided by 11 years₱145.5B/year across 11 years. Comparable to other annual budget lines.
34,079 projects, so ₱47.0M each on average, or ₱37.7M for the typical project.
Central Office ₱242.0M vs Region I ₱31.2M. A 7.8× spread that the national figure conceals.
The denominator should match the question, and it should be stated. Most misleading statistics in public reporting are a correct numerator over an unstated denominator.
Per-capita means "per person". Dividing a count by the population makes places of very different sizes comparable. The numbers on the right are invented to illustrate the arithmetic.
City A has 12 times as many reports, yet Town B has the higher rate: 80 against 50 per 100,000 people. A headline based on the count would identify the wrong place.
A family of eight eating eight kilos of rice a week eats less per person than a couple eating three.
Result on the lecture laptop (select to reveal)
Town B: 80 reports per 100,000 people against City A’s 50, although City A has 500 reports and Town B 40. With 30 reports, Town B has 60 per 100,000: still ahead of City A.
pd.Series({"City A": 500, …})a Series built from a dictionary: the names become the row labelsreports / peoplepandas lines the two Series up by label and divides City A by City A, Town B by Town B* 100_000reports per 100,000 people, an easier number to read than 0.0008dtype: float64the results are decimal numbers
by count, City A leads 500 to 40. Per 100,000 people, Town B leads 80 to 50. A headline built on the count would name the wrong place. (Invented numbers, to show the arithmetic.)
Region IV-B's average project costs ₱67.1M and Region I's ₱31.2M, yet most projects in the two regions overlap in size. Whether IV-B builds different works cannot be checked here: 99.4% of the projects carry the same category. The difference is a question, not yet a story.
Region IV-B spends ₱67.1M per project; Region I spends ₱31.2M. The twofold difference means little without knowing what kind of projects each builds. This is context: the surrounding facts a reader needs to judge whether a number is big, small or normal.
Bigger rivers, denser cities, and different works all produce different unit costs legitimately. The comparison generates the question; it does not answer it.
n=("contract_id", "count")a new column n: how many projects each region hastotal=("budget", "sum")a new column total: the region's summed budgetg.total / g.ndivide one column by the other, row by row: average budget per projecttop.iloc[[0, 1, 2, -1]]in millions, biggest first; show the top three and the last one (−1)A bar chart of the two means makes the gap visible immediately. Bars encode length, so the y-axis must start at zero; a truncated bar chart misrepresents proportion.
students.groupby("passed")["study_hours"].mean()the two averages: 2.4 and 7.0 hoursax.bar(["failed", "passed"], means)two bars that start at zero, so their heights compare honestlyThe chart exists to carry this comparison, not to decorate. A chart that needs a paragraph of explanation shows that the comparison is not yet precise.
the y axis starts at 0, so the passed bar is almost three times as tall as the failed bar (7.0 against 2.4), and the visual proportion is accurate. The data are the lab’s ten students.
a finding fits in one sentence with three parts: the claim (who differs, and how), the number (how big), and the caveat (how much evidence: here only ten students). The next slide writes it with an f-string, so the sentence cannot drift from the data.
Claim + number + caveat. A caveat is the stated limit attached to a claim ("only 10 students"). A result that cannot be stated in one sentence is not yet a finding; it is an area of interest.
f"… {g[True]:.1f}h …"an f-string (week 2) writes the numbers into the sentence, so the sentence cannot drift from the datan={len(students)}say how many observations the finding rests on"Students who passed studied about 4.6 hours more per week on average — though with only 10 students, this is suggestive, not conclusive."
Claim (studied more) · number (4.6h, n=10) · caveat (suggestive). All three are required.
"An overclaimed finding is reported briefly and then publicly corrected. A precisely stated finding is cited. 'Suggestive, not conclusive' is not timidity; it states the strength of the evidence."A claim states what the data supports and no more.
Ten students is a small sample. Small n (few rows) makes large gaps easy to produce by chance, so count belongs inside the sentence, not in a footnote. The data is also observational: recorded as it happened, with no one assigning study hours, so it can show association but not cause.
is associated with < suggests < shows < proves. Most EDA findings live at the first two.
the verb is part of the claim. EDA findings usually earn “is associated with” or “suggests”; “shows” needs a controlled comparison, and “proves” is almost never available from observational data.
Which is the defensible version of the lab's finding?
C: claim, number, caveat.
A is causal (the data is observational); B has no number; D overclaims from a sample of ten. C says exactly what was measured, how big it was, and how much to trust it.
A headline like A is likely to be retracted; one like C is likely to stand.
The sentence is drafted before the chart is polished, because the sentence is the story.
Testing a story before publication.
Part B built a finding. This part tests it against other explanations, other framings, misleading charts, and a real finding that could harm real companies.
colour the same ten students by section and a third variable appears: section B averages 6.2 hours of study and an 80% pass rate; section A, 3.2 hours and 20%. Section could be driving both. The next slide computes the pass rates.
Week 8 showed that a third variable (a confounder) can drive both of two variables, here study time and passing. Suppose the ten students came from two class sections, A and B.
students.groupby("section")["passed"].mean()the pass rate in each section: the mean of True/False is the share that is TrueA 0.2, B 0.81 of 5 passed in section A, 4 of 5 in section B: section may explain both study time and passingSection B both studies more and passes more, possibly because of a different instructor or exam. Until section is separated from study time, "study more, pass more" is weakly supported.
A sound finding holds under a different cut of the same data (it is robust). Here the pass rates of high- and low-study students are compared instead of mean hours.
>= 4). Does the finding survive?Result on the lecture laptop (select to reveal)
1.0: every student with 5 or more hours passed, and none below. With a cut-off of 4 hours, the high-study group’s pass rate falls to 0.83 (5 of 6): weaker, but the direction holds.
The mean gap and the pass rate agree here, which supports the finding. A result that reverses under a different cut is an artifact of one framing, not a finding.
at a cut of 5 hours the split is perfect (0% against 100%); at 4 hours it weakens (0% against 83%, as one student with 4 hours failed), but the direction is the same. A finding that keeps its direction under a different cut is robust.
Bars that start at 60 instead of 0 make a 5% gap look very large. Bars encode length, so they must start at zero.
Any fluctuating line appears to rise or fall sharply for a suitable choice of two endpoints. The fuller series should be shown.
"Most incidents in Cebu City" may only reflect most people in Cebu City. The per-capita (per person) rate from week 6 is also a journalism standard.
Each of these passes a fact-check, since every number is real, yet leaves the reader with a false belief. Chart honesty is therefore a matter of ethics, not style.
Storytelling and dashboards, where these rules matter most.
top row: each chart is accurate and misleading. Bottom row: the same numbers drawn honestly. Bars from zero; the whole series; a rate when the groups differ in size.
131 contractors, PHP 75.2 billion, and a marker in their names.
Some contractor names in the source export (the file the agency produced) contain the token (marker text) [REVOKED]. Counting them takes one line of code, and the total is substantial.
Out of 4,841 contractors and ₱1.6 trillion. The share is large enough to merit study and to cause harm if framed incorrectly.
df.contractor.str.contains("REVOKED", na=False)True for each row whose contractor name contains the text; na=False treats missing names as Falsedf[ … ]keep only those rows: rev is the flagged projectsrev.contractor.nunique()how many different firms: 131
set against the base rates, the flagged firms win somewhat larger projects than average: 3.7% of the projects carry 4.7% of the money. That is a question to report, not evidence of wrongdoing.
A base rate is how common something is overall: the reference against which a group is compared. The flagged firms are 2.7% of all contractors and hold 3.7% of the projects, but 4.7% of the value.
Their projects are larger than average: 3.7% of the projects carry 4.7% of the value. That is a question to report, not evidence of wrongdoing.
Whether 3 left-handers in a group of 10 is unusual depends on knowing that about 1 person in 10 is left-handed. That "1 in 10" is the base rate.
revthe 1,263 projects of the 131 flagged firms (the Finding slide)nunique() / nunique()131 flagged firms out of 4,841 firms; round(…, 3) keeps 3 decimalslen(rev) / len(df)1,263 projects out of 34,079Every number in it is correct. It is still not a claim this data supports, and it names real companies.
That the licence was revoked when the project was awarded. Nothing in the dataset says that.
States what the data records, and when. A reader can check it and knows its limits.
The verb. "Awarded to firms with revoked licences" asserts a sequence. "Flagged as revoked in the export" asserts a record.
Both sentences rest on identical numbers. One is publishable; the other is an accusation the evidence does not reach.
the dataset dates a project's start and its completion, and the marker is only seen when the file was exported. The revocation could fall at any of the three question marks; nothing in the data says which.
[REVOKED] is part of the contractor name string in the source. It is a snapshot of that firm’s licence when the file was produced.
When the licence was revoked. Whether it was revoked before or after these awards. Whether any of these particular projects was irregular.
rev.contractor.iloc[0]a revoked firm’s name carries the marker [REVOKED] and a licence number[c for c in df.columns if "date" in c]the only dates are a project’s start and completion: there is no revocation date, so “awarded after revocation” cannot be measuredA licence status at export time, embedded in a name string. Not a judgment about a project.
"Awarded to revoked firms" assumes revocation came first. There is no date column to check that.
Named, real companies. Here an error can become defamation.
Defamation is publishing a false statement that damages someone’s reputation. Question 3 sets the evidence required. A wrong claim about an average costs credibility; a wrong claim about a named firm can cost the firm its business and bring a lawsuit.
Verification means checking a claim against evidence before publishing it. Journalists verify sources; data journalists verify pipelines (every step from raw file to final number). The practices from weeks 3–6 are the verification.
Its origin, who collected it, and what it does not cover, stated plainly.
Reproducible code from raw file to final chart (week 5's rules). An unexplained result is not a methodology.
Other explanations are identified and checked before publication, not left for critics to find.
If every contractor received the same amount, the curve would follow the dashed line. It rises steeply: the largest contractors take a large share, and the top 1% alone hold over a quarter.
Concentration is not evidence of wrongdoing. It is a precise question to put to the agency.
Setting the licence question aside, this finding contains no ordering assumption and no accusation. Concentration means a few players hold most of something.
Out of 4,841 contractors. This is a structural fact about the market, directly measurable, and it accuses no one.
groupby("contractor").budget.sum()total budget per firm.sort_values(ascending=False)biggest firm firstc.head(48).sum() / c.sum()the top 48 firms' total as a share of everything: 0.276 = 27.6%
the count (131) makes the terminated projects concrete; the bar (0.4%) shows how small a share they are. Reporting both is fair to the reader.
"131 flood control projects terminated" is true and sounds alarming. "0.4% of all projects" states the same fact and suggests a functioning system.
The count makes it concrete; the rate makes it fair. Reporting only one can mislead the reader.
value_counts(normalize=True)the share of projects in each status (shares add to 1)* 100turn shares into percentages: 0.808 becomes 80.8
dataset, scope, n, method, date: five short lines directly under the figure let a reader reproduce the number instead of trusting it.
A source is where the data came from: who produced it, and where it was obtained. A reader who cannot reproduce a number must accept it on trust; four short facts remove that need. (CC0 means the data is free to reuse; a mirror is a copy hosted elsewhere.)
Not in an appendix. The reader who needs it is looking at the figure, not the methodology section.
| Check | From | What is checked |
|---|---|---|
| Column meaning confirmed | week 4 | .unique() inspected on the field the claim rests on |
| Dropped rows known | week 5 | Row count before and after, and which rows were removed |
| Derived values are possible | week 6 | Min, max, and the number of impossible values |
| Denominator known | week 7 | count compared with len(df); any difference stated |
| Relationship survives splitting | week 8 | Holds within regions, not only on average |
| Verb matches the evidence | week 9 | No sequence asserted that the data cannot order |
| Reproducible by others | week 9 | Source, scope, n, method, date — under the chart. |
Seven checks. A finding that passes all of them can be published and defended; one that fails would otherwise have needed a correction.
| Part | The sentence |
|---|---|
| Finding | Flood control contracting is concentrated: 1% of contractors hold over a quarter of the awarded value. |
| Number | 48 of 4,841 firms account for 27.6% of ₱1.6 trillion; the largest single firm holds ₱28.85B across 242 projects. |
| Method | Summed budget by contractor over 34,079 DPWH projects, 2016–2026, from the BetterGov mirror (CC0). |
| Limit | Concentration is not evidence of wrongdoing. Large firms win large contracts; this measures structure, not conduct. |
Four sentences. A reader can reproduce it and knows exactly what is and is not claimed. This is the deliverable of this course.
| Question | Why the data cannot reach it |
|---|---|
| Was this project good value? | No quality, inspection or outcome field exists. Budget is not worth. |
| Was money misused? | amount_paid is unpopulated. There are no disbursement records here at all. |
| Did flooding actually decrease? | No flood-incidence data is joined. The dataset describes spending, not effect. |
| Was a licence revoked before the award? | No revocation date. The token is a snapshot at export time. |
| Who decided each award? | No procurement or approval fields. The decision process is not recorded. |
This list is written before analysis. It prevents a week spent on a claim the columns cannot support, and it answers an editor who asks whether a claim can be made.
Region VI's projects take longer across the whole distribution, not only at the median (260 days against 167). The chart cannot say why. That answer has to come from someone who knows: the agency, an engineer or a contractor.
"Region VI’s median project takes 93 days longer than Region I’s" is not a story yet. It is a good question to put to the agency, an engineer, or a contractor.
Analysis stops at the pattern. Reporting takes the pattern to someone who knows why, and publishes their answer alongside it — including when they decline to comment.
Errors are inevitable. A credible outlet differs from a discredited one in how it handles them.
A link to the notebook is the clearest signal that the work is open to checking, and it allows errors to be found while they are still small.
A caveat added last reads as a retreat. A caveat written into the claim reads as precision and keeps a careful reader from dismissing the whole piece.
"May possibly suggest" is hedging. "Measures structure, not conduct" is accuracy. The first weakens a claim; the second defines it.
Any pattern in the flood data: by region, by year, by contractor, by duration.
Finding, number, method, limit. One sentence each, using the earlier table as a template.
Exchange sentences with a neighbour and identify the unstated assumption in each. Every claim has one.
Fix the verb, not the number. Most bad claims are a correct figure attached to an overreaching verb.
Step 4 is the main purpose. The arithmetic rarely needs changing; the stated interpretation usually does.
131 contractors with "[REVOKED]" in their names hold ₱75.2B in projects. Which headline does this dataset support?
Which of the five near-misses from weeks 4–8 would have been the most damaging to publish, and why?
Draft headline: "Studying CAUSES passing, data shows." Based on the lab's 10-student comparison. What is wrong with it?
B: three errors in seven words.
No one randomized study hours (so no causal claim), ten students cannot support "shows," and Part C found section B passing at 4× section A's rate. An accurate headline: "Passing students studied more — small sample, cause unclear."
A modest headline that holds is preferable to an exciting one that does not, in class and in print.
Readers cannot see the pipeline, so the text must state its limits.
Ten students, a pass/fail outcome, and a suspected driver. The lab covers the comparison, its chart, and the one-sentence finding with number and caveat. ~45 minutes.
Turning a score into a pass flag, groupby() comparisons with a size and an
n, a zero-based bar chart, and the claim–number–caveat sentence.
Rates versus counts, and a check for a third variable (tutoring) that could explain the gap.
The outcome and candidate driver are named before the data is examined.
Between groups, times or places, each one groupby away.
If n is small, the caveat is part of the finding.
Confounders, reframings and honest axes are central to the work.
In one sentence: a data story is a comparison that has survived a serious attempt to refute it.
Communicating a finding to an audience through narrative and dashboards.
The Data Journalism Handbook (free online): a chapter on "getting stories from data." It describes real newsroom workflows similar to this course's.
datajournalism.com
One visual essay from The Pudding or a FiveThirtyEight methodology note, showing how caveats are presented without obscuring the story.
Both are linked on the course page beside this deck and the lab.
After writing one finding sentence, it is easier to identify other findings and their caveats.
Narrative, dashboards and communication: presenting a finding to an audience with thirty seconds and no context.
DS 227 · Knowledge Discovery in Data