Coronavirus Data Analysis Made Easier

Coronavirus Data Analysis Made Easier


Marco Bonetti, Director of the Dondena Centre for Research on Social Dynamics and Public Policy at Bocconi, along with Ugofilippo Basellini (Max Planck Institute for Demographic Research and Institut national d’études démographiques), created an open source tool to facilitate the visualization of the coronavirus’s spread and local trends. «The tool uses the free statistical program R, widely used in the scientific community, and displays Italian data on the number of people infected, hospitalized or deceased», says Professor Bonetti. A beta version of an online app that shows the results of the analysis updated in real time is also available.
The program incorporates official data at the provincial level and, through a simple statistical process, summarizes the trend that the epidemic has followed so far at the local level. The result is a graph for each province and region, including cumulative data on contagions (or other variables) and an interpolation curve. Next to the graph, there is an indication of the estimated relative growth rate of the curve on the day of analysis. This translates every day into a map of Italy (in the image, the comparison between maps from 26 March and 29 March), in which each province corresponds to a circle. The size of the circle corresponds to the number of events up to the day of the analysis, while the color of the circle indicates the speed of growth at the time of the map. For example, green circles indicate provinces where the growth of contagion is modest, while red circles indicate provinces where it is high.
Bonetti, Full Professor of Statistics at the Department of Social and Political Sciences at Bocconi, described the analysis and the tool in a working paper free to download by clicking here. The code can be downloaded by clicking here, and the national map is updated daily and can be consulted by clicking here. The beta version of the online app is available by clicking here.
«The objective of this type of analysis is to follow the progress of the epidemic in the different areas of the territory,» concludes Bonetti, «and great caution is needed when extrapolating on the future».

by Fabio Todesco
Bocconi Knowledge newsletter


  • Monitor for Circular Fashion Launches Eight Pilot Tests

    In the 2022 report of the observatory by SDA Bocconi School of Management and powered by Enel X, the analysis of sustainability indicators in the textile sector is applied to eight innovative prototypes made by partner companies. From organic cotton jeans to a tshirt that can be repaired, a bag that can be recycled, and a shoe that can be sewn at home  

  • Cybersecuring a Country… with a Podcast

    Greta Nasi hosts a series of talks about how modern states aim to protect individuals, firms and society against an invisible enemy  


  September 2022  
Mon Tue Wed Thu Fri Sat Sun
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30    


  • Martin Oehmke, London School of Economics: Green Capital Requirements

    MARTIN OEHMKE - London School of Economics

    Seminar Room 2-e4-sr03 - Via Roentgen, 1

  • Leonardo Bursztyn: Justifying Dissent

    LEONARDO BURSZTYN - The University of Chicago

    Alberto Alesina Seminar Room 5.e4.sr04, floor 5, Via Roentgen 1