COVID-19 Data Analysis

Nuovi Decessi e Terapie Intensive

Correlazione tra nuovi deceduti e terapie intensive.

Max Pierini

Rapporto grezzo nuovi deceduti su terapie intensive:

Definizione e rimozione outliers (minori di 0% e maggiori di 100%)

2020-06-24 17:00:00: -28.97%
2020-08-15 17:00:00: 287.27%

Fit su polinomio di ottavo grado

Correlazione sulla linea temporale.

Per ovviare alla eteroschedasticità la correlazione sarà effettuata sul logaritmo

$$ \ln(\textrm{nuovi_deceduti}) = \alpha + \beta \cdot \ln(\textrm{terapia_intensiva}) $$
OLS Regression Results
Dep. Variable: np.log(nuovi_deceduti) R-squared: 0.923
Model: OLS Adj. R-squared: 0.923
Method: Least Squares F-statistic: 4385.
Date: Thu, 25 Feb 2021 Prob (F-statistic): 8.00e-206
Time: 18:45:41 Log-Likelihood: -263.12
No. Observations: 368 AIC: 530.2
Df Residuals: 366 BIC: 538.1
Df Model: 1
Covariance Type: nonrobust
coef std err t P>|t| [0.025 0.975]
Intercept -2.5482 0.111 -23.057 0.000 -2.766 -2.331
np.log(terapia_intensiva) 1.0993 0.017 66.219 0.000 1.067 1.132
Omnibus: 60.097 Durbin-Watson: 1.097
Prob(Omnibus): 0.000 Jarque-Bera (JB): 425.393
Skew: 0.419 Prob(JB): 4.24e-93
Kurtosis: 8.200 Cond. No. 29.1


Warnings:
[1] Standard Errors assume that the covariance matrix of the errors is correctly specified.

Correlazione lineare nuovi deceduti e terapie intensive per mese:

$$ \textrm{nuovi_deceduti}_{\textrm{mese}} = \alpha + \beta \cdot \textrm{terapia_intensiva}_{\textrm{mese}} $$
alpha beta R2
February 2020 0.446006 0.0693291 0.878506
March 2020 -46.9427 0.225071 0.951659
April 2020 70.6821 0.150324 0.785266
May 2020 5.09448 0.193365 0.608508
June 2020 9.61792 0.181337 0.574592
July 2020 -4.61802 0.288271 0.334849
August 2020 17.5333 -0.111838 0.00335505
September 2020 0.199874 0.0693856 0.50046
October 2020 -30.9098 0.151257 0.934528
November 2020 -229.945 0.246069 0.774955
December 2020 -154.967 0.251011 0.34185
January 2021 37.8361 0.171251 0.0484409
February 2021 -832.994 0.552934 0.159439

© 2020 Max Pierini. Thanks to Sandra Mazzoli & Alessio Pamovio

Exported from Italia/CFR_TI.ipynb committed by maxdevblock on Thu Feb 25 19:12:12 2021 revision 194, 21b087a