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


  • A Big Bang Theory About Gucci Success

    The decision to conquer the market through a rejuvenation of the organisation and the adoption of a new set of values has been the key to the successful Gucci turnaround under the leadership of Marco Bizzarri and Alessandro Michele, according to a study presented yesterday  

  • AI That Describes Images in Italian

    CLIPItalian, recently developed by a team including Federico Bianchi, is the first and only AI model that associates images to their descriptions in Italian on a large scale  


  September 2021  
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      


  • Going Digital to Conform and Perform: Learning Logics Underpinning Digital Advertising Spending

    Seoyoung KIM, University of Georgia   Job Market Seminar For information please contact


  • Explaining Greenium in a Macro-Finance Integrated Assessment Model

    Biao Yang, Bocconi University Practice for Job Market

    Room 7, Via Bocconi 8