You may have watched the video circulating in youtube and twitter regarding the effect in the number of cases due to the mandatory use of masks in the czech republic.
Hyperlink["https://www.youtube.com/watch?v=HhNo_IOPOtU&t=2s"]
Of course we needed to check if we could see an impact on the number of confirmed cases after the enactment of the resolution.
Wolfram Research Inc. makes available the number of cases of COVID-19 around the world in their data repository
covidResources=ResourceSearch["corona"]
Out[]=
In[]:=
covidData=ResourceData["Epidemic Data for Novel Coronavirus COVID-19"];
The number of confirmed cases in the US can be extracted as follows.
In[]:=
us=TimeSeriesWindowcovidDataSelect#"Country"==&/*Total,"ConfirmedCases",{"3 march 2020",Today}/.Missing["NotAvailable"]0.;
In[]:=
czOriginal=TimeSeriesWindowcovidDataSelect#"Country"==&/*Total,"ConfirmedCases",{"3 march 2020",Today}/.Missing["NotAvailable"]0.;
From the czech news we know that masks were made mandatory on march 18th.
Hyperlink["https://www.praguemorning.cz/usage-of-masks-flattened-growth-of-coronavirus-cases-in-czech-republic/"]
In[]:=
cz=Normal[czOriginal/czOriginal["FirstValue"]]/.,val_Callout,val,"Compulsory Mask Edict",Appearance"Frame";
We’ll bring the cases to same starting point on March 3. Before march 18th, the compounded growth in number of confirmed cases was higher in CZ than in the US. A couple of days after the edict the slope of the curve flattens out.
DateListLogPlot[{us/us["FirstValue"],cz},PlotLegends{"US","CZ"},PlotTheme->"Detailed",PlotLabel"Growth in number of confirmed cases\nsince march 3, 2020"]
Out[]=
TableForm[Transpose@Round[{N@Ratios[us["Values"]],N@Ratios[czOriginal["Values"]]},0.01],TableHeadings{DateString[#,{"Month","/","Day"}]&/@us["Dates"],{"US","CZ"}}]
Out[]//TableForm=
US | CZ | |
03/03 | 1.26 | 1.6 |
03/04 | 1.46 | 1.5 |
03/05 | 1.21 | 1.5 |
03/06 | 1.53 | 1.06 |
03/07 | 1.29 | 1.63 |
03/08 | 1.13 | 1. |
03/09 | 1.64 | 1.32 |
03/10 | 1.34 | 2.22 |
03/11 | 1.3 | 1.03 |
03/12 | 1.31 | 1.5 |
03/13 | 1.25 | 1.34 |
03/14 | 1.28 | 1.34 |
03/15 | 1.32 | 1.18 |
03/16 | 1.39 | 1.33 |
03/17 | 1.21 | 1.17 |
03/18 | 1.76 | 1.5 |
03/19 | 1.4 | 1.2 |
03/20 | 1.33 | 1.19 |
03/21 | 1.31 | 1.13 |
03/22 | 1.31 | 1.1 |
03/23 | 1.23 | 1.13 |
03/24 | 1.22 | 1.19 |
03/25 | 1.27 | 1.16 |
03/26 | 1.21 | 1.18 |
03/27 | 1.19 | 1.15 |
03/28 | 1.16 | 1.07 |
03/29 | 1.15 | 1.07 |
03/30 | 1.16 | 1.1 |
03/31 | 1.13 | 1.06 |