Capstone · lesson 1 of 10
Parts in this lesson
Aquestion → measure → comparison9.3: from vague to exact
Bthe source card5.1: who, how, when, why, licence

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.

The three capstone questions
Rice pricesRainSchools
The questionHow 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 dataPSA retail prices, monthly, by region, from OpenSTATDaily rainfall at a weather station, from NOAA’s GHCN-Daily; CHIRPS for the province, as a checkEnrolment in public and private schools by level, from DepEd, published on OpenSTAT
Getting itDownload straight awayDownload straight awayDownload straight away
Pairs well withThe PSA CPI, for real pesosTyphoon records; ENSO yearsPSA 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:

From vague to exact0 of 6 rungs

“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:

QuestionThe last rung of the ladder
DataThe source card
MeasuresEach one, defined exactly
ComparisonsAgainst what: last year, the national average, other places
MethodsReal pesos, year-on-year, decomposition, intervals, regression: whichever the question needs
What would change the answerThe result that would make you conclude the opposite
Limits known nowWhat 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

You plan to publish your cleaned PSA data with your report. What does CC BY require?
You use CHIRPS from HDX (CC BY) and a GHCN-Daily station (public domain). What must your report say?

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.

All sources for Simple Data Analysis