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"]
Out[]=
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[]=
Name
ResourceType
ResourceObject
Description
Location
DocumentationLink
COVIDTrackingData
Function
ResourceObject["COVIDTrackingData"]
Import data about COVID-19 in the US from covidtracking.com
https://resources.wolframcloud.com
https://resources.wolframcloud.com/FunctionReposit...
NYTimesCOVID19Data
Function
ResourceObject["NYTimesCOVID19Data"]
Import data from the New York Times COVID-19 United States County-by-County data
https://resources.wolframcloud.com
https://resources.wolframcloud.com/FunctionReposit...
Epidemic Data for Novel Coronavirus COVID-19
DataResource
ResourceObject["Epidemic Data for Novel Coronavirus COVID-19"]
Tracking the Novel Coronavirus (COVID-19) Global Cases
https://resources.wolframcloud.com
https://datarepository.wolframcloud.com/resources/...
Patient Medical Data for Novel Coronavirus COVID-19
DataResource
ResourceObject["Patient Medical Data for Novel Coronavirus COVID-19"]
Medical records of patients infected with novel coronavirus COVID-19
(This data was imported and made computable on March 24, 2020.)
https://resources.wolframcloud.com
https://datarepository.wolframcloud.com/resources/...
Genetic Sequences for the SARS-CoV-2 Coronavirus
DataResource
ResourceObject["Genetic Sequences for the SARS-CoV-2 Coronavirus"]
Nucleotide sequences of the SARS-CoV-2 virus (the virus associated with the COVID-19 disease, formerly known as 2019-nCoV) including location, collection time and similar supporting data. (This data was imported and made computable at 3 pm CDT on March 30, 2020.)
https://resources.wolframcloud.com
https://datarepository.wolframcloud.com/resources/...
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=TimeSeriesWindowcovidDataSelect#"Country"==
United States
COUNTRY
&/*Total,"ConfirmedCases",{"3 march 2020",Today}/.Missing["NotAvailable"]0.;
In[]:=
czOriginal=TimeSeriesWindowcovidDataSelect#"Country"==
Czech Republic
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/"]
Out[]=
https://www.praguemorning.cz/usage-of-masks-flattened-growth-of-coronavirus-cases-in-czech-republic/
In[]:=
cz=Normal[czOriginal/czOriginal["FirstValue"]]/.
Wed 18 Mar 2020 00:00:00GMT-4.
,val_Callout
Wed 18 Mar 2020 00:00:00GMT-4.
,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[]=
US
CZ
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