The question and the data
Last updated
The capstone is a real analysis of real Philippine data, from question to shared result, done on your own computer. Pick one of three prepared questions, or bring your own. In this lesson you'll turn the question into exact measures, find the data and fill in its source card, check its licence before downloading anything, and write the plan you'll follow for the next nine lessons.
By the end of this lesson you can
- Choose a question and break it down into measures the data can give
- Find a dataset, fill in its source card and check its licence
- Write an analysis plan before looking at results
Three questions
Choose one. Each uses open data about the Philippines that you can download today, and each has been chosen so that a careful answer is possible in about twelve hours of work.
| Rice prices | Rain | Schools | |
|---|---|---|---|
| The question | How did retail rice prices move across the regions, and which regions were hit hardest? | Is rainfall at a station changing, in total, in its seasons, or in its extremes? | How has enrolment changed by level, and between public and private schools? |
| The data | PSA retail prices, monthly, by region, from OpenSTAT | Daily rainfall at a weather station, from NOAA’s GHCN-Daily; CHIRPS for the province, as a check | Enrolment in public and private schools by level, from DepEd, published on OpenSTAT |
| Getting it | Download straight away | Download straight away | Download straight away |
| Pairs well with | The PSA CPI, for real pesos | Typhoon records; ENSO years | PSA population by age, for rates |
Your own question is welcome, if it passes the same tests: the data is public or yours to use, its licence allows what you plan, it's big enough to show something but small enough for your computer, and the question can be answered with what Stages 1 to 10 taught.
From question to measures
A capstone question starts vague, like every question (9.3). Break it down until every word is something you can compute. Here's the rice question, one rung at a time:
“How did rice prices move across the regions?”
Do the same for your question, in the first Markdown cell of a new notebook, 01-question.ipynb. Stop when the last rung is a measure someone else could compute from your description and get the same number.
Licence and access
Read the terms before you download anything, and write what they say on the source card (5.1).
- PSA (OpenSTAT): its terms of use say PSA statistical tables are open data under a Creative Commons Attribution licence. You may use them, change them and share what you make, with credit: Source: Philippine Statistics Authority, OpenSTAT, downloaded 2 March 2026.
- NOAA (GHCN-Daily): daily records from weather stations around the world, Philippine stations among them (their codes start with
RP). NOAA's open data is in the public domain (CC0): no conditions, though NOAA asks you to cite the dataset, and you should anyway. - CHIRPS: rainfall estimated from satellites and checked against rain gauges, since 1981. The Humanitarian Data Exchange has it ready as one CSV for the Philippines: the rainfall every ten days, averaged over each province and region, under CC BY. Credit the Climate Hazards Center, which makes CHIRPS, and WFP, which averaged it. It's a check on the station, and covers the years the station doesn't.
- DepEd enrolment on OpenSTAT: published by the PSA from DepEd's figures, under OpenSTAT's terms. Credit both.
PAGASA keeps the fullest Philippine station records. They come by request, from its Climatology and Agrometeorology Data Section, under Terms and Conditions of Use you sign, and can take weeks. Worth it for a question about one place over many years; read what the terms let you publish before you start.
Fill in a source card for your dataset in the notebook:
| What | |
| Who collected it | |
| How | |
| When | |
| Why | |
| Licence | |
| Codebook | |
| Known problems |
"Known problems" fills up as you go. Start it now with what the publisher's notes say: footnotes about changed definitions, missing months, revised figures.
The plan
Write the plan before looking at results (8.7), in the same notebook:
| Question | The last rung of the ladder |
| Data | The source card |
| Measures | Each one, defined exactly |
| Comparisons | Against what: last year, the national average, other places |
| Methods | Real pesos, year-on-year, decomposition, intervals, regression: whichever the question needs |
| What would change the answer | The result that would make you conclude the opposite |
| Limits known now | What the data can't tell |
Date it. If the plan changes later (it often should), add the change and why, and keep the original. That record is what separates a finding from a search for one (8.7).
Check what you learned
Sources
Every example on this page was run with Python 3.14, and its output and error messages are copied from it. These pages cover the same ground in more depth.
- Philippine Statistics Authority: OpenSTAT terms of use: PSA statistical tables are open data under a Creative Commons Attribution licence
- NOAA NCEI: Global Historical Climatology Network daily (GHCNd): daily station records, including Philippine stations, and how to cite them
- Registry of Open Data on AWS: NOAA Global Historical Climatology Network Daily: NOAA's open data is in the public domain (CC0)
- Climate Hazards Center, UC Santa Barbara: CHIRPS: rainfall estimated from satellites and rain gauges, since 1981
- Humanitarian Data Exchange: Philippines, Rainfall Indicators at Subnational Level: CHIRPS rainfall every ten days for each province and region, as CSV, under CC BY
- PAGASA: Climate data: how to request PAGASA's own station data, and its terms of use
- Creative Commons: Attribution 4.0 International: what CC BY allows, and what credit it asks for