mathcad - covid-19 seir & sir sigmoidal models2€¦ · 0hwkrgrorj\ ri wklv ,qyhvwljdwlrq 7klv...

67
COVID-19 SEIR Empirical Sigmoidal Model Created with Mathcad 14 Math Software: Documentation, Model Creation, and Math Calculations Mathcad Program File (COVID-19 SIR Sigmoid Model.xmcd) and Data can be found at: VXPhysics.com/COVID-19 This work was sparked by the desire to understand the basic dynamics of the COVID-19 Pandemic. With the exception of the Sigmoidal Incidence Model that was created, this work is mostly a review of existing research. This is not a formal paper and attribution to sources are sketchy. Epidemiological models are commonly stochastic, diffusive-spatial, network based, with heterogeneous sub-populations. However, the parameters of Dynamic Equation Models, such as SIR and SEIR, are more directly related to and interpretable as physical processes. The intent of this work was to build a simple epidemiological "toy model" to estimate the period before the peak infection and the total number of infected cases. The methodology employed was, first, the application of Dynamic Deterministic Discrete SIRD and SEIR Models to characterize infection data from Wuhan China, USA, UK, Italy, Spain, N. Korea, NY, FL, New Orleans. Next, a Sigmoidal Incidence Function was used to give an Empirical Transmission Model that closely models China's and S. Korea's Mitigation Policies. The Levenberg-Marquardt Method was used to extract the Empirical Epidemiological Parameters of the Epidemic Isolation Policies that were successfully employed by China and S. Korea. The insights gained from analysis of these successful interventions were then used to Analyze and Predict Results for the Mitigation Policies of the US, NY, & UK. Table of Contents (*Page Number Description) *1 Analysis of the COV ID-19 Pandemic and Page Outline *2-3 Methodology of the Investigation and Preview: Mitigation Model Match *4 General Description of the SARS-CoV-2 Virus and Conclusions *5 Coronavirus: Factors in Spread of Epidemics *6-7 COVID-19 Epidemiology (State of Flux ) and Forecasting Impact on Hospitals *8 COVID-19 Infection Cycle and the SIR Compartmental Disease Model *9-10 Deterministic Mathematical Modeling, Different Models: SIR, SEIR, SQEAIR *11 Discrete SIRD & SEIR Models and Algorithms. Analyze Typical Flu Season *12-13 SIR Model Normalized: Parameters for Flu Season 2002-2007 a 2010-2013 *14 COVID-19 SIRD Data, Log Curve, Model & Predictions for Hubei, China *15-16 Mitigation: Rationale for Empirical Sigmoidal Tranmission Phases Model *17 Algorithm for Discrete SIR Transmission Sigmoidal Transition Model: SIRM *18 Assessment of Efficacy of US Gov. Mitigation to Halt Spread *19-20 SIR Sigmoidal Transition Model Successful Fit for Hubei Data. Extract R 0 *21-22 SPATIAL AGGREGATION by US States: Estimate Model Parameters *23-24 New York City and State COVID19 Cases Feb 15 - April *25 Project Outcome New York Epidemic: No Mitigation-Worst Case Scenarios *26 Mitigation Modeling for NY: No Mitigation vs. Mitigation Scenarios *27 USA Data Directly From Johns Hopkins *28 Extract SIR Parameters from US Data, Apply IHME Projections, Project Deaths *29 Data on USA Total Confirmed Deaths to March 19 *30-31 Florida COVID19 Cases *32 New Orleans COVID19 Cases *33-34 UK COVID19 Cases, Extract UK SIR Parameters *35-36 Italy - Spain. S. Korea COVID19 Cases *37 Signoidal Model: Extract Mitigation Parameters for S. Korea *38-39 World Cases and Deaths/Million *40 Bibliography Tom Kotowski VXPhysics.com April 20, 2020

Upload: others

Post on 18-Jul-2020

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Mathcad - COVID-19 SEIR & SIR Sigmoidal Models2€¦ · 0hwkrgrorj\ ri wklv ,qyhvwljdwlrq 7klv zrun vwduwv zlwk d jhqhudo ghvfulswlrq ri wkh 6$56 &r9 9luxv dqg wkh dvvrfldwhg &29,

COVID-19 SEIR Empirical Sigmoidal ModelCreated with Mathcad 14 Math Software: Documentation, Model Creation, and Math Calculations

Mathcad Program File (COVID-19 SIR Sigmoid Model.xmcd) and Data can be found at: VXPhysics.com/COVID-19

This work was sparked by the desire to understand the basic dynamics of the COVID-19Pandemic. With the exception of the Sigmoidal Incidence Model that was created, this work ismostly a review of existing research. This is not a formal paper and attribution to sources aresketchy. Epidemiological models are commonly stochastic, diffusive-spatial, network based,

with heterogeneous sub-populations. However, the parameters of Dynamic Equation Models,such as SIR and SEIR, are more directly related to and interpretable as physical processes. The

intent of this work was to build a simple epidemiological "toy model" to estimate the periodbefore the peak infection and the total number of infected cases. The methodology employed

was, first, the application of Dynamic Deterministic Discrete SIRD and SEIR Models tocharacterize infection data from Wuhan China, USA, UK, Italy, Spain, N. Korea, NY, FL,

New Orleans. Next, a Sigmoidal Incidence Function was used to give an EmpiricalTransmission Model that closely models China's and S. Korea's Mitigation Policies. The

Levenberg-Marquardt Method was used to extract the Empirical Epidemiological Parameters ofthe Epidemic Isolation Policies that were successfully employed by China and S. Korea. Theinsights gained from analysis of these successful interventions were then used to Analyze and

Predict Results for the Mitigation Policies of the US, NY, & UK.

Table of Contents (*Page Number Description)*1 Analysis of the COV ID-19 Pandemic and Page Outline*2-3 Methodology of the Investigation and Preview: Mitigation Model Match *4 General Description of the SARS-CoV-2 Virus and Conclusions*5 Coronavirus: Factors in Spread of Epidemics*6-7 COVID-19 Epidemiology (State of Flux) and Forecasting Impact on Hospitals*8 COVID-19 Infection Cycle and the SIR Compartmental Disease Model*9-10 Deterministic Mathematical Modeling, Different Models: SIR, SEIR, SQEAIR*11 Discrete SIRD & SEIR Models and Algorithms. Analyze Typical Flu Season *12-13 SIR Model Normalized: Parameters for Flu Season 2002-2007 a 2010-2013*14 COVID-19 SIRD Data, Log Curve, Model & Predictions for Hubei, China*15-16 Mitigation: Rationale for Empirical Sigmoidal Tranmission Phases Model*17 Algorithm for Discrete SIR Transmission Sigmoidal Transition Model: SIRM *18 Assessment of Efficacy of US Gov. Mitigation to Halt Spread*19-20 SIR Sigmoidal Transition Model Successful Fit for Hubei Data. Extract R0

*21-22 SPATIAL AGGREGATION by US States: Estimate Model Parameters*23-24 New York City and State COVID19 Cases Feb 15 - April*25 Project Outcome New York Epidemic: No Mitigation-Worst Case Scenarios*26 Mitigation Modeling for NY: No Mitigation vs. Mitigation Scenarios*27 USA Data Directly From Johns Hopkins*28 Extract SIR Parameters from US Data, Apply IHME Projections, Project Deaths*29 Data on USA Total Confirmed Deaths to March 19*30-31 Florida COVID19 Cases *32 New Orleans COVID19 Cases*33-34 UK COVID19 Cases, Extract UK SIR Parameters*35-36 Italy - Spain. S. Korea COVID19 Cases *37 Signoidal Model: Extract Mitigation Parameters for S. Korea*38-39 World Cases and Deaths/Million *40 Bibliography

Tom KotowskiVXPhysics.comApril 20, 2020

Page 2: Mathcad - COVID-19 SEIR & SIR Sigmoidal Models2€¦ · 0hwkrgrorj\ ri wklv ,qyhvwljdwlrq 7klv zrun vwduwv zlwk d jhqhudo ghvfulswlrq ri wkh 6$56 &r9 9luxv dqg wkh dvvrfldwhg &29,

Methodology of this Investigation

This work starts with a general description of the SARS-CoV-2 Virus and the associated COVID-19disease. Its Epidemiology (Transmission and Model Parameters), Infection Cycle, Risks, and Estimate ofRequired Hospital Services are investigated.

Next the SIRD and SEIRD Mathematical Models and their parameters, and general epidemiologicalbehavior are discussed. Also, the basic assumptions of the SIRD/SEIR models are examined. The model isdemonstrated by its application to a typical flu season. The detailed characteristics of a typical flu season andthe range of its parameters are discussed. We will use whichever model (SEIR or SIR) works best.

COVID-19 outbreaks in Wuhan China, NY, USA, FL, New Orleans, UK, Italy, Spain, N. Korea, and theWorld are presented. This was done in the following fashion. First, data on the total infections for each regionwere obtained. The rate of change, days to double, and a fit to the data with two types of exponentialcurves was made. The data was plotted with two types of exponential curve fits and with the number of newcases of infection. The infection data on a semi-log plot to observe its exponential behavior were also plotted.

A Sigmoidal Transition Model was created to model Mitigation by Governmental Intervention.

An attempt was made to do a spatial analysis by looking at the model behavior in all 50 states. Estimates ofthe Reproduction Number, R0, for each of the states were made. However, keeping up with, aggregating,

updating, processing, and doing a spatial analysis in a timely manner was beyond the time and scope of thisbasic investigation.

A deeper investigation on the outbreaks in Wuhan, NY, USA, and the UK was made. For these locations,the parameters for the SIRD infection model were abstracted. Using the SIRD model and abstractedparameters, observations on how well the model compares with the infection data, and the projectedbehavior/growth of the epidemic was made. The model gave Projected Numbers of the Susceptibles,Infections, Recovered, and Fatalities.

The inital projected numbers for infections and deaths were horrendous. Projections gave 2 milliondeaths in the US. These initial models agreed with the assessment of other earlier epidemiological models.Clearly, governmental intervention was needed to reduce these epidemic numbers.

Based on interventions in Wuhan China, a Sigmoidal Model was created for this investigation to reflect theeffects of the Wuhan intervention. This intervention model was then applied to our SIRD epidemiologicalmodel. A preview of the model results/plot is shown at the bottom of the following page. This InterventionModel gives an Reff after intervention of

COVID-19 Situation (April 8, 2020) of the World at LargeEpidemiological Mathematical Models are important. They are based on our knowledge of the dynamics ofepidemics. Often, there are phenomena that can only be comprehended with math models. Generalizationmodels have been used to estimate the demand for hospital beds, ICU days, number of ventilatores and also,importantly, the need and required extent of governmental intervention. To date, the number of infections anddeaths are far below the projections of earlier models. A Model is only as good as the assumptions put intothe Model. Clearly, there are phenomena of the COVID-19 epidemic that are as yet not understood.Models are constantly being updated and improved.

The story of the COVID-19 outbreak is ongoing. Our knowledge of this novel virus, is in a state of flux.Every week seems to bring additional important medical and epidemiological information.

Page 3: Mathcad - COVID-19 SEIR & SIR Sigmoidal Models2€¦ · 0hwkrgrorj\ ri wklv ,qyhvwljdwlrq 7klv zrun vwduwv zlwk d jhqhudo ghvfulswlrq ri wkh 6$56 &r9 9luxv dqg wkh dvvrfldwhg &29,

Preview: Mitigation Models for China, S. Korea, USA Shows Daily Match Between Infection Data (Blue ▲ ) vs Sigmoidal Model (Blue Line)

See Pages 18, 36, and 27 for the Methodology to Extract Mitigation Model Parameters

What is the predicted infection rate after the April 17th peak? We see that in 30 days, a month later, May 19th,the number of infections drops down to 11% of the peak, but this is a very very big number.

Page 4: Mathcad - COVID-19 SEIR & SIR Sigmoidal Models2€¦ · 0hwkrgrorj\ ri wklv ,qyhvwljdwlrq 7klv zrun vwduwv zlwk d jhqhudo ghvfulswlrq ri wkh 6$56 &r9 9luxv dqg wkh dvvrfldwhg &29,

General Description of Virus and Conclusions Some Characteristics of the COVID-19 Disease

The SARS-CoV-2 Virus is an enveloped, single-standed RNA virus. It is commonly referred to by the name ofthe disease it causes, which is COVID-19.The later name was choosen by the WHO for PR purposes. This virus was first discovered in China byobserving that hospital patients were showing a very virulent type of pneumonia. Currently, according to the CDC, the incubation period for the novel coronavirus is somewhere between 2 to10 days after exposure, mean. More than 97 percent of people who contract SARS-CoV-2 showsymptoms within 11.5 days of exposure. The average incubation period seems to be around 5.2 days.For many people, COVID-19 symptoms start as mild symptoms and gradually get worse over a few days.Transmission occurs primarily: via respiratory droplets from coughs and sneezes within a range of about 6feet (1.8 m). Indirect contact via contaminated surfaces is another possible cause of infection. Preliminaryresearch indicates that the virus may remain viable on plastic and steel for up to three days, but does notsurvive on cardboard for more than one day or on copper for more than four hours. Models show that 1/3each of transmission occurs in household, schools-workplaces, and in the community.

Additional Data on Model Parameters:The paper: "The effect of travel restrictions on the spread of the 2019 novel coronavirus outbreak", by Ira M.Longini and Alessandro Vespignani give the following data for the World Pandemic. A generation time (Tg )

ranging from 6 to 11 days based on plausible ranges from the SARS epidemic and recent analysis of COVID-19data. The results for generation time Tg = 7.5 days. The obtained posterior distribution provides an average

reproductive number R0 = 2.57, and a doubling time measured at Td = 4.2 days.

They reported that that the median ascertainment rate of detecting an infected individual in Mainland China is equalto 24.4%. In other words, the modeling results suggest that in Mainland China only one out of four cases aredetected and confirmed. Studies in Germany suggest only 6% of cases are reported. A recent study in the US,suggests that as few as 2% of infections are confirmed. Reported Cases, at best, are only 10% of Actual Number.

Let Q equal the % of the Population that, if Infected, could be Reportable Cases. Q 10 %:=

Allowing for a 7 day incubation period, Baysian Spectral Fusion Analysis of 5 countries shows wavelengths of 2.7,4.1, and 6.7 days. After lockdown the 2.7 and 4.1 day cycles are surpressed, suggesting that they are related to virusdynamics. See: Rapidly evaluating lockdown strategies using spectral analysis, Nason.

In reality, model parameters, such as R0, have different types of statistical distributions. The generation interval

distribution for an infectious disease is the probability distribution function for the time from infection of an individual tothe infection of a secondary case by that individual. Generation interval distributions uniquely characterize therelationship between the reproductive number R and the growth rate r. Different infectious diseases have at least 5different possible distributions. See: How generation intervals shape the relationship between growth rates andreproductive numbers, Wallinga.

The Susceptible, Infected, Recovered (SIR) ModelCOVID-19 has a latent or incubation period, during which the individual is said to be infected but not infectious.Members of this population in this latent stage are labelled as Exposed (but not infectious). The model with thisExposed group is the Susceptible, Exposed, Infected, Recovered, SEIR Model. However, for this study, given thedecision to use a deterministic discrete differential equation model and the limited amount of data, the model thatmost successfully matched the published Confirmed Infectious Case Data is the SIR model.

We will use an SIR Model for Wuhan and the USA. This is shown two pages after this. For the WuhanVirus , we found that the Basic Reproductive Ratio, R0, was 2.74 and that the time to recover is 41 days, days to

double of 3.62==>Exponential Transmission. During the initial exponential phase of growth, the USA datagave the number of days for infections to double as 2.309 and the Basic Reproductive Ratio as 2.74.

Epidemic Spread: Factors, Herd Immunity, Prognosis

Page 5: Mathcad - COVID-19 SEIR & SIR Sigmoidal Models2€¦ · 0hwkrgrorj\ ri wklv ,qyhvwljdwlrq 7klv zrun vwduwv zlwk d jhqhudo ghvfulswlrq ri wkh 6$56 &r9 9luxv dqg wkh dvvrfldwhg &29,

Epidemic Spread: Factors, Herd Immunity, Prognosis Infectious Disease Dynamics, Derek Cummings

• The number of individuals infected by each infectious case. (R0 )• The time it takes between when a case is infected and when that case infects other people.

Difference in the Serial Interval The average length of time between when a case is infected and when s/he infects others, This serial interval is different for these two pathogens

– Influenza ~2.5 days– Measles ~ 18 days

A Third Factor, θ• Defined as the proportion of transmission occurring prior to symptoms• Measure of how much shorter latent period is than incubation period• Proposed by Fraser and colleagues

Reproduction Ratio, R0: Example - Sexually Transmitted Infection R0 = α x c x β

β is the proportion of contacts that become infected c is the number of contacts per day β is the duration of infectiousness

Estimates of R0 of several pathogensMeasles – 12Pertussis – 15Chicken Pox – 9Diphtheria – 4Schistosoma japonicum – 3

Death Rate, ExtentFlu: 0.1%, 8%/yearCOVID-19: 0.5%, 70%

Scarlet Fever – 6Mumps – 10Rubella – 8Polio – 6

Smallpox – 6Influenza – 2HIV – 5Dengue – 4

Could also use a proxy for infectiousness, viral load ==>in infectiousness, viral load in oropharyngeal secretions, for example

Targeted interventions to stop transmission depend upon being able to identify cases• Isolation, quarantine, screening travelers,prophylactic use drugs all depend on identifying people before transmit

• Delays dramatically reduce effectiveness – if your interventions don’t identify people until after they’ve done the bulk of their transmission, they don’t work• The serial interval identifies the time-scale of response • How quickly can we identify cases?

The Critical Immunization or Infection Rate to Eradicate a Disease ( Herd Immunity % )

Herd Immunity %Measles and whooping cough, 90-95%chicken pox and mumps 85-90% coverage polio and scarlet fever 82-97% coveragesmallpox 70-80% coverage

HI R0( ) 100 11

R0-

:=HI 2.8( ) 64.286=

US Herd Immunity: This projects to 200 million infected in USA.

PROGNOSIS:When social isolation ends, the epidemic will start up again. Based on our current knowledge of the virus, without social isolation or a vaccine, the number of potential infections in USA is still 200 million. It is still very infectious. It will probably be two years before the epidemic is under control in the US.

COVID-19 Herd Immunity %

Page 6: Mathcad - COVID-19 SEIR & SIR Sigmoidal Models2€¦ · 0hwkrgrorj\ ri wklv ,qyhvwljdwlrq 7klv zrun vwduwv zlwk d jhqhudo ghvfulswlrq ri wkh 6$56 &r9 9luxv dqg wkh dvvrfldwhg &29,

COVID-19 Epidemiology State of Flux (Time Dependent)

Perspective on Number of COVID-19 Deaths in USACategories of Annual Deaths in the US

2,813,503 registered deaths (8,000/year) in the United States in 2017

Heart Disease: 647,000/ 23.5%Cancer: 99,108/ 21.3%Unintentional injuries: 169,936/ 6%Chronic lower respiratory disease: 160,201/ 5.7%Stroke and cerebrovascular diseases: 146,383/ 5.2%

Alzheimer's disease: 121,404/ 4.3%Diabetes: 83,564/ 3% COVID-19: 82,000/ 3%Influenza and pneumonia: 55,672/ 2%Suicide: 47,173

April 7, 2020: IHME Revised Estimate of Number of COVID-19 US Deaths:82,000 deaths from the first wave of infection, although the number could range from 49,000 to 136,000.

Old February 2020: AHA COVID-19 Best Guess Epidemiology 2020 Webinar of the American Hospital Association (AHA)

* R0 = 2.5; Doubling time 7-10 days Community epidemic wave 2 months

* Community attack rate = 30-40% US: 96 million cases (27% Population)* Cases requiring hospitalization = 5% US: 4.8 million admissions* Cases requiring ICU care = 1-2% US: 1.9 million ICU* Cases requiring ventilatory support = 1% US: 1 PPV* CFR = 0.5% US: 480,000 deaths

Study: Nowcasting and Forecasting the International Spread of COVID-19 Nowcasting and forecasting the potential domestic and international spread of the 2019-nCoV outbreak originating in Wuhan, China: a modeling study, Wu, Leung, January 31, 2020

Findings:In our baseline scenario, we estimated that the basic reproductive number for 2019-nCoV was2.68 Confidence Level (95% CL 2·47–2.86) and that 75,815 individuals (95% CL 37 304–130 330)have been infected in Wuhan as of Jan 25, 2020. The epidemic doubling time was 6.4 days (95% CL5·8–7·1). We estimated that in the baseline scenario, Chongqing, Beijing, Shanghai, and Shenzhen hadimported 461 (95% CL 227–805), 113 (57–193), 98 (49–168), 111 (56–191), and 80 (40–139)infections from Wuhan, respectively. If the transmissibility of 2019-nCoV were similar everywheredomestically and over time, we inferred that epidemics are already growing exponentially inmultiple major cities of China with a lag time behind the Wuhan outbreak of about 1–2 weeks.Nowcasting and forecasting the potential domestic and international spread of the 2019-nCoV outbreak originating in Wuhan, China: a modeling study, Wu, Leung, January 31, 2020

Transmission occurs primarily via respiratory droplets from coughs and sneezes within a range ofabout 6 feet (1.8 m). Indirect contact via contaminated surfaces is another possible cause of infection.Preliminary research indicates that the virus may remain viable on plastic and steel for up to three days,but does not survive on cardboard for more than one day or on copper for more than four hours

The incubation period of COVID-19 can last for 2 weeks or longer.Incubation rate σ, is the rate of latent individuals becoming infectious. Given the known average duration of incubation Y, σ = 1/Y. The average incubation duration us 5.2 days.

Page 7: Mathcad - COVID-19 SEIR & SIR Sigmoidal Models2€¦ · 0hwkrgrorj\ ri wklv ,qyhvwljdwlrq 7klv zrun vwduwv zlwk d jhqhudo ghvfulswlrq ri wkh 6$56 &r9 9luxv dqg wkh dvvrfldwhg &29,

H t α, β, p, ( )p

2erfc α t β-( )[ ]

2 := ICU t α, β, p, ( )p

2erfc α t β-( )[ ]

2 :=

Where the function Y is the Gaussian error function (written explicitly above), p controls the maximum death rate at each location,

t is the time since death rate exceeded 1e-15, ß (beta) is location-specific inflection point (time at which rate of increase of the death rate is maximum), and α (alpha) is a location-specific growth parameter. Other sigmoidal functional forms (alternatives to Y) were considered but did not fit the data as well. Data were fitto the log of the death rate in the available data, using an optimization framework described in the appendix.

The date of peak excess demand by state varies from the second week of April through May. We estimate thatthere will be a total of 81,114 (95% UI 38,242 to 162,106) deaths from COVID-19 over the next 4 months inthe US. Deaths from COVID-19 are estimated to drop below 10 deaths per day between May 31 and June 6. Given current estimates of the basic reproductive rate (the number of cases caused by each case in a susceptiblepopulation), 25% to 70% of the population will eventually become infected. Based on reported case-fatalityrates, these projections imply that there would be millions of deaths in the United States due to COVID-19.

A covariate of days with expected exponential growth in the cumulative death rate was created using informationon the number of days after the death rate exceeded 0.31 per million to the day when 4 different socialdistancing measures were mandated

0 2 4 6 8 10 12 14 16 18 20 22 240

1 104

2 104

3 104

4 104

5 104

6 104

7 104

8 104

9 104

1 105

COVID-19 Death Curves - Hospital and ICU Beds

Weeks

Pre

vale

nce

H t 0.2, 11, 100000, ( )

ICU t 0.2, 11, 50000, ( )

t

Excess demand for services above capacity available currently

IHME COVID-19 health service utilization forecasting team Forecasting COVID-19 Impact on Hospital bed-days, ICU-days,

Ventilator-days and deaths by US state in the next 4 months

Estimate for Required Hospital Needs Generated April 2, 2020 Goal: Develop a statistical model forecasting deaths and hospital utilization against capacity by state for the US over thenext 4 months.

Statistical model for the cumulative death rate. We developed a curve-fitting tool to fit a nonlinear mixed effects model to the available admin cumulative deathdata. The cumulative death rate for each location is assumed to follow a parametrized Gaussian error function:

Page 8: Mathcad - COVID-19 SEIR & SIR Sigmoidal Models2€¦ · 0hwkrgrorj\ ri wklv ,qyhvwljdwlrq 7klv zrun vwduwv zlwk d jhqhudo ghvfulswlrq ri wkh 6$56 &r9 9luxv dqg wkh dvvrfldwhg &29,

SIR Compartmental Disease Transmission Model: Susceptible, Infected, Removed Data-Based Analysis, Modeling and Forecasting of the COVID-19 outbreakhttps://www.medrxiv.org/content/10.1101/2020.02.11.20022186v4.full.pdf - March 5, 2020

Phenomena involving rates of change often can only be comprehended through Mathematical Models. The oldest and most common Epidemiological Model is the SIRD model, consisting of a set of four couplednonlinear differential equations, which assigns every person in a population to be in one of 4 conditions orcategories: S = Susceptible to becoming infected. S0, Initial population (initial # of people who are susceptible),

I = Infected through contact with someone already infected. I0, Initial number of infected people

R = Removed or Removal Group, either in isolation or dead, or no longer sick or infected. D = Fatalities

Through time a person may move from being Susceptible to Infected to Removed, so that the number of peoplein each category changes, but the total of S + I + R remains some constant, N.

This is a Compartmental Model, with S,I, R, and D being compartments of subpopulations. Every person starts offin a given compartment and may then, in time, move to another. Graphically the compartment model looks like theplots starting on page 11, with the rates of movement between the compartments designated by the parameters: α,β, and γ.

This model assumes that once someone recovers they are immune and can’t be infected again. The model alsoassumes that a disease is passed from person to person. The SIRD model can’t be used for diseases that spread byother modalities, such as eating exotic animals or being bitten by insects.

REMEMBER: A Model is only as good as the assumptions put into the Model.

Epidemiological Parameters (Different Author May Use Different Symbols)Infection rate, β: Transmission rate, rate (number per day) that susceptible people become infectedRecovery rate, γ: Recovery rate (number per day) that infected people recover. Portion - Removal Rate CDC - Flu in USA: 36 million flu illnesses, 370,000 hospitalizations & 22,000 deaths.

St

St 1-

β

NS

t 1- It 1--= β the infection rate = Avg. # contacts per person per

unit time x probability of Transmission in a contact.

γ the recovery rate from Infectious to Removed class.δ is the mortality rate.

It

It 1-

β

NS

t 1- It 1-+ β I

t 1-- γ It 1--=

Rt

Rt 1- γ I

t 1-+= Dt

Dt 1- δ I

n 1-+=

SEIR Model (E is Exposed) Infection Cycle Outcomes MedCram: COVID Pandemic Update 49: New Data COVID-19 vs Other Viral Infections (Ventilator Outcomes)

30% of all transmissionsoccur from symptomatic or minimally symptomatic carriers.

Note: A SEIR model does not give agood fit for Confirmed Infection Case data, which manifests onlywhen the carrier is symptomatic.

Mathematical modeling of infectious disease

Discrete SIRD Compartmental Model - Epidemic Outbreak Equations

Page 9: Mathcad - COVID-19 SEIR & SIR Sigmoidal Models2€¦ · 0hwkrgrorj\ ri wklv ,qyhvwljdwlrq 7klv zrun vwduwv zlwk d jhqhudo ghvfulswlrq ri wkh 6$56 &r9 9luxv dqg wkh dvvrfldwhg &29,

Mathematical modeling of infectious diseasehttps://en.wikipedia.org/wiki/Mathematical_modeling_of_infectious_disease

Bio-mathematical deterministic treatment of the SIR or SEIR model

The dynamics of an epidemic, for example the flu, are often much faster thanthe dynamics of birth and death, therefore, birth and death are often omitted in simplecompartmental models. The SIR system without so-called vital dynamics (birth anddeath, sometimes called demography) described above can be expressed by the followingset of ordinary differential equations:

This system of ordinary differential equations is non-linear, and does not admit ageneric analytic solution. Nevertheless, significant results can be derived analytically,and with Monte Carlo methods, such as the Gillespie algorithm.

I t( ) I0 eβ γ-( ) t

=

Note: Authors frequently define the symbols α, β, γ, δ,ρ differently. Must look at the equations and context.

NOTE: Since the population size, N, is constant,N = S + I + R these constraints can be used to N = S + E + I + R eliminate the equation for R in the Models.

• The terms dS/dt , dI/dt , dR/dt in the Nonlinear Differential Equationsindicate the rates of change of the susceptible population size, the infectedpopulation size and the Removed population size, respectively.• The term β is the transmission rate and β ~ 2.8 *1/10 days =0.199• The rates are nonlinear, determined by the law of mass action, rate ~ β I S• 1/γ is the period when infected people are contagious.• High value of β means the epidemic will spread quickly.• γ recovery rate (inverse of the number of days until recovery (1/β)• The median number of days until recovery is about 6.8 days: γ = 1/6.8• High value of γ means a person will remain infected for more days• The basic reproduction number, R0 = β/γ

• Also, as can be seen from below, from the differential equations it can be shown that S + I + R is constant and equals the total population.

Page 10: Mathcad - COVID-19 SEIR & SIR Sigmoidal Models2€¦ · 0hwkrgrorj\ ri wklv ,qyhvwljdwlrq 7klv zrun vwduwv zlwk d jhqhudo ghvfulswlrq ri wkh 6$56 &r9 9luxv dqg wkh dvvrfldwhg &29,

Some Different Possible Compartmental Models

Classical SIR Model of an Epidemic: S usceptible, Infectious, and Recovered

S I R

S E I R

Here is an Extension of the SEIR Model, the SQEAIRD Model Proposed by Jai for Modeling the Wuhan COVID-19 Epidemic Control Policy

Modeling the Control of COVID-19: Impact of Policy Interventions and Meteorological Factors

This Model was extended to include the influence of Quarantine and Non-Infectious Asymptomatic Hosts , A.A more comprehensive model would also include Infections by Asymptomatic Hosts.

Classical SEIR Model: S usceptible, Exposed (Latent), Infectious, Recovered

Page 11: Mathcad - COVID-19 SEIR & SIR Sigmoidal Models2€¦ · 0hwkrgrorj\ ri wklv ,qyhvwljdwlrq 7klv zrun vwduwv zlwk d jhqhudo ghvfulswlrq ri wkh 6$56 &r9 9luxv dqg wkh dvvrfldwhg &29,

R 0 = β/γ

St

St 1-

β

NS

t 1- It 1--= I

tIt 1-

β

NS

t 1- It 1-+ β I

t 1-- γ It 1--= R

tR

t 1- γ It 1-+= D

tδ I

n 1-=

Algorithms to Calculate the Values of S, I, R, D and S, E, I, R from Model Parameters Governmental Mitigation is not Modeled

R S E- I-=

β 0.2:= γ 0.10:=1

γ10= δ 0.005:= R0

β

γ δ+:= R0 1.905=Typical Flu Outbreak Parameters:

A typical flu season lasts about 35 weeks (245 days). Week 1 generally is the first week of October and lastsuntil week 35 or the end of May. See plots of a typical flu season on the following page.

The basic reproductive ratio, R0 is defined by epidemiologists as "R0" represents the average number of

secondary cases that result from the introduction of a single infectious case in a totally susceptible populationduring the infectiousness period". The product of the infection rate and mean infection duration.

As such R0 can tell us about the initial increase of number of the those infected/carrier over a generation.

The Flu Season parameters are β = 2 and γ = 1.4. Sfinal is about 0.52 and Infected peaks at 0.024.

If S0 < β/λ then Infections decrease monotonically to zero - this designates the season as nonepidemic. Assuming that β and γ have an exponential distribution then the mean values are given by:

The number of days it takes infections to double, t.2x t2x 5=

The number of days it takes to recover, trec trec1

γ:= trec 10=

Given the above relative periods, it is clear that the number of infections quickly outnumbers the number of recoveries.

t2x1

β:=

Let's look at the example of a typical flu season virus outbreak, α, β, γ, R0

Discrete SIRD and SEIR Models - Infectious Disease Outbreak Equations The number of people at any day, n, who are:

# Susceptible-S Number (#) Infected - I # Removed - R # Dead - D

SIRD S0 I0, β, γ, δ, N, ( ) S0

S0

I0

I0

D0

R0

0

M0 0, M

0 1, M0 2, M

0 3, ( ) S0 I0 0 0( )

Sn 1+ S

n

Sn

S0β I

n-

In 1+ I

n

Sn

S0β I

n+ I

nγ-

Rn 1+ R

nInγ+

Dn 1+ I

Mn 1+ 0, S

n 1+

Mn 1+ 1, I

n 1+

Mn 1+ 2, R

n 1+

Mn 1+ 3, D

n 1+

n 0 N..for

M

:=SEIR S0 I0, E0, β, ε, γ, N, ( ) S

0S0

I0

I0

E0

E0

δ 0.005

R0

0

M0 0, M

0 1, M0 2, ( ) S0 I0 E

0( )

Sn 1+ S

n

Sn

S0β I

n-

En 1+ E

nε E

n-

Sn

S0β I

n+

In 1+ I

nε E

n+ γ I

n-

Mn 1+ 0, S

n 1+

Mn 1+ 1, I

n 1+

Mn 1+ 2, E

n 1+

n 0 N..for

M

:=

Page 12: Mathcad - COVID-19 SEIR & SIR Sigmoidal Models2€¦ · 0hwkrgrorj\ ri wklv ,qyhvwljdwlrq 7klv zrun vwduwv zlwk d jhqhudo ghvfulswlrq ri wkh 6$56 &r9 9luxv dqg wkh dvvrfldwhg &29,

SIRD S0 I0, β, γ, δ, N, ( ) FluSIRD SIRD 999 1, 0.29, 0.15, 0.01, 130, ( ):=

Susceptible-Sus, Infected - Inf, Removed - Rec Dead - D

Sus FluSIRD 0 := Inf FluSIRD 1

:= Rec FluSIRD 2 := Ded FluSIRD 3

:=

The Sum of the Four SIRD Components is Constant = Initial Susceptible: S0

j 1 120..:= Total0

1000:= Totalj

Susj

Infj

+ Recj

+ Dedj

+:=

Below is a model for a typical flu virus. Because of mutation, new strains of influenza makemost people susceptible (Sn, α= 29%) at the beginning of an outbreak. Interestingly, it showsthat the number of infected people (blue curves) has reached a peak after about 54 days (71/2 weeks) and then falls to after 100-120 days (3 - 4 months).

This demonstrates that the SIRD model is a good representation for a flu season.

Note that there two different sized scales, the scale shown at the left is larger than the one at the right.

The blue curve for infected is shown on both scales, the top curve is used with the scale on the right.The black curve for the number of deaths uses the scale on the right only.

R0_Fluβ δ-

γ:= R0_Flu

0.29 0.01-

0.15:= R0_Flu 1.867=

0 10 20 30 40 50 60 70 80 90 100 110 1200

100

200

300

400

500

600

700

800

900

1000

0

50

100

150

200

Flu: Susceptible (Red), Infected (Blue), Recovered (Green), Dead (Black)

Number of Days

Susn

Infn

Recn

Infn

Dedn

n

From Flu: Notice the number of infections drops off with the flu season.The number of those that are susceptible drops below new infections

SIR Model Normalized: Flu Season 2002-2007 and 2010-2013

SID (No Exposed Model) Parameters for Typical F lu Virus

Page 13: Mathcad - COVID-19 SEIR & SIR Sigmoidal Models2€¦ · 0hwkrgrorj\ ri wklv ,qyhvwljdwlrq 7klv zrun vwduwv zlwk d jhqhudo ghvfulswlrq ri wkh 6$56 &r9 9luxv dqg wkh dvvrfldwhg &29,

SIR Model Normalized: Flu Season 2002-2007 and 2010-2013

Parameters and graphs are from the paper: "Forecasting seasonal influenza with a state-space SIR model", 2017

SIRD(S0,I0,β,γ,δ,N) FluSIRD SIRD 0.9 0.0002, 0.2, 0.14, 0.01, 240, ( ):=

Susceptible-Sus, Infected - Inf, Removed - Rec Dead - D

Sus FluSIRD 0 := Inf FluSIRD 1

:= Rec FluSIRD 2 := Ded FluSIRD 3

:=

The Sum of Each Row of the 4 Components = S0 j 1 120..:= Total

01:= Total

jSus

jInf

j+ Rec

j+ Ded

j+:=

Plots From : " Forecasting seasonal influenza with a state-space SIR model ", Osthus

0 40 80 120 160 200 2400

0.1

0.2

0.3

0.4

0.5

0.6

0.7

0.8

0.9

1

0

0.05

0.1

0.15

0.2

Flu: Susceptible

Number of Days

Susn

Infn

Recn

Infn

Dedn

n

Plot of Fraction of Infections/S0 for Flu seasons 2002-2007 and 2010-2013

125

717.857=Season: 35(Wks) x 7 = 245 days

NOTE: In the below Osthus paper, R0 represents the proportion of the population in the recovered

compartment at time t = 0 for the SIR model and does not represent the “basic reproductive number”

Simulated SIR Curve with S0 = 0.9, I0 = 0.0002, R0 = 0.0998, α = 2, and β = 1.4

Sus (Red), Infected (Blue), Removed (Green), Dead (Black)

Page 14: Mathcad - COVID-19 SEIR & SIR Sigmoidal Models2€¦ · 0hwkrgrorj\ ri wklv ,qyhvwljdwlrq 7klv zrun vwduwv zlwk d jhqhudo ghvfulswlrq ri wkh 6$56 &r9 9luxv dqg wkh dvvrfldwhg &29,

COVID-19 SIRD Data, Model & Predictions Hubei Province, ChinaAn outbreak of “pneumonia of unknown etiology” in Wuhan, Hubei Province, China in early December2019 has spiraled into an epidemic. The virus is SARS-CoV-2, a coronavirus.Simulations until the 29th of February of the cumulative number of Removed as obtained using the SIRDmodel. Dots correspond to the number of confirmed cases from the 16th of January to the 10th ofFebruary. The initial date of the simulations was the 16th of November with one infected, zero Removedand zero deaths. Solid lines correspond to the dynamics obtained using the estimated expected values ofthe epidemiological parameters

S0 = 59 x 106, β = 0.193, γ = 0.063/day , δ = 0.01;

Data from Hubei Province China from 1-22-2020 to 3-12-2020 - Population 58.5 Million

China READPRN "OWiD China 19 Jan - April 12.txt"( ):=Hubei READPRN "K-COVID19-Hubei-Complete.txt"( ):= HPop 58.5 10

6:= rows Hubei( ) 51=

Data from Kaggle https://www.kaggle.com/kimjihoo/coronavirusdataset

R0β

γ δ+:= R0 2.644=

0 5 10 15 20 25 30 35 40 45 500

50001 10

41.5 10

42 10

42.5 10

43 10

43.5 10

44 10

44.5 10

45 10

45.5 10

46 10

4

0

20

40

60

SIR Model: Sus (Red), Infected (Blue), Recovered (Green), Dead (Black)

Number of Days

Susn

Infn

Recn

Infn

Dedn

n

COVID Data: HInf Hubei 3 := HDed Hubei 4

:= HRec Hubei 5 := HInf

5067781=

0 5 10 15 20 25 30 35 40 45 500

50001 10

41.5 10

42 10

42.5 10

43 10

43.5 10

44 10

44.5 10

45 10

45.5 10

46 10

46.5 10

47 10

4

0

1000

2000

3000

4000

Hubei COVID-19: Infected (Blue), Recovered (Green), Dead (Black)

Number of Days

HInfn

HInfn

HRecn

HDedn

n

SIRD(S0,I0,β,γ,δ,N ) W19 SIRD 59 106

444, 0.193, 0.063, 0.01, 40, ( ):=

Susceptible-Sus, Infected - Inf, Removed - Rec Dead - D

Model Results: Sus W19 0 := Inf W19 1

:= Rec W19 2 := Ded W19 3

:=

Inf40

58845.643= β 0.193:= γ 0.063:= δ 0.01:=

Infected Dead Removed

Calculate SIRD Model Values for Wuhan of COVID-19 to Feb 10, 2020

Page 15: Mathcad - COVID-19 SEIR & SIR Sigmoidal Models2€¦ · 0hwkrgrorj\ ri wklv ,qyhvwljdwlrq 7klv zrun vwduwv zlwk d jhqhudo ghvfulswlrq ri wkh 6$56 &r9 9luxv dqg wkh dvvrfldwhg &29,

Mitigation: Rationale for Phase Transition, Segmented Terminate, FunctionThe spread of a disease is a physical process with many different contributing factors. Some examples of differenttypes of physical growth are found in processes such as: the law of mass action, growth in a petri dish, cropgrowth, population growth, nuclear reactions, and current saturation in an a MOSFet transistor. As ageneralization, there are three approximate phases of growth: exponential growth, linear transition, and saturation.Saturation occurs when a growth system runs out of finite buildable land area for the growth of cities. Extendedgrowth has occurred for 50 years in the semiconductor industry. This has been fueled by extensive research whichresulted in extended sequences of sigmoidal growths of one technology succeeded by a new one.

Different researchers have added their own wrinkles to functional growth such as asymmetrical growth, aninflection point, and application of limits/bounds through integration. There is a plethora of functional growth forms:sigmoidal, logistic growth, beta function, expolinear, and eponymous functions such as: Gompertz, Richards,Weibull, and Goudriaan. More abstract formulations such as Fermi-Dirac or Bose distributions, and a host ofstatistical distributions and curve fitting formulations. There are a variety of different approaches: deterministic,stochastic, Markov Chain, numerical, discrete, linearization, network theory, engineering solutions, and approachessuch as control theory. Recently, there has been an explosion and spectacular accomplishments in the application ofneural networks and big data techniques to challenging problems. Problems can also be crunched with modelingpackages such as COMSOL Multiphysics, SPSS, SAS, R, Stata, and so on.

Modeling Mitigation - What to do? We will use an amalgamation of the two models. First combining our dataof the daily growth of the initial number (initial exponential growth) of total confirmed cases in the US. Secondapplying the known range of R0 values for COVID-19 dataset (refects their mitigation work) from Wuhan. Thereis a caveat to this data. The epidemic in Wuhan was mitigated by action of an authoritarian government. Theyclosed roads, locked people in rooms, totally shut down events, had people and healthcare workers with access toan inadequate supply of masks and respirators, built hospitals in two weeks, and had policemen and dronespatrolling the streets arresting those who did not comply. These are steps that cannot be strictly enforced in ademocratic society. The resultant low Mitigation Rmit values achievable in an autocratic government are notachievable in a democratic society. Also our concern for the economic and business life of our citizens imposeslimits on extremes and duration of mitigation measures.

The Bottom Line: What is a reasonable and tractable methodology that can be used to transition from exponential to mitigation casemodels? As noted, there are three approximate phases of growth: exponential growth, linear transition, andsaturation. The initial phase of exponential growth needs to transition, to lower Rmit via a viable epidemiologicalmodel constrained by knowledge of the Range in Values of R0. (R0 is a viable parameter because it has an

epidemiological interpretation.) The bottom line is: What is a good way to transition between growth phases?

Einstein espoused a principle for the construction of theories: “A scientific theory should be as simple aspossible,but no simpler”. We will apply this principle of parsimony.. We will transition from the large Reffectivevalue extracted from the initial exponential growth data coupled through a linear region via a decreasing sigmoidalcurve to the region of a smaller overall average mitigation Rmit value. A sigmoidal curve has some nice features

such as a smooth transistions and a zero slope at the ends of the phases. We use the average value of R0 (includes

the results of their mitigation policy) calculated for the Wuhan epidemic. The model is to be consistent with thedynamic epidemiological SIR model. We will now work out the details and parameters of the transition.

Sigmoidal Segmented Terminate Transition Function.Our sigmoidal transition function has two paramaters: The time of transition from the exponential growth rate to thelinear rate, tel and the time in days to transition from exponential to the saturation phase/mitigation region, t.es. Of

these, the most critical is the time for the end of exponential growth, and enforcement of mitigation policy, tel. We

will use multiples of the transition time for one doubling of infections cases, or 2.5 days to transition from theexponential phase to the R0 saturation/mitigation phase.

Page 16: Mathcad - COVID-19 SEIR & SIR Sigmoidal Models2€¦ · 0hwkrgrorj\ ri wklv ,qyhvwljdwlrq 7klv zrun vwduwv zlwk d jhqhudo ghvfulswlrq ri wkh 6$56 &r9 9luxv dqg wkh dvvrfldwhg &29,

Limits to Exponential Growth: The Sigmoidal Transition FunctionThe Transmission Rate, β, for Infectious Diseases generally changes with the spread of an epidemic.Some different possible ways in which the Transmission Rate can change are:(1) The bilinear incidence rate βSI where β is the average number of contacts per infected individual per day.(2) The standard incidence rate βSI/N(3) The Holling type incidence rate of the form βSI /(1 +α1S).

(4) The saturated incidence rate of the form βSI /(1+ α2I)

(5) The saturated incidence rate of the form βSI /(1 +α1S + a2I)

The bilinear rate is the Law of Mass Action.

2 Scenarios: Worst Case - Exponential Reff vs. G overnment Intervention/Mitigation to Lower Rmit

Consider two different scenarios for epidemic growth. A worst case model that matches the initial exponentialgrowth well, but then gives a large estimate of both infectous growth and the effective reproductive number,Reffective. Then we have a best case model where we use the mean R0 value of 2.6 (range of 2.4 to 2.8)

estimated for the Wuhan COVID-19 breakout, which was obtained with strong Government Intervention. Is there a more general way to model a transition from exponential growth to a Final Mitigation Rmit?

We will examine this question in the next section.

Below is sigmoidal transition function, β(t, tel , αm, z), to Model Mitigation βmit at time, tel

Effect of Mitigation: ReduceReff to the final value of Rmit

Rmit 2.6:= ==> β = 0.26 ses 2:= ses is the approximate period that

doubles the total number of Infections

tel, time to transition from the end of the exponential phase, Rexp to a lower Rmit, at the start of mitigation

Length of TransitionVariable z gives multiples of 2 daysof transition periods for the transition

to the final mitigation, Rmit

RSM t tel, Rexp, Rmit, z, ( ) Rexp

Rexp Rmit-

1 et ses z

1-

4 tel ses z

1-+

-

-

+

-:=

In the SIR Model. the parameter of greatest interest is the Transmission rate, β

γ= λ

1

100.1=:= ses 2:= βsm t tel, βinitial, βmit, z, ( ) βinitial

βinitial βmit-

1 et ses z

1- 4 tel ses z1-+

-

-

+

-:=

"Phase-adjusted estimation of number of CPVID 2019 cases in Wuhan, China" R_wks: Reproduction Number Data from Phase-Adjusted Rt Study of Wuhan

R_wks READPRN "Phase-adjusted estimation of Rt COVID 1-1-19 to 4-26-20 cases in Wuhan China.txt"( ):=

RR rows R_wks( ):= RR 22= wks 0 RR 1-..:=

0 2 4 6 8 10 12 14 16 18 20 220

0.5

1

1.5

2

2.5

3

3.5

4

Phase-Adjusted Rt

0 2 4 6 8 10 12 14 16 18 200

0.1

0.2

0.3

0.4

0.5

0.6

0.7

0.8

Phase Adjusted β, z = 1 2 3

Page 17: Mathcad - COVID-19 SEIR & SIR Sigmoidal Models2€¦ · 0hwkrgrorj\ ri wklv ,qyhvwljdwlrq 7klv zrun vwduwv zlwk d jhqhudo ghvfulswlrq ri wkh 6$56 &r9 9luxv dqg wkh dvvrfldwhg &29,

Below is the Discrete Algorithm for Implementing the SIR (SIRM) Sigmoidal Transition Mitigation Model

We will refer to this as the SIR Mitigation Model or SIRM

Try this value of γ = g:

SIRM S0 I0, β, βmit, tel, z, γ, N, ( ) S0

S0

I0

I0

D0

R0

0

δ 0.009

M0 0, M

0 1, M0 2, M

0 3, ( ) S0 I0 0 0( )

Sn 1+ S

n

Sn

S0βsm n tel, β, βmit, z, ( ) I

n-

In 1+ I

n

Sn

S0βsm n tel, β, βmit, z, ( ) I

n+ γ I

n-

Rn 1+ R

nInγ+

Dn 1+

Sn

S0βsm n tel, β, βmit, z, ( ) I

n δ

Mn 1+ 0, S

n 1+

Mn 1+ 1, I

n 1+

Mn 1+ 2, R

n 1+

Mn 1+ 3, D

n 1+

n 0 N..for

M

:=

Below is the Discrete Algorithm for Implementing the SEIR (SEIRM) Sigmoidal Transition Mitigation Model

The SEIRM Model is the SEIR Model with β replaced by the Sigmoidal Function: βsm n tel, β, βmit, z, ( )

Page 18: Mathcad - COVID-19 SEIR & SIR Sigmoidal Models2€¦ · 0hwkrgrorj\ ri wklv ,qyhvwljdwlrq 7klv zrun vwduwv zlwk d jhqhudo ghvfulswlrq ri wkh 6$56 &r9 9luxv dqg wkh dvvrfldwhg &29,

Assessing Efficacy of US Government Mitigation to Halt SpreadThe plots below and to the right are of the Factors that make an

infectious disease outbreak controllable, vs. curves of containment."Factors that make an Outbreak Controllable" Christophe Fraser, Steven Riley,Roy Anderson, Neil Ferguson

Data shows that strong mitigation measures are effective in halting the COVID-19 epidemic.

See page 21 for modeling to show tha mitigation can halt the epidemic.

We should be able to slow the contagion down. However, the big questions is "Do Mitigation Measures Cost the Economic Slowdown Too Much?

What are the benefits vs. the cost to our economy. Lost Jobs, Wages, Business Closures, Stock market, Debt we will incur.

From the above discussion of death rates we see that the rate is about 1.5%, relatively low.Without going into ethical considerations, avoidance of huge costs would dictate limited intervention.

Criteria for outbreak controlEach curve represents a different scenario, consisting ofa combination of mitigation interventions and a choiceof parameters. For each scenario, if a given infectiousagent is below the R0 - θ curve, the outbreak is

always controlled eventually. Above the curve,additional control measures (e.g., movementrestrictions) would be required to control spread.Black lines correspond to isolating symptomaticindividuals only. Colored lines correspond to theaddition of immediate tracing and quarantining of allcontacts of isolated symptomatic individuals. The black(isolation only) line is independent of distributionalassumptions made (low or high variance), whereas thecolored (isolation contact tracing) lines match thevariance assumptions made in Fig. 1 (red highvariance; blue low variance). The efficacy of isolationof symptomatic individuals is: 100% in A, 90% in B,and 75% in C. Contact tracing and isolation is always assumed 100%effective in the scenarios in which it is implemented(colored lines). Curves are calculated by using amathematical model of outbreak spread incorporatingquarantining and contact tracing.

θ

θ

Plots of Basic Reproduction Ratio, R0 vs. θ ,

θ is the proportion of infections that occur priorto symptoms or by asymptomatic infection. The

curves divide the upper regions of InsufficientContainment vs. lower for Controlled Outbreak.

Page 19: Mathcad - COVID-19 SEIR & SIR Sigmoidal Models2€¦ · 0hwkrgrorj\ ri wklv ,qyhvwljdwlrq 7klv zrun vwduwv zlwk d jhqhudo ghvfulswlrq ri wkh 6$56 &r9 9luxv dqg wkh dvvrfldwhg &29,

Methodology to Extract Mitigation Parameters for HubeiChina Applied Mitigation to Contain their COVID -19 Epidemic. Can we Model Mitigation?

SIRM Model Mdl β βm, te, N, ( ) SEIRM 59 106

444, β, βm, te, 1, 1

6.8, N,

:= Mod β βm, te, ( ) Mdl β βm, te, 49, ( ) 1 :=

SIRM S0 I0, β, βmit, tel, z, γ, N, ( )Initial Guess (SIRD Params): β βm te( ) 0.19 0.063 20( ):=

Use Levenberg-Marquardt Method: Minimize Least Squares Error to Residual

Define a Residual to be the difference between the current data points HInf, HRec, HDed and SIRDModel Residual β βm, te, ( ) HInf Mod β βm, te, ( )-:= R rows HInf( ):= R 51=

Condition to Minimize the Residual Least Squares Fit Error Using L-V Minerr Method

Given 0 Residual β βm, te, ( )= b bm te( ) Minerr β βm, te, ( )T:= b bm te( ) 0.686 0.156 17.703( )=

Use Minerr to Extract Optimal Parameters:

Infected HIf Mdl b bm, te, 140, ( ) 1

:= HRc Mdl b bm, te, 140, ( ) 2 := HDd HIf 0.03:=

ERR

R541.553=

HS Mdl b bm, te, 140, ( ) 0 := Rp rows HIf( ) 142=:= q 0 Rp 1-..:= HDe submatrix HDd 0, 21, 0, 0, ( ):=

Fantastic Match of SIRM Mitigation Model (Symbols) to Data (Dots)

0 10 20 30 40 50 60 70 800

1 104

2 104

3 104

4 104

5 104

6 104

7 104

0

2 104

4 104

6 104

8 104

1 105

Model vs Data - China: Infected (Blue), Recovered (Green), Dead(Black)

HInfn

HIfq

HRecn

HRcq

HDdq

HSq

HIfq

HRcq

n q, n, q, q, q, q,

δ 0.005:=

The number of days it takes infections to double, t.2x t2x 1.459=

The number of days it takes to recover, trec trec 6.8:=trec 6.8=

R0b

δ γ+:= R0δ

b

δ γ+:= R0 10.082= R0δ 10.082=Basic Reproductive Ratio

before and after Intervention:

Extracted Parameters of Hubei/Wuhan COVID-19 Epidemic

t2x1

b:=

Page 20: Mathcad - COVID-19 SEIR & SIR Sigmoidal Models2€¦ · 0hwkrgrorj\ ri wklv ,qyhvwljdwlrq 7klv zrun vwduwv zlwk d jhqhudo ghvfulswlrq ri wkh 6$56 &r9 9luxv dqg wkh dvvrfldwhg &29,

Extracting R0 from Log Plots of Hubei Infected

Inf t( ) Inf0 e

R 1-( )t

Infectious_Period

=

HInf20 submatrix HInf 0, 20, 0, 0, ( ):= k 0 20..:= Xk

k 1+:= F k( ) 400 exp 4 1-( )X

k

10

:=

0 5 10 15 20 25 30 35 40 45 5010

100

1000

1 104

1 105

Hubei COVID-19: Infected (Blue), Recovered (Green), Dead (Black)

Number of Days

F n( )

HInfn

n

Find the Slope to the Log Plot of Infected to Get an Estimate of R0m 0 15..:= HIm

mHInf

m:= Assume Infectious Period is 10 days

LM log HIm( )

:= LN log HInf( )

:= y x( ) s x int+= F x( ) x 1( )T

:=

linfit daz LM, F, ( )0.126

2.587

= slope daz LM, ( ) 0.126= slopeR 1-

Infectious_Period=

Linear Fit, LY, to Log of the Curve of Initial Infected: LY m( ) 0.126 m 2.587+:=

R0L slope Infectious_Period, ( ) slope Infectious_Period( ) 1+:= R0L 0.126 10, ( ) 2.26=

0 5 10 15 20 25 30 35 40 45 502

3

4

5

Hubei Epidemic: Estimation of Initial R0 from Slope of Log(Infected)

Number of Days

LNn

LY m( )

n m,

dazm

m:=

The semi-log plot below of Hubei Infected vs. Time reveals that after 15 days, the epidemic was no longer exponential ==> Containment was successful.

log Inf t( )( ) log I0( ) R 1-( )t

Infectious_Period+=

Page 21: Mathcad - COVID-19 SEIR & SIR Sigmoidal Models2€¦ · 0hwkrgrorj\ ri wklv ,qyhvwljdwlrq 7klv zrun vwduwv zlwk d jhqhudo ghvfulswlrq ri wkh 6$56 &r9 9luxv dqg wkh dvvrfldwhg &29,

Spatial Aggregation by State: Estimate Infect Growth Rate Downloaded Johns Hopkins Data From: March 10 to March 22 2020

S 44 50, ( ) 2.079 2.049 2.089 0.923 1.993 1.023 1.313( )=

https://github.com/CSSEGISandData/COVID-19/blob/master/csse_covid_19_data/csse_covid_19_time_series/

Read Data Files: JH_SP READPRN "JHU State-DCUSNo, Index, Confirmed Sort 0toP1 3-10- to 3-22-Pop A P-A.txt"( )T

:=

JH_s submatrix JH_SP 1, 13, 0, 50, ( ):= Data from March 10 to March 22 Sort by Number of Cases

R rows JH_s( ) 13=:= r 0 R 1-..:= z R 1-:= dayzr

r:= C cols JH_s( ) 51=:= c 0 C 1-..:=

Compare All States: Normalize Infection Curves for all States so Each has a Maximum Value of "1"

gx 1 0.3( )T

:= F x v, m, ( ) v em x

:=

JXyr c,

JH_sr c,

JH_s12 c,

:= vc

mc( ) genfit dayz JXy c

, gx, F, ( )T:= X j k, ( ) submatrix m j, k, 0, 0, ( )T

10:=

mavg mean m( ) 0.292=:= mavg 10 2.917=

NY- 1 FL-7 USA-50 CA-3 WA-0 CO-6 NJ-2

Increase Resolution: Multiply Slope of Log Number Infected vs Time Rate Values X 10

LY log JH_s( )

:= SLPc

slope dayz LY c , ( ) 10:= S j k, ( ) submatrix SLP j, k, 0, 0, ( )

T:=

State Growth Rates Estimates -2 Methods: Exponents*10 ==> X, Slopes*10 ==> S

NY WA NJ CA IL MI LA FK MA TX GE

X 0 10, ( ) 0 1 2 3 4 5 6 7 8 9 10

0 3.966 1.51 3.921 1.912 3.566 4.294 2.921 2.686 1.986 3.127 2.701=

S 0 10, ( ) 0 1 2 3 4 5 6 7 8 9 10

0 1.706 0.699 1.825 0.888 1.54 2.864 2.076 1.451 0.71 1.399 1.328=

PE TE CO WI OH NC MY CN VG MI IN

X 11 21, ( ) 0 1 2 3 4 5 6 7 8 9 10

0 2.993 3.92 2.115 3.317 3.478 3.221 2.811 2.622 2.427 4.596 3.784=

S 11 21, ( ) 0 1 2 3 4 5 6 7 8 9 10

0 1.354 1.486 1.143 1.693 1.744 1.408 1.295 1.791 1.148 2.756 1.138=

SC NV UT MN AR OR AZ MO KY IO MN

X 22 32, ( ) 0 1 2 3 4 5 6 7 8 9 10

0 2.968 2.687 2.972 2.293 3.477 1.965 3.716 3.977 2.738 2.221 2.591=

S 11 21, ( ) 0 1 2 3 4 5 6 7 8 9 10

0 1.354 1.486 1.143 1.693 1.744 1.408 1.295 1.791 1.148 2.756 1.138=

RI OK NH KN NM VT NB HA DL ID MT

X 33 43, ( ) 0 1 2 3 4 5 6 7 8 9 10

0 2.231 2.732 2.222 2.779 2.089 2.76 1.695 3.201 2.503 3.637 2.686=

S 33 43, ( ) 0 1 2 3 4 5 6 7 8 9 10

0 1.12 1.519 1.097 1.634 1.575 1.465 0.861 1.269 1.901 2.341 1.658=

ND WY AL SD WV DC USNote the Wide Range of Growth Rates

between the States. Physical/Social isolation/distancemakes some State populations less inaccessible.

X 44 50, ( ) 3.281 2.328 3.459 1.062 4.699 2.71 3.211( )=

All States: Estimate the Growth Rate from Slope of Log of the Infected vs Days Data

Increase Resolution: Multiply Infection Exponential Rate Values X 10

Row 0 JH_SP is # of State

Page 22: Mathcad - COVID-19 SEIR & SIR Sigmoidal Models2€¦ · 0hwkrgrorj\ ri wklv ,qyhvwljdwlrq 7klv zrun vwduwv zlwk d jhqhudo ghvfulswlrq ri wkh 6$56 &r9 9luxv dqg wkh dvvrfldwhg &29,

STATE PLOTS ARE IN THIS ORDER TOP TO BOTTOM WA- 1 CA-3 FL-7 USA-51 NY-0 NJ-2 LA -6

0 1 2 3 4 5 6 7 8 9 10 11 120

0.2

0.4

0.6

0.8

1

States and USA - Total CVID-19 Cases/Day

Tot

al C

ases

JXy1

JXy3

JXy7

JXy51

JXy0

JXy2

JXy6

dayz

Estimate the Basic Reproduction Ratio R0 for the Four States and USA:

Reproductive Ratio R0L Rank ( Listed in Order Below): N Y, FL, USA, CA, WA

slope dayz LY 1 , ( ) 0.07= R0L 0.164 10, ( ) 2.64=

slope dayz LY 2 , ( ) 0.183= R0L 0.092 10, ( ) 1.92=

slope dayz LY 3 , ( ) 0.089= R0L 0.155 10, ( ) 2.55=

slope dayz LY 0 , ( ) 0.171= R0L 0.074 10, ( ) 1.74=

slope dayz LY 4 , ( ) 0.154= R0L 0.128 10, ( ) 2.28=

Assumptions Used for SIR Mathematical Epidemiological Model

Refer to the SIR Model given on page 7.The Dynamics of an epidemic can be expressed by the rates of change of three Compartments or groups:Susceptibles or Healthy (S), those that are Infected (I), and those Recovered (R). The dynamics of S, I, R, can bedescribed by three non-linear deterministic differential equations.

Some Assumptions of Compartmental SIR Model:The model's transmission rate probabilities (β, γ) and the Basic Reproductive Ratio R0 are constant during the

outbreak. A person who transitions to the infected group immediately becomes infectious. There is no latent period. All individual have the same rate of recovery, γ. If the duration of the infection is D days, then the transition rate, γ,from I to R is the reciprocal of D. The duration (average generation) of the infection for COVID-19 is ~ 10 days. The population is homogenous and well mixed (homogenous mixing within the populations I and S). In actuality,people interact in complex social networks (communities) that have different fundamental structural properties. In a Population, N, spread is by the Law of Mass Action, that is, the number of new cases per unit time, or rate, isproportional to the product of the number of Susceptible and the number of Infections people, = β * I * S/NThe rate of decrease of the healthy population, dS/dt, is proportional to the product of the number of healthypeople and the fraction of the total population that is infected. People are no longer infectious after 1/γ days and are afterwards immune. The I and R case records are accurateand can be used to extract the magnitude of β.

Page 23: Mathcad - COVID-19 SEIR & SIR Sigmoidal Models2€¦ · 0hwkrgrorj\ ri wklv ,qyhvwljdwlrq 7klv zrun vwduwv zlwk d jhqhudo ghvfulswlrq ri wkh 6$56 &r9 9luxv dqg wkh dvvrfldwhg &29,

New York City Data https://www1.nyc.gov/assets/doh/downloads/pdf/imm/covid-19-daily-data-summary.pdf

Cases READPRN "NYC Inf 3-13 to 3-30 2020.txt"( ):= Rc rows Cases( ):= j 0 Rc 1-..:= JNy Cases:=

Rc 18= i 1 Rc 1-..:= New_Casesi

Casesi

Casesi 1--:= JNx

jj:= NCs New_Cases:=

Calculate the Rate of Growth of Cases, Find Average Rate, and Days to Double from Avg. Rate

ratei

100NCs

i

Casesi 1-

:= CasesRc 1- 38087= rate rate 1+:=

rateavg mean rate( ) 41.189=:=

Calculate the Number of Days for Cases to Double - Dbl:

Dblln 2( )

ln 1rateavg

100+

:= Days to Double: Dbl 2.01=

Dbl_Days JNyRc 1- 100, Rc, 0, ( ) 2.1=

gx 100 0.3( )T

:= F x v, m, ( ) v em x

:= v m( ) genfit JNx JNy, gx, F, ( )T

:= m 0.178= fx t( ) v em t

:=

guess 1 0.01 1( )T

:= a k c( ) expfit JNx JNy, guess, ( )T

:= a k c( ) 7398.75 0.111 9307.034-( )= Fe x( ) a ek x

c+:=

0 2 4 6 8 10 12 14 16 18 200

1 104

2 104

3 104

4 104

5 104

6 104

NY- Total Cases/Day

Tot

al C

ases

JNy

fx t( )

JNx t,

Exponential Growth ==> NY Epidemic R0m m 10 1- 0.776=:=

0 2 4 6 8 10 12 14 16 18 200

1 103

2 103

3 103

4 103

5 103

Daily Increase

NCs

JNx

NY Reproductive Ratio R0L: LM log Cases( )

:= slope JNy LM, ( ) 5.548 105-

= R0L 0.137 10, ( ) 2.37=

0 2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36100

1 103

1 104

1 105

100

1 103

1 104

1 105

1 106

1 107

1 108

1 109

NY: Left Log Exponential Fit & Cases, Right Linear Cases

Number of Days from Initial 100 Cases

Tot

al N

umbe

r of

Cas

es

fx t( )

Cases

fx t( )

Cases

t JNx, t, JNx,

Page 24: Mathcad - COVID-19 SEIR & SIR Sigmoidal Models2€¦ · 0hwkrgrorj\ ri wklv ,qyhvwljdwlrq 7klv zrun vwduwv zlwk d jhqhudo ghvfulswlrq ri wkh 6$56 &r9 9luxv dqg wkh dvvrfldwhg &29,

New York State Data https://en.wikipedia.org/wiki/2020_coronavirus_pandemic_in_New_York_(state)

Cases READPRN "NY CV-19 Inf 3-3 to 4-12 2020.txt"( ):= Rc rows Cases( ):= j 0 Rc 1-..:= JNy Cases:=

Rc 41= i 1 Rc 1-..:= New_Casesi

Casesi

Casesi 1--:= JNx

jj:= NCs New_Cases:=

Calculate the Rate of Growth of Cases, Find Average Rate, and Days to Double from Avg. Rate

ratei

100NCs

i

Casesi 1-

:= CasesRc 1- 1.867 10

5= rate rate 1+:=

rateavg mean rate( ) 41.786=:=

Calculate the Number of Days for Cases to Double - Dbl:

Dblln 2( )

ln 1rateavg

100+

:= Days to Double: Dbl 1.985=

Dbl_Days JNyRc 1- 100, Rc, 0, ( ) 3.773=

gx 100 0.3( )T

:= F x v, m, ( ) v em x

:= v m( ) genfit JNx JNy, gx, F, ( )T

:= m 0.098= fx t( ) v em t

:=

R0m m 10 1- 0.02-=:=

a k c( ) expfit JNx JNy, guess, ( )T

:= a k c( ) 11641.922 0.074 22313.213-( )= Fe x( ) a ek x

c+:=

Exponential Growth ==> NY Epidemic

0 5 10 15 20 25 30 35 40 450

2 104

4 104

6 104

8 104

1 105

1.2 105

1.4 105

1.6 105

1.8 105

2 105

NY- Total Cases/Day

Tot

al C

ases JNy

fx t( )

Fe x( )

JNx t, x,

15 20 25 30 35 40 450

3 103

6 103

9 103

1.2 104

1.5 104

Daily Increase

NCs

JNx

NY Reproductive Ratio R0L: LM log Cases( )

:= slope JNy LM, ( ) 1.761 105-

= R0L 0.137 10, ( ) 2.37=

0 5 10 15 20 25 30 35 40 45 50 55 60100

1 103

1 104

1 105

1 106

1 104

1 105

1 106

1 107

1 108

NY: Left Log Exponential Fit & Cases, Right Linear Cases

Number of Days from Initial 100 Cases

Tot

al N

umbe

r of

Cas

es

Fe x( )

Cases

Fe x( )

Cases

x JNx, x, JNx,

Page 25: Mathcad - COVID-19 SEIR & SIR Sigmoidal Models2€¦ · 0hwkrgrorj\ ri wklv ,qyhvwljdwlrq 7klv zrun vwduwv zlwk d jhqhudo ghvfulswlrq ri wkh 6$56 &r9 9luxv dqg wkh dvvrfldwhg &29,

Methodology to Estimate the Outcome of the NY EpidemicUSA: m = 0.248

β = 0.1α = 0.248 + 0.1α = 0.319, R0 = 4.49

Our methodology is similar to most papers, the major difference is we use Mathcad'sError Minimization function Minerr, not Python, R, or MATLAB's Minimization Tool.

Assume that 80% of the Population is Either Not Susceptible nor Accessible L 111-

:=

S0 19.5 106

0.8:= S0 is Population ModN β( ) SIRD S0 2, β, L, δ, Rc 2-, ( ):=SIR ModelI t( ) I0 e

β γ-( ) t=

InfN β( ) ModN β( ) 1 := SU β( ) ModN β( ) 0

:= ISU β( ) stack InfN β( ) SU β( ), ( ):=

Use Levenberg-Marquardt Method: Minimize Least Squares Error to Residual

Define a Residual to be the difference between the current data points JNy and SIRD Model

JNS stack JNy S0 JNy-( ), := ResidJN β( ) JNS ISU β( )-:= Given 0 ResidJN β( )=

b Minerr β( )T

:= b 0.431= R0b

L4.738=:=Use Minerr to Extract Optimal Parameters:

<== Today

Model Matches US Data ===>

Dead UIf ModN b( ) 1

:= URc ModN b( ) 2 := UDd UIf 0.03:=

ERR

R31043.669=

n 0 Rc 1-..:= R0SIRb

L 0.015+4.067=:= UDe submatrix UDd 0, 13, 0, 0, ( ):=

Extracted Parameters of NY COVID-19 Epidemic

Starts March 3rd ==>

Guess ex 1.4:= FitPwr ex t, ( ) JNy0

ext

:= Imax = I(0) + S(0) − ν/β log S(0) − ν/β + ν/β log ν/β

ResidJN2 ex( ) JNy FitPwr ex JNx, ( )

-:= Given 0 ResidJN2 ex( )= Ex Minerr ex( ):= Ex 1.344=

Fit JHy with a Power Function, PWR(t): Pwr t( ) JNy0

Ext

:= D2X Ex( )ln 2( )

ln Ex( ):= D2X Ex( ) 2.345=

Dbl_Days 9415 100, 15, 0, ( ) 2.288=

The number of days it takes infections to double, t.2x t2x1

b:= t2x 2.322= b 0.431=

R0b

L δ+4.491=:=The number of days it takes to recover, trec γ 0.063= trec

1

L:= trec 11=

Proj SIR S0 2, 0.186, L, 180, ( ):= PIf Proj 1 := PRc Proj 2

:= PS Proj 0 := Rp rows PIf( ) 182=:=

m 0 Rp 1-..:= Rp 1- 181=

No Mitigation Scenario: Approximate Match to Early NY Total # Cases

Proj SIR S0 2, b, 1

6.8, 60,

:= PIf Proj 1 := PRc Proj 2

:= PS Proj 0 := Rp rows PIf( ) 62=:=

m 0 Rp 1-..:= Rp 1- 61= max PIf( ) 3.897 106

=

0 5 10 15 20 25 30 35 40 45 50 55 600

2 106

4 106

6 106

8 106

1 107

1.2 107

1.4 107

1.6 107

1.8 107

2 107

0

1 104

2 104

3 104

4 104

5 104

6 104

NY: Infection Cases vs. SIR Model Sus, Infections, and Rec

JNyn

PIfm

fx x( )

PRcm

PSm

JNyn

PIfm

fx x( )

PRcm

JNxn m, x, m, m, JNxn, m, x, m,

Imax, Calculate Days to Double, D2X and Fit Power Function to USA JH Data

Removed Infected

Page 26: Mathcad - COVID-19 SEIR & SIR Sigmoidal Models2€¦ · 0hwkrgrorj\ ri wklv ,qyhvwljdwlrq 7klv zrun vwduwv zlwk d jhqhudo ghvfulswlrq ri wkh 6$56 &r9 9luxv dqg wkh dvvrfldwhg &29,

Mitigation: Model with Sigmoid Transition to a Lower Reff

ProM SIRM S0 2, b, b, 180, 7, 1

11, 180,

:= PIf ProM 1 := PRc ProM 2

:= PS ProM 0 :=

Ds ProM 3 := Rd rows Ds( ) 182=:= u 1 Rd 1-..:= Total_Deaths Ds:= Total_Deaths 1.395 10

5=

Rc 41= m 0 Rp 1-..:= Rp 1- 181= Imax max PIf( ):=Imax 7.568 10

6=

No Mitigation: NY Infection Peaks by April 15th - It has infected everybody

0 10 20 30 40 50 60 70 80 90 1000

2 106

4 106

6 106

8 106

1 107

1.2 107

1.4 107

1.6 107

1.8 107

2 107

0

2 104

4 104

6 104

8 104

1 105

1.2 105

1.4 105

1.6 105

1.8 105

2 105

TWK: Infection Cases (Blue) vs. SIR Model Sus, Infecti, and Rec

JNyn

PIfm

fx x( )

PRcm

PSm

JNyn

PIfm

fx x( )

PRcm

Dsu

JNxn m, x, m, m, JNxn, m, x, m, u,

Model Matches US Data ===>

<== Peaks April 15th

<== "Today" 3-30-2020

Mitigation Reff => 0.476 @ 47 Days: NY State Infection Peak with Transition

Rc 41= MR34 SIRM S0 2, b, 0.07, 28, 7, 1

11, 80,

:= PIf34 MR34 1 := PRc34 MR34 2

:= PS34 MR34 0 :=

D34 MR34 3 := Total_Deaths D34:= Total_Deaths 13073.193=

# Infected at the Exponential Transition PointImax max PIf34( ):= Nmax match Imax PIf34, ( ):= Nmax 51( )= Imax 4.189 10

5=

0 10 20 30 40 50 60 70 80 90 1000

2 106

4 106

6 106

8 106

1 107

1.2 107

1.4 107

1.6 107

1.8 107

2 107

0

2000

4000

6000

8000

1 104

1.2 104

1.4 104

1.6 104

1.8 104

2 104

TK: Infection Cases (Blue) vs. SIR Model Sus, Infections, and Rec

JNyn

PIf34m

fx x( )

PRc34m

PS34m

JNyn

PIf34m

fx x( )

PRc34m

D34u 10

JNxn m, x, m, m, JNxn, m, x, m, u,

Rp rows PIf( ) 182=:=

Page 27: Mathcad - COVID-19 SEIR & SIR Sigmoidal Models2€¦ · 0hwkrgrorj\ ri wklv ,qyhvwljdwlrq 7klv zrun vwduwv zlwk d jhqhudo ghvfulswlrq ri wkh 6$56 &r9 9luxv dqg wkh dvvrfldwhg &29,

USA Data Directly From Johns Hopkinshttps://www.vox.com/policy-and-politics/2020/3/13/21178289/confirmed-coronavirus-cases-us-countries-italy-iran-singapore-hong-kong

Read Data File: JH_USA READPRN "ECDC USA Confirmed to 3-3 to 4-15 2020.txt"( ):= March 3 to April 7

JHy JH_USA:= Cases JHy:= Rc rows JHy( ):= JHyRc 1- 6.095 10

5= j 0 Rc 1-..:=

Rc 44= i 1 Rc 1-..:= JHxj

j:= daysi

i:= rows days( ) 44=

Calculate the Rate of Growth of Cases, Find Average Rate, and Days to Double from Avg. RateNew_Cases

iCases

iCases

i 1--:=

ratei

100New_Cases

i

Casesi 1-

:= CasesRc 1- 6.095 10

5= rate rate 1+:= rateavg mean rate( ) 23.565=:=

Calculate the Number of Days for Cases to Double - Dbl:

Dblln 2( )

ln 1rateavg

100+

:= Days to Double: Dbl 3.276=

Dbl_Days 26138 100, 17, 0, ( ) 2.117=

a 1:= b 0.01:= c 1:= guess a b c( )T

:= gx 100 0.3( )T

:= F x v, m, ( ) v em x

:= v m( ) genfit JHx JHy, gx, F, ( )T

:=

m 0.097= R0m m 10 1- 0.032-=:=

Calculate Parameters for Exponential Fit, fit(x), to Total Number of Cases

a b c( ) expfit JHx JHy, guess, ( )T

:= a b c( ) 26509.866 0.077 57151.004-( )= Fe x( ) v em x

:=dy N( )

lnN

v

m:=

fit x( ) a eb x

c+:= v 10772.107= b 0.077= Days to Number, N:

0 4 8 12 16 20 24 28 32 36 40 440

1 105

2 105

3 105

4 105

5 105

6 105

7 105

8 105

USA- Total Cases/Day

Tot

al C

ases

JHy

Fe x( )

JHx x,

Exponential Growth ==> US Epidemic

0 4 8 12 16 20 24 28 32 36 40 440

5 103

1 104

1.5 104

2 104

2.5 104

3 104

3.5 104

4 104

4.5 104

5 104

Daily Increase

New_Cases

JHx

US Reproductive Ratio R0L: LM log Cases( )

:= slope JHx LM, ( ) 0.093= R0L 0.137 10, ( ) 2.37=

0 2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40 42 44 46 48 50100

1 103

1 104

1 105

1 106

100

1 103

1 104

1 105

1 106

1 107

1 108

1 109

USA: Left Log Exponential Fit & Cases, Right Linear Cases

Number of Days from Initial 100 Cases

Tot

al N

umbe

r of

Cas

es

Fe x( )

Cases

Fe x( )

Cases

x JHx, x, JHx,

Page 28: Mathcad - COVID-19 SEIR & SIR Sigmoidal Models2€¦ · 0hwkrgrorj\ ri wklv ,qyhvwljdwlrq 7klv zrun vwduwv zlwk d jhqhudo ghvfulswlrq ri wkh 6$56 &r9 9luxv dqg wkh dvvrfldwhg &29,

Methodology to Estimate the Outcome of the USA EpidemicOur methodology is similar to most papers, the major difference is we use Mathcad'sError Minimization function Minerr, not Python, R, or MATLAB's Minimization Tool.

USA: m = 0.177

β = b = 0.159α = 0.177 + 0.159α = 0.336, R0 = 2.113

Assume that 80% of the Population is Either Not Susceptible nor Accessible

S0 3.2 108

0.8:= S0 is Population ModU β( ) SIRD S0 100, β, 1

6.8, δ, Rc 2-,

:=SIR Model

InfU β( ) ModU β( ) 1 := SU β( ) ModU β( ) 0

:= ISU β( ) stack InfU β( ) SU β( ), ( ):=

Use Levenberg-Marquardt Method: Minimize Least Squares Error to Residual

Define a Residual to be the difference between the current data points JHy and SIRDModel

ResidJH β( ) JHy InfU β( )-:= Given 0 ResidJH β( )=

b Minerr β( )T

:= b 0.382= R0b

L4.199=:=Use Minerr to Extract Optimal Parameters:

Infected Removed Dead UIf ModU b( ) 1

:= URc ModU b( ) 2 := UDd UIf 0.03:=

ERR

R54396.483=

n 0 Rc 1-..:= R0SIRb

L 0.015+3.604=:= UDe submatrix UDd 0, 13, 0, 0, ( ):=

Extracted Parameters of USA COVID-19 Epidemic Imax, Calculate Days to Double, D2X and Fit Power Function to USA JH Data

Guess ex 1.4:= FitPwr ex t, ( ) JHy0

ext

:= Imax = I(0) + S(0) − ν/β log S(0) − ν/β + ν/β log ν/β

ResidJH2 ex( ) JHy FitPwr ex JHx, ( )

-:= Given 0 ResidJH2 ex( )= Ex Minerr ex( ):= Ex 1.234=

Fit JHy with a Power Function, PWR(t): Pwr t( ) JHy0

Ext

:= Dbl_Days 9415 100, 15, 0, ( ) 2.288= D2X Ex( ) 3.302=

The number of days it takes infections to double, t.2x t2x1

b:= t2x 2.62= L 0.091=

R0b

L δ+3.98=:=The number of days it takes to recover, trec γ 0.063= trec

1

L:= trec 11=

USA Mitigation R0 => 0.476 @ 28 Days: Infection Peak with Transition

Proj SIRM S0 100, 0.5, 0.07, 28, 3, 1

6.8, 120,

:= PIf Proj 1 := PRc Proj 2

:= Ds Proj 3 := PS Proj 0

:= Rp rows PIf( ):=

Imax max PIf( ):= Imax 2.683 106

= Nmax match Imax PIf, ( ):= Total_Deaths Ds:= Total_Deaths 69553.971=

0 10 20 30 40 50 60 70 80 90 1000

5 107

1 108

1.5 108

2 108

2.5 108

3 108

0

500

1000

1500

2000

2500

3000

3500

4000

4500

5000

USA: Infection Cases vs. SIR Model Sus, Infections, and Rec

JHyn

PIfm

Fe x( )

PRcm

PSm

JHyn

PIfm

Fe x( )

PRcm

Dsm 14-

PIfm

1000

JHxn m, x, m, m, JHxn, m, x, m, m, m,

To Plot Infections and Deaths on the same scale at right,The number of Infections (Blue) is divided by 1000

Model=> Matches

US Data

<====Peak Deaths, Total 68,000

April 17Peak Infected, ==>Total Projected: Actual, Not Reported:7 Million

DeathsDs -

14 DayDelay

Starts March 5th ==>

TWK Mitigation Scenario: Reasonably Good Match to USA Cases to Date

Page 29: Mathcad - COVID-19 SEIR & SIR Sigmoidal Models2€¦ · 0hwkrgrorj\ ri wklv ,qyhvwljdwlrq 7klv zrun vwduwv zlwk d jhqhudo ghvfulswlrq ri wkh 6$56 &r9 9luxv dqg wkh dvvrfldwhg &29,

CDC: Data on USA Total Confirmed Deaths to March 19Data Source For US Deaths to March 19:

Data From The European Center for Disease Control and Prevention (ECDC) https://ourworldindata.org/coronavirus

DdUS READPRN "USA Total Confirmed Deaths ECDC March 1 April 15 CDC.txt"( ):=

R rows DdUS( ) 47=:= DdUSR 1-30800= Deaths DdUS:= z 0

R 1-..:= dax

zz:= i 1 R 1-..:=

Deaths0

1= DeathsR 1- 30800=

New_Dthsi

DdUSiDdUSi 1-

-:= Fit Exponential Curve

a b c( ) expfit dax Deaths, guess, ( )T

:= a b c( ) 156.484 0.116 837.548-( )= Dfit x( ) a eb x

c+:=

gx 100 0.3( )T

:= F x v, m, ( ) v em x

:= v m( ) genfit dax Deaths, gx, F, ( )T

:= Fe x( ) v em x

:=

dx 0 50..:=DT

z1

z

z

Dsz

=

:= Number of Days for Number of Total Deaths to Double

Dbl_Days 150 1, 19, 0, ( ) 2.628=

Initial US Death Rate, at the Present Time, is an Exponential Curve It is Doubling every 5 days

10 15 20 25 30 35 40 45 500

5000

1 104

1.5 104

2 104

2.5 104

3 104

3.5 104

4 104

US Recorded Deaths

Deaths

Deaths

Dfit dx( )

dax dax, dx, 10 15 20 25 30 35 40 45 50

0

500

1000

1500

2000

2500

3000

3500

4000

4500

5000

US Death Increase

New_Dthsi

i

0 5 10 15 20 25 30 35 40 45 5010

100

1000

1 104

1 105

1 106

10

100

1000

1 104

1 105

1 106

US Recorded Death Data (Blue), Exponential Fit (Red)

Deaths

Deaths

Fe dx( )

DTn

JHyn

140

dax dax, dx, n, n,

Page 30: Mathcad - COVID-19 SEIR & SIR Sigmoidal Models2€¦ · 0hwkrgrorj\ ri wklv ,qyhvwljdwlrq 7klv zrun vwduwv zlwk d jhqhudo ghvfulswlrq ri wkh 6$56 &r9 9luxv dqg wkh dvvrfldwhg &29,

Florida Data Update New Cases from Bar Chart: https://experience.arcgis.com/experience/96dd742462124fa0b38ddedb9b25e429

Read Data File: JF_Dy READPRN "FL Confirmed Cases per Day 3-12 to 4-17 2020.txt"( ):= Rc rows JF_Dy( ):=

Rc 37= i 1 Rc 1-..:= j 0 Rc 1-..:= JFyj

0

j

i

JF_Dyi

=

:= Cases JFy:= JFyRc 1- 24610=

JFxj

j:=

New_Cases JF_Dy:= NC New_Cases:=

Calculate the Rate of Growth of Cases, Find Average Rate, and Days to Double from Avg. Rate

ratei

100New_Cases

i

Casesi 1-

:= CasesRc 1- 24610= rate rate 1+:=

rateavg mean rate( ) 28.23=:=

Calculate the Number of Days for Cases to Double - Dbl:

Dblln 2( )

ln 1rateavg

100+

:= Days to Double: Dbl 2.788=

Dbl_Days JFyRc 1- JFy

0, Rc, 0, ( ) 3.141=

Exponential Growth ==> FL EpidemicDays to Number, N:

gx 100 0.3( )T

:= F x v, m, ( ) v em x

:= v m( ) genfit JFx JFy, gx, F, ( )T

:= Fe x( ) v em x

:=dy N( )

lnN

v

m:=

v 1364.71= m 0.084= R0m m 10 1- 0.158-=:=

10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 400

5 103

1 104

1.5 104

2 104

2.5 104

3 104

FL- Total Cases/Day

JFy

Fe x( )

JFx x, 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40

0200400600800

1 103

1.2 103

1.4 103

1.6 103

New Cases

NC

JFx

Death_Rate

FL Reproductive Ratio R0L: LM log Cases( )

:= slope JFx LM, ( ) 0.081= R0L 0.137 10, ( ) 2.37=

0 2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40100

1 103

1 104

1 105

100

1 103

1 104

1 105

1 106

1 107

1 108

1 109

FL: Left Log Exponential Fit & Cases, Right Linear Cases

Number of Days from Initial 100 Cases

Tot

al N

umbe

r of

Cas

es

Fe x( )

Cases

Fe x( )

Cases

x JNx, x, JNx,

Page 31: Mathcad - COVID-19 SEIR & SIR Sigmoidal Models2€¦ · 0hwkrgrorj\ ri wklv ,qyhvwljdwlrq 7klv zrun vwduwv zlwk d jhqhudo ghvfulswlrq ri wkh 6$56 &r9 9luxv dqg wkh dvvrfldwhg &29,

Florida Deaths: IHME Projection Mean, High, LowIHME https://covid19.healthdata.org/united-states-of-america/florida

Read Data File: FL_Deaths READPRN "FL IHME Deaths 3-14 to 6-4 Mean L H.txt"( ):= Rc rows FL_Deaths( ):=

FDN_m FL_Deaths 0 := Rc 83= i 1 Rc 1-..:= j 0 Rc 1-..:= JFx

jj:= Dnow submatrix FL_Deaths 0, 33, 0, 0, ( ):=

FD_mj

0

j

i

FDN_mi

=

:= FD_Lj

0

j

i

FL_Deathsi 1,

=

:= FD_Hj

0

j

i

FL_Deathsi 2,

=

:= April 16: Dnow 666=

Calculate the Rate of Growth of Cases, Find Average Rate, and Days to Double from Avg. Rate

ratei

100FDN_m

i

FD_mi 1-

:= rate rate 1+:= rateavg mean rate( ) 11.337=:= Today 33:=

0 5 10 15 20 2530 35 40 45 5055 60 65 70 75 800

10

20

30

40

50

60

70

80

New Deaths

FDN_m

JFx

0 5 10 15 20 25 30 35 40 45 50 55 60 65 70 75 801

10

100

1 103

1 104

FL: Log Deaths, Projected High, Mean, Low

Number of Days from One Death

Tot

al N

umbe

r of

Dea

ths

FD_H

FD_m

FD_L

Today

JFx

0 5 10 15 20 25 30 35 40 45 50 55 60 65 70 75 800

500

1 103

1.5 103

2 103

2.5 103

3 103

3.5 103

0

500

1 103

Deaths: High, Mean, Low

FD_H

FD_m

FD_L

FD_m

Today

JFx

Page 32: Mathcad - COVID-19 SEIR & SIR Sigmoidal Models2€¦ · 0hwkrgrorj\ ri wklv ,qyhvwljdwlrq 7klv zrun vwduwv zlwk d jhqhudo ghvfulswlrq ri wkh 6$56 &r9 9luxv dqg wkh dvvrfldwhg &29,

New Orleans Cases- 3-10 to 4-1https://en.wikipedia.org/wiki/2020_coronavirus_pandemic_in_Louisiana

NO READPRN "New Orleans 3-10 to 4-1-2020.txt"( ):= Cases NO:= JHy Cases:= Rc rows Cases( ):=

Rc 23= p 0 Rc 1-..:= i 1 Rc 1-..:= dxp

p:= rows dx( ) 23=

New_Casesi

Casesi

Casesi 1--:= rows Cases( ) 23=

Calculate the Rate of Growth of Cases, Find Average Rate, and Days to Double from Avg. RateNew_Cases

iCases

iCases

i 1--:=

ratei

100New_Cases

i

Casesi 1-

:= CasesRc 1- 6424= rate rate 1+:=

rateavg mean rate( ) 15.171=:=

Calculate the Number of Days for Cases to Double - Dbl:

Dblln 2( )

ln 1rateavg

100+

:= Days to Double: Dbl 4.907=

Dbl_Days JHyRc 1- JHy

0, Rc, 0, ( ) 2.227=

Calculate Parameters for Exponential Fit, fit(x), to Total Number of Cases

a 1:= k 0.01:= c 1:= guess a k c( )T

:= gx 100 0.3( )T

:= F x v, m, ( ) v em x

:= v m( ) genfit dx JHy, gx, F, ( )T

:=

a k c( ) expfit dx JHy, guess, ( )T

:= a k c( ) 155.916 0.17 244.651-( )= Fe x( ) v em x

:=

dy N( )

lnN

v

m:=

fit x( ) a ek x

c+:= m 0.191= v 96.221= Pop of S Koria: 51.5 Million

0 2 4 6 8 10 12 14 16 18 20 22 24 26 28 300

2 103

4 103

6 103

8 103

1 104

New Orleans - Total Cases/Day

Tot

al C

ases

JHy

fit x( )

dx x,

0 2 4 6 8 10 12 14 16 18 20 22 24 26 28 300

400

800

1.2 103

1.6 103

2 103

Daily Increase - Contained

New_Cases

dx

R0m m 10 1- 0.908=:=

SK Reproductive Ratio R0L: LM log Cases( )

:= slope dx LM, ( ) 0.129= R0L 0.053 10, ( ) 1.53=

0 2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32100

1 103

1 104

New Orleans - Log Plot of Epidemic

Tot

al N

umbe

r of

Cas

es

Fe x( )

Cases

x dx, x,

Page 33: Mathcad - COVID-19 SEIR & SIR Sigmoidal Models2€¦ · 0hwkrgrorj\ ri wklv ,qyhvwljdwlrq 7klv zrun vwduwv zlwk d jhqhudo ghvfulswlrq ri wkh 6$56 &r9 9luxv dqg wkh dvvrfldwhg &29,

UK Data https://ourworldindata.org/coronavirus-source-data

Cases READPRN "UK Cases 3-1 to 4-19.txt"( ):= Rc rows Cases( ):= j 0 Rc 1-..:= JGy Cases:=

Rc 50= i 1 Rc 1-..:= New_Casesi

Casesi

Casesi 1--:= JGx

jj:= NCs New_Cases:=

Calculate the Rate of Growth of Cases, Find Average Rate, and Days to Double from Avg. Rate

ratei

100NCs

i

Casesi 1-

:= CasesRc 1- 1.142 10

5= rate rate 1+:=

rateavg mean rate( ) 13.632=:=

Calculate the Number of Days for Cases to Double - Dbl:

Dblln 2( )

ln 1rateavg

100+

:= Days to Double: Dbl 5.424=

Dbl_Days JNyRc 1- 100, Rc, 0, ( ) =Rc 1-

gx 20 0.2( )T

:= F x v, m, ( ) v em x

:= v m( ) genfit JGx JGy, gx, F, ( )T

:= fx t( ) v em t

:=

m 0.087= R0m m 10 1- 0.13-=:=

0 5 10 15 20 25 30 35 40 45 500

1 104

2 104

3 104

4 104

5 104

6 104

7 104

8 104

9 104

1 105

1.1 105

1.2 105

GB- Total Cases/Day

Tot

al C

ases

JGy

fx t( )

JGx t,

Exponential Growth ==> NY Epidemic

0 5 10 15 20 25 30 35 40 45 500

9001.8 10

32.7 10

33.6 10

34.5 10

35.4 10

36.3 10

37.2 10

38.1 10

39 10

3

Daily Increase

NCs

JGx

GB Reproductive Ratio R0L: LM log Cases( )

:= slope JGx LM, ( ) 0.075= R0L 0.106 10, ( ) 2.06=

0 5 10 15 20 25 30 35 40 45 50100

1 103

1 104

1 105

1 106

100

1 103

1 104

1 105

1 106

GB: Left Log Exponential Fit & Cases, Right Linear Cases

Number of Days from Initial 100 Cases

Tot

al N

umbe

r of

Cas

es

fx x( )

Cases

fx x( )

Cases

x JGx, x, JGx,

Page 34: Mathcad - COVID-19 SEIR & SIR Sigmoidal Models2€¦ · 0hwkrgrorj\ ri wklv ,qyhvwljdwlrq 7klv zrun vwduwv zlwk d jhqhudo ghvfulswlrq ri wkh 6$56 &r9 9luxv dqg wkh dvvrfldwhg &29,

SEIRM Methodology: Estimate Outcome of the UK EpidemicOur methodology is similar to most papers, the major difference is we use Mathcad'sError Minimization function Minerr, not Python, R, or MATLAB's Minimization Tool.

S0 66.4 106

0.8:=

SEIRM Model Mdl β βm, te, N, ( ) SEIRM S0 23, β, βm, te, 2, 1

6.8, N,

:= Mod β βm, te, ( ) Mdl β βm, te, 48, ( ) 1 :=

L1

6.8:= Initial Guess (SIRD Params): β βm te( ) 0.19 0.063 20( ):=

Use Levenberg-Marquardt Method: Minimize Least Squares Error to Residual

Define a Residual to be the difference between the current data points HInf, HRec, HDed and SIRDModel

Residual β βm, te, ( ) JGy Mod β βm, te, ( )-:= Rc 50= n 0 Rc 1-..:= rows Mod β βm, te, ( )( ) 50=

Condition to Minimize the Residual Least Squares Fit Error Using L-V Minerr Method

Given 0 Residual β βm, te, ( )= b bm te( ) Minerr β βm, te, ( )T:= b bm te( ) 0.716 0.262 26.166( )=

ERR

R306.045=

R0b

L4.872=:= R0

bm

L1.781=:=

Extracted Parameters of GB COVID-19 Epidemic Imax, Calculate Days to Double, D2X and Fit Power Function to USA JH Data

ex 1.4:= FitPwr ex t, ( ) JGy0

ext

:=

ResidJG2 ex( ) JGy FitPwr ex JGx, ( )

-:= Given 0 ResidJG2 ex( )= Ex Minerr ex( ):= Ex 1.198=

Fit JHy with a Power Function, PWR(t): Pwr t( ) JGy0

Ext

:= D2X Ex( )ln 2( )

ln Ex( ):= D2X Ex( ) 3.843=

Dbl_Days 9415 100, 15, 0, ( ) 2.288=100 2

16

2.309 12188.753=

The number of days it takes infections to double, t.2x t2x1

b:= t2x 1.396= b 0.716=

R0b

L δ+4.712=:=The number of days it takes to recover, trec γ 0.063= trec

1

L:= trec 6.8=

Proj Mdl b bm, te, 140, ( ):= PIf Proj 1 := PRc Proj 2

:= PS Proj 0 := Ds Proj 3

:= max Ds( ) 5973.969=

Rp rows PIf( ) 142=:= m 0 Rp 1-..:= Tot_Deaths Ds:= Tot_Deaths 2.988 105

= max PIf( ) 4.312 106

=

0 10 20 30 40 50 60 70 80 90 100 110 120 130 1400

5 105

1 106

1.5 106

2 106

2.5 106

3 106

3.5 106

4 106

0

2 104

4 104

6 104

8 104

1 105

1.2 105

1.4 105

1.6 105

1.8 105

2 105

2.2 105

2.4 105

UK: Infection Cases vs. SEIRM Model Sus, Infections, and Rec

JGyn

PIfm

fx x( )

PRcm

PSM

JGyn

PIfm

fx x( )

PRcm

Dsm 5

JGxn m, x, m, m, n, m, x, m, m,

SIRM ModelMatches

UK Data ===> <== Today

Starts Feb 1st ==>

SEIRM Mitigation Scenario: Reasonably Good Match to UK Cases to Date

Page 35: Mathcad - COVID-19 SEIR & SIR Sigmoidal Models2€¦ · 0hwkrgrorj\ ri wklv ,qyhvwljdwlrq 7klv zrun vwduwv zlwk d jhqhudo ghvfulswlrq ri wkh 6$56 &r9 9luxv dqg wkh dvvrfldwhg &29,

Italy COVID19 Cases Feb 15 - April 3 Growth Data and Curve Fit for WHO COVID-19: Total Cases in Italy

Source: CDC Data for Total Number of World Cases Reported to WHO (Virus is called (SARS-CoV-2)https://en.wikipedia.org/wiki/Template:2019%E2%80%9320_coronavirus_outbreak_data/WHO_situation_reports

https://www.statista.com/statistics/1101680/coronavirus-cases-development-italy/

Read Data File: WCases READPRN "Italy COVID-19 Feb 21 to April 11 2020 Totals.txt"( ):= JIy WCases:=

Rc rows WCases( ):= Rc 52= i 1 Rc 1-..:= k 0 Rc 1-..:= daysi

i:= rows WCases( ) 52= rows days( ) 52=

WCasesRc 1- 1.523 10

5= Calculate the Rate of Growth of Cases and Find Average WCases

03=

NCsi

WCasesi

WCasesi 1--:= New_Cases NCs:=

ratei

100NCs

i

WCasesi 1-

:= WCasesRc 1- 1.523 10

5= rate rate 1+:=

rateavg mean rate( ) 19.893=:=

Calculate the Number of Days for Cases to Double - Dbl:

Dblln 2( )

ln 1rateavg

100+

:= Days to Double: Dbl 3.82=

Fn N0 ext

= Daysdouble 3.139= Exponential Growth ==> Italy Epidemic

Calculate Parameters for Exponential Fit, fit(x), to Total Number of Cases

gx 100 0.3( )T

:= F x v, m, ( ) v em x

:= v m( ) genfit days WCases, gx, F, ( )T

:= fx d( ) v em d

:=

a k c( ) expfit days WCases, guess, ( )T

:= a k c( ) 23369.425 0.042 34277.269-( )= fit x( ) a ek x

c+:=

Note: the large increase day 25 is because of a change in reporting from laboratory confirmed to all confirmed.

10 15 20 25 30 35 40 45 50 55 600

1 103

2 103

3 103

4 103

5 103

6 103

7 103

8 103

New Cases

NCs

days

0 5 10 15 20 25 30 35 40 4510

100

1 103

1 104

1 105

1 106

Italy- Cases & Exp Fit - Lin&Log Scale & New Cases

Number of Days

Num

ber

of C

ases

per

Day

WCases

fit days( )

New_Cases

days

R0m m 10 1- 0.344-=:=

Dbl_Days JIyRc 1- JIy

0, Rc, 0, ( ) 3.327=

Italy Reproductive Ratio R0L: LW log WCases( )

:= slope days LW, ( ) 0.072= R0L 0.04 10, ( ) 1.4=

Using Exp Dble Fn Method:

10 15 20 25 30 35 40 45 50 55 600

2 104

4 104

6 104

8 104

1 105

1.2 105

1.4 105

1.6 105

Total Number of Cases/Day

WCases

fx x( )

fit x( )

days x, x,

Page 36: Mathcad - COVID-19 SEIR & SIR Sigmoidal Models2€¦ · 0hwkrgrorj\ ri wklv ,qyhvwljdwlrq 7klv zrun vwduwv zlwk d jhqhudo ghvfulswlrq ri wkh 6$56 &r9 9luxv dqg wkh dvvrfldwhg &29,

Spain COVID19 Cases Feb 1 - April 3 Growth Data and Curve Fit for WHO COVID-19: Total Cases in Spain

Source: CDC Data for Total Number of World Cases Reported to WHO (Virus is called (SARS-CoV-2)

https://en.wikipedia.org/wiki/Template:2019%E2%80%9320_coronavirus_outbreak_data/WHO_situation_reports

Read Data File: WCases READPRN "Spain COVID-19 Feb 1 to April 12 2020 Totals.txt"( ):= JSy WCases:=

Rc rows WCases( ):= Rc 58= i 1 Rc 1-..:= k 0 Rc 1-..:= dzk

k:= rows WCases( ) 58= daqsk

k:=

WCasesRc 1- 1.619 10

5= rows daqs( ) 58= Calculate the Rate of Growth of Cases and Find Average

New_Casesi

WCasesi

WCasesi 1--:=

NCs New_Cases:=

ratei

100New_Cases

i

WCasesi 1-

:= WCasesRc 1- 1.619 10

5= rate rate 1+:= rateavg mean rate( ) 22.412=:=

Calculate the Number of Days for Cases to Double - Dbl:

Dblln 2( )

ln 1rateavg

100+

:= Rate Days to Double: Dbl 3.428=

Using Exp Dble Fn Method: Dbl_Days JSy

Rc 1- JSy0

, Rc, 0, ( ) 3.557=Fn N0 ex

t= Daysdouble 3.139=

Calculate Parameters for Exponential Fit, fit(x), to Total Number of Cases

gx 100 0.3( )T

:= F x v, m, ( ) v em x

:= v m( ) genfit dz WCases, gx, F, ( )T

:= v m( ) 1760.974 0.082( )= fx t( ) v em t

:=

a k c( ) expfit dz WCases, guess, ( )T

:= a k c( ) 4113.255 0.068 12692.605-( )= fit x( ) a ek x

c+:=

R0m m 10 1- 0.178-=:= Exponential Growth ==> Spain Epidemic

10 15 20 25 30 35 40 45 50 55 600

2 104

4 104

6 104

8 104

1 105

1.2 105

1.4 105

1.6 105

1.8 105

2 105

Total Number of Cases/Day

WCases

fx daqs( )

daqs

Note: the large increase day 25 is because of a change in reporting from laboratory confirmed to all confirmed.

10 15 20 25 30 35 40 45 50 55 600

2 103

4 103

6 103

8 103

1 104

Number New Cases Daily

NCs

daqs

10 15 20 25 30 35 40 45 50 55 6010

100

1 103

1 104

1 105

1 106

0

1 104

2 104

3 104

4 104

5 104

6 104

7 104

8 104

9 104

1 105

Spain- Cases & Exp Fit - Lin&Log Scale & New Cases

Num

ber

of C

ases

per

Day

WCases

fx daqs( )

New_Cases

fit days( )

daqs

Spain Reproductive Ratio R0L: LW log WCases( )

:= slope daqs LW, ( ) 0.106= R0L 0.04 10, ( ) 1.4=

Page 37: Mathcad - COVID-19 SEIR & SIR Sigmoidal Models2€¦ · 0hwkrgrorj\ ri wklv ,qyhvwljdwlrq 7klv zrun vwduwv zlwk d jhqhudo ghvfulswlrq ri wkh 6$56 &r9 9luxv dqg wkh dvvrfldwhg &29,

Rc rows Cases( ):=

JH_SK READPRN "JHU S Korea Inf 2-20 to 4-7 - Cols.txt"( ):= JHy JH_SK:=

Cases JHy:= Rj rows Cases( ) 48=:= p 0 Rj 1-..:=

rows Cases( ) 48=

Rc 48= i 1 Rc 1-..:=

New_Casesi

Casesi

Casesi 1--:= JKx

pp:= days

ii:=

0 5 10 15 20 25 30 35 40 45 50100

1 103

1 104

1 105

S. Korea - Epidemic Contained: Log shows this is NO Longer Exponential

Tot

al N

umbe

r of

Cas

es

Fe x( )

Cases

x JKx, x,

rows days( ) 52=

Calculate the Rate of Growth of Cases, Find Average Rate, and Days to Double from Avg. RateNew_Cases

iCases

iCases

i 1--:=

ratei

100New_Cases

i

Casesi 1-

:= CasesRc 1- 10331= JHy

080= rate rate 1+:=

rateavg mean rate( ) 10.643=:=

Calculate the Number of Days for Cases to Double - Dbl:

Dblln 2( )

ln 1rateavg

100+

:= Days to Double: Dbl 6.853=

Dbl_Days JHyRc 1- JHy

0, Rc, 0, ( ) 6.845=

Calculate Parameters for Exponential Fit, fit(x), to Total Number of Cases

a 1:= k 0.01:= c 1:= guess a k c( )T

:= gx 100 0.3( )T

:= F x v, m, ( ) v em x

:= v m( ) genfit JKx JHy, gx, F, ( )T

:=

a k c( ) expfit JKx JHy, guess, ( )T

:= a k c( ) 2.99 109

7.477 108-

2.99- 109

( )= Fe x( ) v em x

:=

dy N( )

lnN

v

m:=

fit x( ) a ek x

c+:= v 3298.003= Pop of S Koria: 51.5 Million

0 5 10 15 20 25 30 35 40 45 500

1 103

2 103

3 103

4 103

5 103

6 103

7 103

8 103

9 103

1 104

1.1 104

1.2 104

S Korea - Total Cases/Day

Tot

al C

ases

JHy

fit x( )

JKx x,

0 5 10 15 20 25 30 35 40 45 500

200

400

600

800

1 103

Daily Increase - Contained

New_Cases

JKx

R0m m 10 1- 0.72-=:=

<=== Quenched!

SK Reproductive Ratio R0L: LM log Cases( )

:= slope JKx LM, ( ) 0.028= R0L 0.053 10, ( ) 1.53=

S Korea J. Hopkins Feb 20 - April 7: Quenc he d

Page 38: Mathcad - COVID-19 SEIR & SIR Sigmoidal Models2€¦ · 0hwkrgrorj\ ri wklv ,qyhvwljdwlrq 7klv zrun vwduwv zlwk d jhqhudo ghvfulswlrq ri wkh 6$56 &r9 9luxv dqg wkh dvvrfldwhg &29,

Methodology to Extract Mitigation Parameters for S. KoreaS. Korea Applied Mitigation to Contain their COVID -19 Epidemic. Model their Mitigation.

SEIRM Model Mdl β βm, N, ( ) SEIRM 52 106

80, β, βm, 3, 3.8, 1

7, N,

:= Mod β βm, ( ) Mdl β βm, 46, ( ) 1 :=

SγM S0 I0, β, βmit, tel, z, γ, N, ( )Initial Guess (SIRD Params): β βm( ) 0.4 0.3( ):=

Use Quasi-Newton Method: Minimize Least Squares Error LSQFit JHy Model β γ, ( )-( )2=

Use Levenberg-Marquardt Method: Minimize Least Squares Error to ResidualDefine a Residual to be the difference between the current data points JHy and SIRM Model

Residual β βm, ( ) JHy Mod β βm, ( )-:= R rows JHy( ):= R 48=

Condition to Minimize the Residual Least Squares Fit Error Using L-V Minerr Method

Given 0 Residual β βm, ( )= 0.1 β 0.4 0.01 βm 0.3

Use Minerr to Extract Optimal Parameters: b bm( ) Minerr β βm, ( )T

:= b bm( ) 1.222 0.154( )=

HS Mdl b bm, 140, ( ) 0 :=

HIf Mdl b bm, 140, ( ) 1 := HRc Mdl b bm, 140, ( ) 2

:= HD Mdl b bm, 140, ( ) 3 :=

ERR

R84.148=

Rp rows HIf( ) 142=:= max HD( ) 98.4=

Great Match of SEIRM Mitigation Model (Symbols) to Data (Dots)

0 10 20 30 40 50 60 70 800

2500

5000

7500

1 104

1.25 104

1.5 104

1.75 104

2 104

0

1.2 107

2.4 107

3.6 107

4.8 107

6 107

Model vs Data - S. Korea: Infected (Blue), Rec. (Green), Dead (Blk)

JHyp

HIfq

HRcq

HDdq

HSq

HIfq

HIfq

p q, q, q, q, q, q, q,

Extracted Parameters of South Korea COVID-19 Epidemic

The number of days it takes infections to double, t.2x t2x1

b:= t2x 0.819= δ 0.005:=

The number of days it takes to recover, trec trec1

L:= trec 6.8=

Basic Reproductive Ratiobefore and after Intervention:

R0b

L γ+:= R0δ

b

L γ+:= R0 5.815= R0δ 5.815=

Infected

Page 39: Mathcad - COVID-19 SEIR & SIR Sigmoidal Models2€¦ · 0hwkrgrorj\ ri wklv ,qyhvwljdwlrq 7klv zrun vwduwv zlwk d jhqhudo ghvfulswlrq ri wkh 6$56 &r9 9luxv dqg wkh dvvrfldwhg &29,

World COVID19 Cases Jan 21 - March 15 Growth Data and Curve Fit for WHO COVID-19: Total Cases in World

Source: CDC Data for Total Number of World Cases Reported to WHO (Virus is called (SARS-CoV-2)https://en.wikipedia.org/wiki/Template:2019%E2%80%9320_coronavirus_outbreak_data/WHO_situation_reports

Read Data File: WCases READPRN "World COVID-19 Feb 1 to April 7 2020 Totals.txt"( ):= JWy WCases:=

Rc rows WCases( ):= Rc 67= i 1 Rc 1-..:= daysi

i:= rows WCases( ) 67= rows days( ) 67=

Calculate the Rate of Growth of Cases and Find Average and Days to Double from Average Rate

WC WCases:= WCRc 1- 1.317 10

6= New_Cases

iWCases

iWCases

i 1--:= NewC New_Cases:=

ratei

100New_Cases

i

WCasesi 1-

:= WCases51

3.381 105

= rate rate 1+:= rateavg mean rate( ) 8.278=:=

Calculate the Number of Days for Cases to Double - Dbl:

Days to Double: Dbl 6.853=Dbl ln 2( ) ln 1

rateavg

100+

1-

:=Dbl_Days JWy

Rc 1- JWy0

, Rc, 0, ( ) 9.875=

Calculate Number of Days to Double (D2X) and Fit Power Function to World Data

FPr ex t, ( ) WC0

ext

:= ResW ex( ) WC FPr ex days, ( )

-:= Given 0 ResW ex( )= Ex Minerr ex( ):= D2X Ex( ) 9.825=

Exponential Growth ==> World Epidemic R0m Ex 10 1- 9.731=:=

Calculate Parameters for Exponential Fit, fit(x), to Total Number of Cases

a k c( ) expfit days WCases, guess, ( )T

:= a k c( ) 2420.678 0.096 36065.512( )= fit x( ) a ek x

c+:=

R0L 0.04 10, ( ) 1.4=

0 10 20 30 40 50 60 70 800

1 104

2 104

3 104

4 104

5 104

6 104

7 104

8 104

9 104

1 105

Daily % Rate of Growth

NewC

days

0 5 10 15 20 25 30 35 40 45 50 55 60 65 70 75 800

5 105

1 106

1 104

1 105

1 106

1 107

World- Cases & Exp Fit - Lin&Log Scale & New Cases

Num

ber

of C

ases

per

Day

WCases

fit days( )

New_Cases

WCases

days

World Reproductive Ratio R0L: LW log WCases( )

:= slope days LW, ( ) 0.025=

Note: the large increase day 25 is because of a change in reporting from laboratory confirmed to all confirmed.

0 10 20 30 40 50 60 70 800

2 105

4 105

6 105

8 105

1 106

1.2 106

1.4 106

1.6 106

1.8 106

2 106

Total Number of Cases/Day

WCases

fit x( )

days x,

Page 40: Mathcad - COVID-19 SEIR & SIR Sigmoidal Models2€¦ · 0hwkrgrorj\ ri wklv ,qyhvwljdwlrq 7klv zrun vwduwv zlwk d jhqhudo ghvfulswlrq ri wkh 6$56 &r9 9luxv dqg wkh dvvrfldwhg &29,

Deaths: World, Fr, Ge, It, South Korea, Sp, Sw, UK, USA Compare Deaths per Capita: USA Lower than Europe

Source: https://ourworldindata.org/coronavirus-source-data

Order of Data: World France Germany Italy South Korea Spain Sweden United Kingdom USA

Deaths READPRN "Deaths World FR GE IT SK Sp UK US SW Feb 22 to April 19.txt"( ):=

Pop_Millions 7580 66.9 83.7 60.4 52 46.728 10.2 66.48 327( )T

:= w 0 8..:=

Rc rows Deaths( ):= Rc 58= i 1 Rc 1-..:= Total_Deaths w Deaths w

:=

Total_Deaths 2.2 106

2.398 105

47386 4.488 105

6542 3.247 105

15129 1.636 105

3.627 105

( )=

Deaths per Million, DpM: DpM w Deaths w

Pop_Millionsw

:=

Wd DpM 0 := FR DpM 1

:= GE DpM 2 := IT DpM 3

:= SK DpM 4 :=

SP DpM 5 := SW DpM 6

:= UK DpM 7 := US DpM 8

:=

Deaths per Million in Order of Largest to Smallest

Spain, Italy, France, UK, Sweden, US, Germany, World, S. Korea

0 5 10 15 20 25 30 35 40 45 50 55 600.1

1

10

100

1 103

Deaths/Million: Spain, Italy, France, UK, Sweden, US, Germany, World, S.Korea

Number of Days from February 22

Wdi

FRi

GEi

ITi

SKi

SPi

SWi

UKi

USi

i

The Order of the First Appearance of Deaths: World, South Korea, Italy. France, Spain, UK, US, SW, GE

Page 41: Mathcad - COVID-19 SEIR & SIR Sigmoidal Models2€¦ · 0hwkrgrorj\ ri wklv ,qyhvwljdwlrq 7klv zrun vwduwv zlwk d jhqhudo ghvfulswlrq ri wkh 6$56 &r9 9luxv dqg wkh dvvrfldwhg &29,

Bibliography: COVID-19 and Epidemiological Models

Below is a Partial List of the Papers that Were Used in this Analysis

$ Models of Infectious Disease.pdf"$ Parameter_Estimation of Exponential Growth Equation _Junling_Ma.pdf"$Analysis of Numerical and Exact solutions of certain SIR &SIS EpidemicModels-Mathcad.pdf"$COVID-19 dynamics with SIR model - With Solution Parameters.pdf"$CoronaTracker- W-W COVID-19 Outbreak Data Analysis and Prediction.pdf"$Disease invasion risk in a growing population - Ma.pdf"$Epidemic SIR model ODE Infectious.xmcd"$Estimating the Exponential Growth Rate and R0.pdf"$Make Your Own SIR Model.pdf"$Mathematical Modeling of Diseases SIR.pdf"2019-nCoV_ preliminary estimates of the confirmed-case-fatality-ratio andinfection-fatality-ratio, and initial pandemic risk assessment.pdf"2020-1-25 Time-varying transmission dynamics of Novel Coronavirus Pneumonia inChina.pdf"A Discrete Epidemic Model for SARS Transmission and Control in China.pdf"A conceptual model for the outbreak of Coronavirus -SEIR Framework.pdf"A coronavirus danger_ Touching your face. Here is how to stop doing it.pdf"A double epidemic model for the SARS propagation -2003.pdf"A mathematical model (Network) for simulating Transmission COVID.pdf"A simple approximate -CRUDE SUMMATION- mathematical model to predictSARS.pdf"Algm - Opt Control SIR Model with Delay State & Cntrl Var.pdf"An introduction to compartmental modeling for the budding infectious diseasemodeler.pdf"Analysis and Modeling of the COVID-19 Epidemic.pdf"Analysis of Numerical and Exact solutions of certain SIR & SIS EpidemicModels-2011.pdf"Analysis%20and%20Modeling%20of%20the%20COVID-19%20Epidemic-Old.pdf"CDC Predictions How COVID-19 Will Spread i US.pdf"COVID danger- Touching your face- how to stop.pdf"Case-Fatality Risk Estimates for COVID-19 Calculated by Using a Lag Time forFatality.pdf"Characterizing the reproduction number of epidemics with early sub-exponential GrowthDynamics.pdf"CoVid-outbreak-report-22-01-2020 growth estimate-Wuhan.pdf"Complexity of the Basic Reproduction Number (R0).pdf"Conceptual Zoonotic SEIR Model COVID-19 - China.pdf"Controlling Pandemic Flu- The Value of International Air Restrictions May 2007.PDF"Coronavirus Age, Sex, Demographics (COVID-19) - Worldometer.pdf"Coronavirus Disease 2019 mYTH VS fACT.pdf"Coronavirus Incubation Period is About 5 Days.pdf"Coronavirus_ Is It Even Possible to Contain COVID-19.pdf"Coronavirus_ what happens to people's lungs when they get Covid-19_ _ World news _ The Guardian.pdf"Correcting the Actual Reproduction Number- A Simple Method to Estimate R0 from Early Epidemic Growth Data.pdf"Data-based analysis, modelling and forecastingDeepMind Protein Folding Coronavirus.pdf"Definition & Comp - R0 in Models For Infectious-Diseases in HeterogeneousPopulations.pdf"Deterministic Seirs Epidemic Model for Modeling.pdf"Disease modelers- future of Covid-19 .pdf"Does anybody has a working Matlab code for a disease-spread simulation_.pdf"Early Transmission Dynamics in Wuhan China covid.pdf"Early dynamics of transmission and control of COVID-19 - Math Modeling.pdf"Econ Effects of Coronavirus.pdf"Effect of control strategies Wuhan to reduce social mixing on outcomes of theCOVID-19 epidemic in WuhanEpidemiological and clinical features of the 2019 novel China.pdf"Estimating epidemic exponential growth rate and basic reproduction number.pdf"Estimating the Exponential Growth Rate and R0.docx"Estimation of basic reproduction number of MERS-CoV.pdf"Estimation of the Transmission Risk of the 2019-nCoV.pdf"Exp Projection of Known Cases to 320 Million (Total US Population).PRN"FL covid-19-data---daily-report-2020-03-26-1823.pdf"Factors that make an infectious disease outbreak controllable.pdf"Forecasting seasonal influenza with a state-space SIR model 2017.pdf"General Description of Virus and Conclusions.docx"IHME Forecasting impact on hospital bed-days, ICU-days ventilator days by stateInfectious Disease Dynamics -Cummings.simulation.day.1.pdf"

Hamiltonian dynamics of the SIS.pdf"History in a Crisis Lessons for Covid-19.pdf"How COVID-19 and Other Infectious Diseases Spread_ MathematicalModeling - Triplebyte Blog.pdf"How generation intervals shape the relationship between growth rates andreproductive numbers.pdf"How novel coronavirus compares to SARS, MERS and other recent viraloutbreaks - ABC News.pdf"How to Help the Fight Against Coronavirus From the Safety of Your OwnHome.pdf"How to make homemade hand sanitizer.docx"How will the coronavirus outbreak end.pdf"Impact of non-pharmaceutical interventions to reduce COVID March 16.pdf"ICNARC COVID-19 report 2020-04-04.pdfInsights from early mathematical models of 2019-nCoV acute respiratorydisease.pdf"Introduction to Survival Analysis.pdf"JHU USA COVID19 Inf Totals March 5 -26.txt"Lectures on Mathematical Modelling SIR many Scenarios-Great -2018.pdf"MCad Epidemic SIR model Done for Mathcad collaboratory 03 March2009.docx"Math 636 - Mathematical Modeling - Discrete SIR Models Influenza.pdf"Mathematical models to characterize early epidemic growth- A Review.pdf"Mathematical model shows heterogeneous approach might be bestModelling the coronavirus epidemic in a city with Python.pdf"Notes-on-R0 - Anthropological Sciences Stanford.pdf"Nowcasting and forecasting the potential COVID-19 Spread.pdf"People 'shed' high levels coron, but most are likely not infectious after recoverybegins.pdf"Phase-adjusted estimation of the number of CPVID 2019 cases in Wuhan,China.pdf" Projecting the transmission dynamics of SARS-CoV-2 through thepost-pandemic period.pdf"Projection of Known COVID-19 Cases to 320 Million (Total USPopulation).pdf"Rational use of personal protective equipment COVID 19.pdf"Reconstructing influenza incidence by deconvolution of daily mortality.pdf"Qualitative Analysis of Delayed SIR Epidemic Model with a SaturatedIncidence RateRisk Assessment of Novel Coronavirus COVID-19 Outside China.pdf"EIR MODEL FOR CONTROL OF INFECTIOUS DISEASES.pdf"SIR Epidemic Model.pdf"SIR Model - Relating Model Parameters to Data .pdf"SIR Model Sulsky.pdf"SIRD Data-Based Analysis, Modelling and Forecasting of the COVID19.pdf"SIS Model - No Immunity and Recovery.docx"Self-quarantine seems brutal when you're not sick with coron but publicgood.pdf"Simple Algebraic SIS Epidemic.pdf"Analysis and Modeling of the COVID-19 Epidemic.pdf"COVID-19 Analysis of Growth.pdf"SIR Model Projection for Peak in USA.PNG"Text to IWC Council on Exponential Growth.docx"The SIR Model for Spread of Disease - The Differential Equation Model.pdf"The SIR model and the Foundations of Public Health.pdf"The basic reproduction number of novel coronavirus -2019-nCoV.pdf"The effect of travel restrictions on the spread of the 2019.pdf"The mathematics of diseases _ plus.maths.org.pdf"The reproductive number of COVID-19 is higher.pdf"Thomas Pueyo Youtube -Est Actual Cases.docx"Time Varying SIR Model of COVID-19 in China.pdf"Time-optimal control strategies in SIR epidemic models.pdf"Transmission dynamics of 2019 novel coronavirus Jan26.pdf"Transmission parameters - A-H1N1 (2009) Flu- SI GT R.pdf"Trump in the Time of the Coron _ New Yorker.pdf"Virological assessment of hospitalized cases of coronavirus disease 2019.pdf"What is a coronavirus What is a novel coronavirus.pdf"Worst Case Estimate for US Coronavirus Deaths.pdf"

Page 42: Mathcad - COVID-19 SEIR & SIR Sigmoidal Models2€¦ · 0hwkrgrorj\ ri wklv ,qyhvwljdwlrq 7klv zrun vwduwv zlwk d jhqhudo ghvfulswlrq ri wkh 6$56 &r9 9luxv dqg wkh dvvrfldwhg &29,

SEIR

11

2.8- 0.643=

*27 Florida COVID19 Cases Feb 15 - March 26

*17 Methodology to Project the Outcome of the Epidemic in the USA*18 Projection of Cases to Peak Infectives. CDC Data on Deaths in USA

Page 43: Mathcad - COVID-19 SEIR & SIR Sigmoidal Models2€¦ · 0hwkrgrorj\ ri wklv ,qyhvwljdwlrq 7klv zrun vwduwv zlwk d jhqhudo ghvfulswlrq ri wkh 6$56 &r9 9luxv dqg wkh dvvrfldwhg &29,

$Modeling the Control of COVID-19: Impact of Policy Interventions and Meteorological Factors JAI

Page 44: Mathcad - COVID-19 SEIR & SIR Sigmoidal Models2€¦ · 0hwkrgrorj\ ri wklv ,qyhvwljdwlrq 7klv zrun vwduwv zlwk d jhqhudo ghvfulswlrq ri wkh 6$56 &r9 9luxv dqg wkh dvvrfldwhg &29,

The dynamics of an epidemic, for example the flu, are often much faster than the dynamics of birth and death,therefore, birth and death are often omitted in simple compartmental models. The SIR system without so-calledvital dynamics (birth and death, sometimes called demography) described above can be expressed by thefollowing set of ordinary differential equations:

This system is non-linear, and does not admit a generic analytic solution. Nevertheless, significant results canbe derived analytically, and with Monte Carlo methods, such as the Gillespie algorithm.

SIRS Model (Waning Immunity)In many diseases the immunity is not permanent and the immunepopulation (Removed) after loosing the immunity joins thesusceptible class. This lead to the SIRS model as given below:

ω the rate at which immunity is lost.

Susceptible Population Vector row index 0 <== Number =S, subscript0 Infected Population Vector row index 0 <== Number = I, subscript0

Define S(t), I(t), R(t), D(t), the number of susceptible, infected, r Removed dead persons respectively at time t in population of size N. Hubei N = 59m

Page 45: Mathcad - COVID-19 SEIR & SIR Sigmoidal Models2€¦ · 0hwkrgrorj\ ri wklv ,qyhvwljdwlrq 7klv zrun vwduwv zlwk d jhqhudo ghvfulswlrq ri wkh 6$56 &r9 9luxv dqg wkh dvvrfldwhg &29,

Vaccination can be used to reduce the susceptible population below 1/R0

Page 46: Mathcad - COVID-19 SEIR & SIR Sigmoidal Models2€¦ · 0hwkrgrorj\ ri wklv ,qyhvwljdwlrq 7klv zrun vwduwv zlwk d jhqhudo ghvfulswlrq ri wkh 6$56 &r9 9luxv dqg wkh dvvrfldwhg &29,

1

σgives the latent period αIS

IβI

Page 47: Mathcad - COVID-19 SEIR & SIR Sigmoidal Models2€¦ · 0hwkrgrorj\ ri wklv ,qyhvwljdwlrq 7klv zrun vwduwv zlwk d jhqhudo ghvfulswlrq ri wkh 6$56 &r9 9luxv dqg wkh dvvrfldwhg &29,

SEIR ModelTransmission of disease starts with a low number of pathogen(bacterial cells etc.) which reproduce rapidly within host.• At this time the pathogen is present in host but can not transmitdisease to other susceptible.

⇒• Infected but not infectious E class.

δ 0.009:=

SIR S0 I0, β, γ, N, ( ) S0

S0

I0

I0

D0

R0

0

M0 0, M

0 1, M0 2, M

0 3, ( ) S0 I0 0 0( )

Sn 1+ S

n

Sn

S0β I

n-

In 1+ I

n

Sn

S0β I

n+ I

nγ-

Rn 1+ R

nInγ+

Dn 1+ I

Mn 1+ 0, S

n 1+

Mn 1+ 1, I

n 1+

Mn 1+ 2, R

n 1+

Mn 1+ 3, D

n 1+

n 0 N..for

M

:=

https://www.who.int/influenza/gisrs_laboratory/flunet/en/

Page 48: Mathcad - COVID-19 SEIR & SIR Sigmoidal Models2€¦ · 0hwkrgrorj\ ri wklv ,qyhvwljdwlrq 7klv zrun vwduwv zlwk d jhqhudo ghvfulswlrq ri wkh 6$56 &r9 9luxv dqg wkh dvvrfldwhg &29,

1

0.06315.873=

W_0 x( ) " conventional definition "

y01-

e

root y0 ey0

x- y0, ( )

:=

0.193

0.0633.063=

https://www.kaggle.com/imdevskp/corona-virus-report/download/2UVx3oPVlnwZT6B0waRH%2Fversions%2FO5CVCJObfXkOSofBwFa7%2Ffiles%2Fcovid_19_clean_complete.csv?datasetVersionNumber=48

S and IOur SIR model is a system of three differential equations, with three unknown functions. There is asimple trick that will "reduce" this problem to a single differential equation. The idea is to consider I as a function of S. According to the chain rule

It has the Solution:

SId

d

tId

d

tSd

d

=αIS βI-

αIS-=

β

αS1-= f α β, C, ( ) α W_0

α- e

C- α

β

α

:=

where W_0 is the Lambert Function

The value of C can be found by plugging in the initial condition:

C S0 I0, α, β, ( ) I0β

αln S0( )- S0+:= C 100 1, 0.4, 0.1, ( ) 99.849=

Sf 0.4 0.1, 99.849, ( ) =Sf ==> Everybody Infected

I() gives the answer to the question, what is the final value of S when I goes to 0.

68000

68 106

0.001=

Page 49: Mathcad - COVID-19 SEIR & SIR Sigmoidal Models2€¦ · 0hwkrgrorj\ ri wklv ,qyhvwljdwlrq 7klv zrun vwduwv zlwk d jhqhudo ghvfulswlrq ri wkh 6$56 &r9 9luxv dqg wkh dvvrfldwhg &29,

At time=5, Transitions from Initial to final βmit in multiples of 2.5 days

0.8

0

βE t 7, 0.6, 0.185, 1, ( )

βE t 7, 0.6, 0.185, 2, ( )

βE t 7, 0.6, 0.185, 3, ( )

200 t

βE

βE t t0, βmax, βmin, r, ( ) if t t0< βmax, βmin βmax βmin-( )er- t t0-( ) +,

:=

Page 50: Mathcad - COVID-19 SEIR & SIR Sigmoidal Models2€¦ · 0hwkrgrorj\ ri wklv ,qyhvwljdwlrq 7klv zrun vwduwv zlwk d jhqhudo ghvfulswlrq ri wkh 6$56 &r9 9luxv dqg wkh dvvrfldwhg &29,

Epidemic analysis of COVID-19 in China by dynamical modeling

SEIRM S0 I0, β, βmit, tel, z, γ, N, ( ) S0

S0

E0

I0 1.23

I0

I0

ε1

3

δ 0.009

R0

0

M0 0, M

0 1, M0 2, M

0 3, M0 3, ( ) S0 I0 0 0 E

0( )

Sn 1+ S

n

Sn

S0βsm n tel, β, βmit, z, ( ) I

n-

En 1+ E

nε E

n-

Sn

S0βsm n tel, β, βmit, z, ( ) I

n+

In 1+ I

nε E

n+ γ I

n-

Rn 1+ R

nγ I

n+

Dn 1+

Sn

S0βsm n tel, β, βmit, z, ( ) I

n δ

Mn 1+ 0, S

n 1+

Mn 1+ 1, I

n 1+

Mn 1+ 2, R

n 1+

Mn 1+ 3, D

n 1+

Mn 1+ 4, E

n 1+

n 0 N..for

M

:=

Page 51: Mathcad - COVID-19 SEIR & SIR Sigmoidal Models2€¦ · 0hwkrgrorj\ ri wklv ,qyhvwljdwlrq 7klv zrun vwduwv zlwk d jhqhudo ghvfulswlrq ri wkh 6$56 &r9 9luxv dqg wkh dvvrfldwhg &29,

Hres stack HInf HRec, ( ):= Mod β γ, ( ) stack Model β γ, ( ) 1 Model β γ, ( ) 2

, ( ):= Model

Page 52: Mathcad - COVID-19 SEIR & SIR Sigmoidal Models2€¦ · 0hwkrgrorj\ ri wklv ,qyhvwljdwlrq 7klv zrun vwduwv zlwk d jhqhudo ghvfulswlrq ri wkh 6$56 &r9 9luxv dqg wkh dvvrfldwhg &29,

q

q

Currently, according to the CDC, the incubationperiod for the novel coronavirus is somewherebetween 2 to 10 days after exposure. More than97 percent of people who contract SARS-CoV-2show symptoms within 11.5 days of exposure. Theaverage incubation period seems to be around5 days. For many people, COVID-19 symptomsstart as mild symptoms and gradually get worseover a few days.

Log2 x( )log x( )

log 2( ):=

Log2 8( ) 3=

Dbl_Days Nd2 Nd1, d2, d1, ( )d2 d1-

Log2Nd2

Nd1

:=

λ 0.1=

Page 53: Mathcad - COVID-19 SEIR & SIR Sigmoidal Models2€¦ · 0hwkrgrorj\ ri wklv ,qyhvwljdwlrq 7klv zrun vwduwv zlwk d jhqhudo ghvfulswlrq ri wkh 6$56 &r9 9luxv dqg wkh dvvrfldwhg &29,

Extracted Parameters of Hubei/Wuhan COVID-19 Epidemic

The number of days it takes infections to double, t.2x t2x1

b:= t2x 1.459=

The number of days it takes to recover, trec trec1

L:= trec 1

1

L=

δ 0.005:=

Basic Reproductive Ratiobefore and after Intervention:

R0b

δ γ+:= R0δ

b

δ γ+:= R0 10.082= R0δ 10.082=

Page 54: Mathcad - COVID-19 SEIR & SIR Sigmoidal Models2€¦ · 0hwkrgrorj\ ri wklv ,qyhvwljdwlrq 7klv zrun vwduwv zlwk d jhqhudo ghvfulswlrq ri wkh 6$56 &r9 9luxv dqg wkh dvvrfldwhg &29,

Alaska 38 Indiana 20 Nebraska 26 South Carolina 16Arizona 19 Iowa 13 Nevada 23 South Dakota 48Arkansas 39 Kansas 34 New Hampshire 24 Tennessee 17California 3 Kentucky 21 New Jersey 8 Texas 10Colorado 6 Louisiana 35 New Mexico 46 Utah 33Connecticut 30 Maine 42 New York 2 Vermont 37Delaware 40 Maryland 14 North Carolina 15 Virginia 18District of Columbia22 Massachusetts4 North Dakota 47 Washington 1Florida 7 Michigan 43 Ohio 27 West Virginia 49Georgia 5 Minnesota 25 Oklahoma 32 Wisconsin 29Hawaii 31 Mississippi 44 Oregon 9 Wyoming 50Idaho 41 Missouri 36 Pennsylvania 12Illinois 11 Montana 45 Rhode Island 28

JH_SU

Rank of States Greatest Exponential Growth Rate: NY, US, FL, CA, WASORT BY NUMBER OF CASES

1 New York 14 Colorado 27 Arkansas 40 Nebraska2 Washington 15 Wisconsin 28 Oregon 41 Hawaii3 New Jersey 16 Ohio 29 Arizona 42 Delaware4 California 17 North Carolina 30 Missouri 43 Idaho5 Illinois 18 Maryland 31 Kentucky 44 Montana6 Michigan 19 Connecticut 32 Iowa 45 North Dakota7 Louisiana 20 Virginia 33 Maine 46 Wyoming8 Florida 21 Mississippi 34 Rhode Island 47 Alaska9 Massachusetts 22 Indiana 35 Oklahoma 48 South Dakota

10 Texas 23 South Carolina 36 New Hampshire 49 West Virginia11 Georgia 24 Nevada 37 Kansas 50 District of Columbia12 Pennsylvania 25 Utah 38 New Mexico 51 US13 Tennessee 26 Minnesota 39 Vermont

JH_s 0

0

0

1

2

3

4

5

6

7

8

9

10

11

12

173

220

328

421

525

732

967

1706

2495

5365

8310

11710

15793

=

Page 55: Mathcad - COVID-19 SEIR & SIR Sigmoidal Models2€¦ · 0hwkrgrorj\ ri wklv ,qyhvwljdwlrq 7klv zrun vwduwv zlwk d jhqhudo ghvfulswlrq ri wkh 6$56 &r9 9luxv dqg wkh dvvrfldwhg &29,

States Ranked Visually from Least to Greatest Exponential Rate: NY, USA, FL, CA, WA

WPop 7.5 106

:=

NPop 19.5 106

:= CPop 39.6 106

:= FPop 21.0 106

:= USPop 3.2 108

:=

USA- Total Cases, Exp Fit

Tot

al C

ases

12000

1

JHy

fit x( )

160 JHx x, JHx

Page 56: Mathcad - COVID-19 SEIR & SIR Sigmoidal Models2€¦ · 0hwkrgrorj\ ri wklv ,qyhvwljdwlrq 7klv zrun vwduwv zlwk d jhqhudo ghvfulswlrq ri wkh 6$56 &r9 9luxv dqg wkh dvvrfldwhg &29,

Estimating the Exponential Growth Rate and R0Junling Ma

Theoretical Exponential Growth Rate: SIR Model

Near the disease free equilibrium (DFE) (N, 0)

This is a linear ODE, with an exponential solutions

So, the exponential growth rate is λ = β − γ.

What is the growth rate of the incidence curve X(t) = βSI?

Assume a disease free equilibrium (DFE) (S = S*, I = 0).S' = f (S, I;θ), I' = g(S, I; θ) , where ∂ g(S*,0) = 0

∂SLinearize about the DFE (S*,0):.

Naive methods that have been widely used:I Least square and linear regressionI Poisson regressionI Negative binomial regression

These methodsI assume a mean that can be described by a deterministic modelI only consider observation errors around the deterministic modelI ignore the process errors are completely ignoredThe best estimate for (λ, x0) is called a point estimate.A 95% confidence interval (CI) (a, b) for λ is an interval estimate that satisfies

∈ Prob{λ (a, b)} = 95%

Population of US UProb 331 106

:= Pop of FL FProb 21.0 106

:= Pop of Lee Co. LCProb 339 103

:=

Linear Regression

Commonly use the least square method:I For a data set (ti , xi ), minimize

T aking Account of Decreasing Growth RateExponential growth rate decreases because of the depletion of the susceptibles.I Use the exponential model,I Find the best fitting window by testing goodness of fit.I Use more sophisticated phenomenological modelsI Logistic model for cumulative casesI Richards model for cumulative casesI Use a mechanistic model, e.g., SIR, SEIR, ...

What if λ is the exponential growth rate of the incidence curve X(t) = βSI?

Page 57: Mathcad - COVID-19 SEIR & SIR Sigmoidal Models2€¦ · 0hwkrgrorj\ ri wklv ,qyhvwljdwlrq 7klv zrun vwduwv zlwk d jhqhudo ghvfulswlrq ri wkh 6$56 &r9 9luxv dqg wkh dvvrfldwhg &29,

JNy0

2=

New York 4-13-2020INF 188,694Rec 17,089Deaths 9385

NY Death Rate% = 5%9385

188694100 4.974=

Rec/Conf 1

0.0911.111=17

1880.09=

<== Peaks April 15th

Page 58: Mathcad - COVID-19 SEIR & SIR Sigmoidal Models2€¦ · 0hwkrgrorj\ ri wklv ,qyhvwljdwlrq 7klv zrun vwduwv zlwk d jhqhudo ghvfulswlrq ri wkh 6$56 &r9 9luxv dqg wkh dvvrfldwhg &29,

SIRM S0 I0, β, βmit, tel, z, γ, N, ( )

S0 0.014 2.184 105

=

S0 0.014 2.184 105

=

DinM 31 29 31 30 31 30 1 1 1 1 1 1( )T

:=

Peak_Date Mon Day, N, ( ) MD Mon 30 Day+ N+

Div DinMMon 1-

M floorMD

Div

D mod MD Div, ( ) 1+

Q M D( )

:=

0.07 6.8 0.476=

Calcuate Totals Deaths = Total Inf x δ and %Dead

S0 PS3480

- 1.439 106

=39000

4.34 106

0.009=

<====Peak Deaths, Total 39,000Peak_Date 3 3, 47, ( ) 4 17( )=

Total Infected

Page 59: Mathcad - COVID-19 SEIR & SIR Sigmoidal Models2€¦ · 0hwkrgrorj\ ri wklv ,qyhvwljdwlrq 7klv zrun vwduwv zlwk d jhqhudo ghvfulswlrq ri wkh 6$56 &r9 9luxv dqg wkh dvvrfldwhg &29,

<== Epidemic Peaks April 17th with only 9% of the Peak UnMitigated Value Total Deaths: 39,000

JHy0

103=

Page 60: Mathcad - COVID-19 SEIR & SIR Sigmoidal Models2€¦ · 0hwkrgrorj\ ri wklv ,qyhvwljdwlrq 7klv zrun vwduwv zlwk d jhqhudo ghvfulswlrq ri wkh 6$56 &r9 9luxv dqg wkh dvvrfldwhg &29,

Calculate Time to Double, Tdouble and Fit Power Function to JH USA Data

Guess ex 2:= FitPwr ex t, ( ) JHy0

ext

:=

ResidJH2 ex( ) JHy FitPwr ex days, ( )

-:= Given 0 ResidJH2 ex( )= Ex Minerr ex( ):= Ex 1.234=

Fit JHy with a Power Function: Pwr t( ) JHy0

Ext

:= Daysdoubleln 2( )

ln Ex( ):= Daysdouble 3.302=

rows JHy( ) 44=

Extracted: Wuhan b, bm0.276 0.039( )

Extracted: South Korea b, bm

m 0 Rp 1-..:=

Nmax 37( )=

Peak_Date 3 3, 47, ( ) 4 17( )=

Calcuate Totals Deaths = Total Inf x δ and %Dead

60000

7.3 106

0.008=

S0 PS80

- 7.656 106

=

Total Infected

Page 61: Mathcad - COVID-19 SEIR & SIR Sigmoidal Models2€¦ · 0hwkrgrorj\ ri wklv ,qyhvwljdwlrq 7klv zrun vwduwv zlwk d jhqhudo ghvfulswlrq ri wkh 6$56 &r9 9luxv dqg wkh dvvrfldwhg &29,

0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 200

5.833 104

1.167 105

1.75 105

2.333 105

2.917 105

3.5 105

4.083 105

4.667 105

5.25 105

5.833 105

6.417 105

7 105

Model vs Data: Infected (Blue), Recovered (Green), Dead (Black)

JHyn

UIfn

Fe x( )

JHxn x,

EXN

"USA Total Confirmed Deaths ECDC March 1 April 15 CDC.txt"

Page 62: Mathcad - COVID-19 SEIR & SIR Sigmoidal Models2€¦ · 0hwkrgrorj\ ri wklv ,qyhvwljdwlrq 7klv zrun vwduwv zlwk d jhqhudo ghvfulswlrq ri wkh 6$56 &r9 9luxv dqg wkh dvvrfldwhg &29,
Page 63: Mathcad - COVID-19 SEIR & SIR Sigmoidal Models2€¦ · 0hwkrgrorj\ ri wklv ,qyhvwljdwlrq 7klv zrun vwduwv zlwk d jhqhudo ghvfulswlrq ri wkh 6$56 &r9 9luxv dqg wkh dvvrfldwhg &29,

6

5

Page 64: Mathcad - COVID-19 SEIR & SIR Sigmoidal Models2€¦ · 0hwkrgrorj\ ri wklv ,qyhvwljdwlrq 7klv zrun vwduwv zlwk d jhqhudo ghvfulswlrq ri wkh 6$56 &r9 9luxv dqg wkh dvvrfldwhg &29,

<== Peaks April 15th

Calculate Time to Double, Tdouble and Fit Power Function to JH USA Data

Guess ex 2:= FitPwr ex t, ( ) WCases0

ext

:=

ResidJH2 ex( ) WCases FitPwr ex days, ( )

-:= Given 0 ResidJH2 ex( )= Ex Minerr ex( ):= Ex 1.247=

Fit JHy with a Power Function: Pwr t( ) WCases0

Ext

:= Daysdoubleln 2( )

ln Ex( ):= Daysdouble 3.139=

Dbl_Days Nd2 Nd1, d2, d1, ( )d2 d1-

Log2Nd2

Nd1

:=Log2 x( )

log x( )

log 2( ):=

Find the Number of days to Million Cases

Days N( ) lnN c-

a

1

k:=

Days 106( ) 89.997=

Days 106( ) Rc- 1- 36.997=

Page 65: Mathcad - COVID-19 SEIR & SIR Sigmoidal Models2€¦ · 0hwkrgrorj\ ri wklv ,qyhvwljdwlrq 7klv zrun vwduwv zlwk d jhqhudo ghvfulswlrq ri wkh 6$56 &r9 9luxv dqg wkh dvvrfldwhg &29,

https://data.humdata.org

https://data.humdata.org

Page 66: Mathcad - COVID-19 SEIR & SIR Sigmoidal Models2€¦ · 0hwkrgrorj\ ri wklv ,qyhvwljdwlrq 7klv zrun vwduwv zlwk d jhqhudo ghvfulswlrq ri wkh 6$56 &r9 9luxv dqg wkh dvvrfldwhg &29,
Page 67: Mathcad - COVID-19 SEIR & SIR Sigmoidal Models2€¦ · 0hwkrgrorj\ ri wklv ,qyhvwljdwlrq 7klv zrun vwduwv zlwk d jhqhudo ghvfulswlrq ri wkh 6$56 &r9 9luxv dqg wkh dvvrfldwhg &29,

JH_SU READPRN "JH Sort States&US Names, Index, Confirmed 0toP1 3-10- to 3-22.txt"( )T

:=

JH_S submatrix JH_SU 1, 13, 0, 50, ( ):=