Advanced Octave A81 — Geography of the waves and a 3D surface

by Giux GX-TXT, octave-en, scripts-en 2 min read

Advanced GNU Octave with GX-TXT · Module 14

The pandemic did not hit all the territories at the same time and with the same intensity. A table per month helps to observe differences without reducing territories and people to one ranking.

Source and main reading

We use the Table ISTAT of monthly regional deaths for all causes of residents. Open the navigable coloured table: each cell reports the 2020 count minus the average of the same month in 2015–2019. The Table CSV retains counting, reference and difference. Colors are a reading help; values remain available as text.

The order is that of the source ISTAT: Piemonte, Valle d’Aosta, Lombardy, Bolzano, Trento, Veneto, Friuli-Venezia Giulia, Liguria, Emilia-Romagna, Tuscany, Umbria, Marche, Lazio, Abruzzo, Molise, Campania, Puglia, Basilicata, Calabria, Sicily and Sardinia. Bolzano and Trento are considered separately: there are therefore 21 territorial units, not 21 regions.

For example, in Lombardy the table shows 25,552 deaths for all causes in March 2020, compared to an average of 8,948.8 in the five months of March 2015–2019; the descriptive difference is 16,603,2. The average and the difference can have decimals because they come from an average, not from fractions of people. These numbers are not the count of COVID deaths alone.

A 3D view, with caution

The test uses GX-TXT dev112-P011-bis and GNU Octave 9.4.0. Import geografia.m, record it and execute it; istat_territory_2020 is created-only, then use a new session or change the ID to repeat. The script publishes 2020 counts, not colored table differences, and checks that the national sum is 740.317.

The surface connects indexes of separate territories. The traits between an index and the other are not observations and do not indicate geographical continuity; the perspective can hide values. For comparison reading, use the table with names and numbers. Absolute differences are also affected by the population and its structure by age: they are neither individual rates nor risk measures.

Exercise

  1. What difference does a table cell describe?
  2. Does the 3D surface show differences from the average or 2020 counts?
  3. Why do Bolzano and Trento appear separately?

Worked solution

  1. Decrees for all causes of the month 2020 minus the average of the same month 2015–2019.
  2. The counts of 2020.
  3. The source table presents the two autonomous provinces as distinct units.

Download the Module 14 scripts (ZIP)

#GNU Octave #GX-TXT #GX-TXT public APIs

Other steps of this project

Leave a Reply

Your email address will not be published. Required fields are marked *