Advanced Octave A84 — A reproducible public account
Advanced GNU Octave with GX-TXT · Module 14
In 2020 the pandemic crossed the families, the hospitals and the Italian communities. Each number of this lesson concerns people: a chart can help us to understand the collective dimension of loss, but cannot tell by itself lives and broken relationships.
The question and sources
How many deaths for all causes among residents are in 2020, compared to previous years? In the monthly ISTAT series used in A79 and A80, the total of 2020 is 740,317, against an annual average of 635,888,6 in 2015–2019: a descriptive difference of 104,428.4. The comma comes from the average of five years: there are no fractions in person.
In March 2020, the series recorded 85,723 deaths, compared to an average of 58,505.2 in March 2015–2019. This difference from the past does not automatically identify the cause of each death, nor measures on its own all deaths caused by COVID-19. The composition by age of the population changes over time: more detailed interpretations require appropriate denominators and methods.
The ISTAT survey on causes of death in 2020 reports 78,673 deaths with COVID-19 as an initial cause certified among the deaths in Italy. This survey and the series of residents have different definitions and populations. Civil Protection Surveillance uses a further measure: A83 explains the differences. The measures can overlap and should not be added.
Reproduce the route with Octave and GX-TXT
The test uses GX-TXT dev112-P011-bis and GNU Octave 9.4.0. It prepares the Dataset of the lessons A79, A80 and A83 in the same session; it imports racconto.m, record it in the Octave Scripts Viewer and start it in the Runner. The script reads the canonical datasets, controls months and values of the copy of the sources, creates a chart and publishes the text document istat_covid_public_narrative. The document is created-only: for a second execution use a new Session or change its ID.
The controls make noticeable unexpected changes in the input; they do not replace the verification of the source and definitions. To reconstruct the data and verify its origin and footprints, see sources ISTAT and DPC sources. The variation of the DPC piled between 29 February and 31 December 2020 is 74.130 in the frozen file: it concerns the information published at the two dates, not necessarily the death dates.
Prepare a responsible article
It always accompanies the chart with population, period, unit, source and date of the copy; it explains how the comparison is measured and what does not allow to end. The Geographical picture of A81 helps to read territorial differences without turning them into account charts; A82 introduces age and gender rates published by ISTAT. The affected people deserve respectful language, even when we work with matrices and APIs.
Exercise
Write a caption of three phrases for the chart: indicate what the two curves represent, cite the source and clarify a limit of comparison. Then verify in the published document the controls and definitions.
Possible solution
« Monthly deaths for all causes among Italian residents in 2020, compared to the average of the same months of 2015–2019. Source: ISTAT, frozen series described in the guide. The difference between curves is descriptive and does not automatically identify the deaths caused by COVID-19.»
Other steps of this project
- Advanced Octave A75 — Dynamical systems in phase space
- Advanced Octave A81 — Geography of the waves and a 3D surface
- Advanced Octave A82 — Age, sex and demographic inequalities
- Advanced Octave A83 — All-cause mortality, certified COVID deaths and surveillance
- Advanced Octave A73 — Optimization landscapes and 3D trajectories
- Advanced Octave A74 — RLC response surfaces