Group Abstract Group Abstract

Message Boards Message Boards

An SEIR like model that fits the coronavirus infection data

54 Replies
Posted 6 years ago
POSTED BY: martin belton

In this section we use the optimally fitted "TRUE" models to forecast daily new cases trends. We have models for USA, Italy, Finland and Sweden, and later, Denmark, (not necessarily in this order) to show how lifting restrictions causes a deviation from the forecast. Sweden is an interesting case, as there are no policy changes foreseen in the future. The picture for Italy will be provided when it is ready. The US and Swedish models will not be updated. The Finnish model will be updated last on the 13th of May, when restrictions are lifted. The model for Denmark will be fitted to the 13th of April, when restrictions were lifted.

The yellow curve is the actual number of daily cases, the blue curve is the centered 14 day moving average of those numbers, and the green curve is the trend forecast by the "TRUE" models.

Recall that in a "TRUE" model, the number of cumulative cases is matched to the R compartment of the model. The logic is that every individual who is found to be infected is effectively isolated and removed from the infection chain, thus becoming part, in reality, of the R compartment. This is different than the models we discussed originally which were meant to model the data in another way using the SEIR/SIR formalism (the compartments are defined differently, and we have argued somewhat vaguely why we think this works ... ). The SIR model considered in these "TRUE" models, are pure SIR models, that is, there is no delay term in the equations. I will come back and write the exact equations here.

June 22, 28-29, July 5-6,13, August 2: Updated. July 5,6 updated with weekend or Monday data. Next update in two weeks

June 15: This section will not be updated again until August 17, or then again, only occasionally until then.. Updated today

June 1,8: updated. For some countries there is an old forecast, in green, and a newer one in red. In the Swedish forecast, the red curve is the smoothened daily fatalities.

May 28: There is a new forecast for Finland. In green, the old model, in red, the new model. There is also a new forecast for USA.

May 25: updated

May 18: updated, the green curve is extended to 4 July.

May 12: The forecasts of some countries are now extended by a couple of months from May 4. There is now a forecast for Denmark. On the weekend all forecasts will be extended by two months. The Swedish model has, in red, the smooth number of daily fatalities.

May 10: earlier today I had posted the wrong file for the US .. it is now the correct one ... it follows the trend very tightly. These graphs will probably be updated on wee

Attachment

Attachment

Attachment

Attachment

Attachment

Posted 6 years ago
POSTED BY: martin belton

Dear Martin,

Please give me a couple of (or a few - I am really busy at the moment, fortunately) days to produce a clean version of it. If you have done a little mathematical and physics modeling you will probably understand why I chose to do it the way I do ... I have another version of it that produces a steady state ... etc. I will try to pack it all there, depending on how much time I have. Once you understand how to operate on the basic equations, you can get to model pretty much any effect which depends on susceptibility (lockdowns, lifting lockdowns, more or less strongly, etc.). I will attach the notebook in a reply to your reply directly (there is no space up in the main sections). Alternatively, I might start a new section for this purpose ... when ready, I will let you know.

Best, Enrique Enrique

Posted 6 years ago

Thank you!

POSTED BY: martin belton

Dear Martin,

Attached to this reply is a quick and dirty notebook which shows how to make S grow ... the change is in the equation for S'. If you uncomment the commented factor, you can also bring it back down to zero quickly ... sorry I don't have time to make this better looking. Hope this is helpful.

Regards, Enrique

Attachments:
Posted 6 years ago

Enrique,

Attached are two notebooks which I am currently using. The fitting methods are embedded in the report procedures. When fitting to cumulative cases, the large numbers in the latest data dominate the fit, but they are probably also more accurate. At the end of the CDCData.nb there is a method for fitting the first differences of the cumulative data to a first difference formula derived from the logistic model, if you also want to see more directly the influence of the early data. We are about to enter the tail phase of the epidemic in the U.S. The model requires an exponential decay in the tail. That didn't happen with South Korea, but the China data did fit. If the U.S. data doesn't follow the tail behavior, that would indicate the model isn't valid.

Bob

Attachments:
POSTED BY: Robert Rimmer
POSTED BY: EDITORIAL BOARD

Hello,

Is it possible to post an animation, and how?

Thanks.

Posted 6 years ago
POSTED BY: Zach Cole

Dear Zach,

Thank you very much ... indeed, my intent was to be "utilitarian" in the sense you point out, and I think I have more or less succeeded ...

But let me tell you, you have outdone me now, and I would almost like to ask you for help. If you have kept the daily slides, then please keep saving them ... and later, perhaps you might make them available to me as a time sequence ... I ask because I have not kept track of the parameters as time goes by, (lack of foresight on my part) and indeed, that would be very useful information for the sequel of this work which has to do with the methodology for fitting the parameters. As you mention it, having the history of those fits would go a long way towards completing that work; but I have not been keeping track of that history (because basically, my methods work well for the time being, and lack of foresight combined with lack of time to make a tool or keep track of all of them on a daily basis). With all that said, I hope I we can stay in touch and correspond about this matter later on. Once again, thank you for your good words, and I will try to keep making this as useful as I can to the community at large. If I only had the resources, I would do this for all countries. But for now, this will have to do.

Best regards, Enrique Garcia Moreno E.

Posted 6 years ago

I'm afraid I also lacked that foresight and only have a little saved (and most of that's just for the USA) as it was a while before I realized the significance that the changing variables had. I've begun a more thorough archive NOW though and I expect to keep it up for the future! I'll be happy to hand that archive to you whenever you like.

It strikes me that the hand-adjustment of the variables that you've been doing is analogous to the best-fit line trick of laying a ruler through a scatterplot of data with a linear trend and eyeballing and equalizing dots above/below the line. It is quite effective for datasets with a clear linear trend and likewise, your methods are self-evidently quite effective for these SEIR-like trend datasets.

A much more computationally intensive method would be to apply the appropriate Euler's method (or Runge-Kutta, I think 4th order? method) to the SEIR equations for the dataset at some early time per each group reporting data (world/country/province) with enough volume and shape to be fit to, and re-do that best fit for each day data is reported. The changes required of the variables to maintain that best-fit would then be tied to a more mathematically rigorous definition of "best" fit as well. Doing this and comparing the changes of variables over time per group would also seem likely to help determine correlations between generalizations of how the epidemic progresses as well as comparisons of each group's susceptibilities and methods of combating the virus.

POSTED BY: Zach Cole

You are right of course in what you say, but there is a caveat ... in using computational methods, I have had to "intervene" and fit to just part of the data, rather than the whole set, when the data was "messy" and behaved unpredictably ... I have since developed a more or less systematic way of doing these interventions with the aid of the additional parameter in the model (note it is not exactly an SEIR model). My line of thinking is that computational tools aided with further AI computational tools that emulate the actions of the interventions would be the ideal way to go about this. If I ever get time to do it, I will try to build such a tool. But for now, my approximate methods, the use of a more complicated model to get first approximations, etc. will have to do. Perhaps later we can discuss how one might do the fits with established methods in Mathematica ... if you are up to doing something like that. There are a couple of us now working together on this ...

Posted 6 years ago

Hi, can you post the code you use about how the fitting is done to obtain beta,sigma,gamma,Ishift,Eshift, for example for some random data of {day , infected, resistant} ?

Thanks.

POSTED BY: anoldfriend

Hi,

This is not possible at the moment, it is incomplete work. At the end of the day, I do quite a bit of fine tuning based on my by now fairly good understanding of the behavior of the parameters. You also need to make judgement calls regarding the quality of the data, and on what part of the data stream you want a better fit. For example, in the China model I fit to the tail first (once it was there), and then adjust to fit the front part of the data stream. This is, at the moment, an interactive process. I hope to have useful tools to do this later on more or less automatically. But that is quite a bit of development work.

Hello,

I will post this soon for the SIR models.

Enrique, I am writing from Italy. I am a physicis. Today I was trying to see how to adapt SEIR to the OBSERVED value and I found your work ! Impressive. Congrats. You know how bat the situation is in Italy. Your work would be extremely useful. I would like to suggest to additionally test your work on a couple or regions in Italy: Lombardia, Emilia Romagna, Veneto and Piemonte. In this way you could spot if there are or not differences in the fitting parameters. Would it be possible at all ? Please reply me asap: time is of essence. With my best regards Roberto Battiston

Dear Roberto,

I would be glad to try to come up with a model for the Northern regions of Italy, if I can find the data. Alternatively you can tell me where to find it, that is probably a better solution, or you can send them to me (I can tell you how, or you can post them as Mathematica lists of numbers in your reply). I can curate it by hand if necessary. Please bear in mind that it is difficult to really know how the parameters are going to end up in the end until the the I curve has peaked. Although I have learned to make educated guesses for this disease now. So I think I might be able to get something that is close to the reality. Glad to help if I can. Personally, I don't think the outbreak in Italy is going to get much worse than is implied already in the posted model, in terms of total number of cases (susceptibility). Best, Enrique

Here are the models for Spain, Germany (SEIR or SIR), France, and now Austria. The recovery data from the UK does not seem to be forthcoming. This makes it difficult to produce an SEIR model. Thus, I am replacing the UK model with a model in which there is an estimated resistant curve based on available data from European countries of comparable size and CFR and a time delay. I will explain this if there is interest. The UK model is now regularly updated according to this recovery schedule. Similarly, there is, in the JHU data, a huge leap in the French number of cases on 4.4, and although I was gather other figures for 4.5, I was unable to do so for 4.6. Official data can be found in the French government's site. However I have reverted to using the JHU data as of April 14.

The model for Austria now uses further modification of the SIR model equations. It allows to model growth in susceptibility at any moment of time after the initial conditions. Here, we apply the growth term (a term in the equation for s') at approximately the time when some restrictions were lifted on April 13. You can see the s curve grow from there on a bit, making the downward slope of i increasingly gentler ... the initial susceptibility is roughly the number of cases we have now.

September 5: Updating for this section is paused for now. In the reply underneath it, there is summary information pertaining to the situation in the large five Eurozone countries, up to date.

August 9, 16: We will pause the updates of models for the UK given that we have no real recovery data. We will, when we have time, replace the model by a TRUE model. We will also pause the updates for Spain and France. The outbreak has run its course past the point for which the model serves a purpose. We will try to produce new models now that there seems to be a new outbreak starting in those countries. We will, temporarily, continue to update the German and the Austrian model for one more week. The outbreaks there have also run past the point which the model serves a purpose, and it might be that new outbreaks are developing there yet, although this is not quite clear. IN THE REPLY TO THIS SECTION BELOW WE GIVE SUMMARY INFORMATION PERTAINING TO THE FIVE LARGE EUROPE COUNTRIES.

July 26, August 2: Updated. By now the models have served their purpose, and we only show here how there is new growth in all these countries. We will decide soon whether to continue to update this section, since it is past the modeling effort. The disease is now on a course of its own, perhaps a second wave, perhaps a steady state. It is possible to model all these conditions, but the models have to be revised frequently and according to what the data shows, and that is work beyond the scope of these pages. If there is an update, that will be in a week.

July 18: There is now new growth in all these countries

July 12: Updated. As the numbers in the UK come down, we see new growth in Germany, Austria, and France.

June 28-29, July 1-6: Updated with July 5 data. In the reply below we have the weekly totals since May 2, excluding the current week. Some countries which had their outbreak under control are experiencing new growth. NEXT UPDATE NOT UNTIL JULY 19 OR 20.

June 22: This section will now be updated in the early part of the day, with the results for the day before, once a week, until August 17. We will try to update it more often than once a week, but do not promise to do so. Next scheduled update, June 29. You can see that the countries in this section are now down to a trickle of cases that will take a long time to bring down. Having lifted restrictions, and without perfect contact tracing, it is almost impossible to eliminate the infection or bring it down much more. But we hope that it is done. The best model is that of Austria which accounts for the effect of lifted restrictions, and ever increasing number of susceptible people, however tiny. We might revert the UK to a TRUE model, which gives a very accurate picture of how the outbreak is really evolving towards the end (and given that there is no real recovery data), but we will keep the Austrian model as it is and the German model as it is.

June 19: Next update, June 22. After June 22, updates to this section will be weekly. The fatalities per million graph just in the reply to this section below will be updated daily.

June 4-18: updating. Label of French model corrected. Starting June 22, this model will be updated only occasionally until Aug. 17th, when we will resume normal activities. The fatalities per million in the reply to this section just below will still be updated every day if possible. As a reminder, the daily tallies pdf document for these and other euro countries if together with the notebook in a reply to Kaurov, above the Finnish section. After June 22, it won't be updated again until August 17.

June 3: Updating. The French data last night had a huge correction. We are keeping a consistent series instead of reflecting the corrections from now on, as it is almost the end of the exercise. So we just took a data point unchanged from the previous date. The French data has suffered huge corrections often. It makes for poor modeling. It would help if the whole time series were retroactively corrected, like it is in Finland. But this does not seem to happen. In any case, the model will continue to be good in that the forecast is dependable. We will make a daily cases forecast for Spain and France now that we have "TRUE" models for these countries and put them in another section soon.

May 29-June 2: Today we are replacing the model for France with a "TRUE" model. The data for France has suffered many corrections. It started as case data for hospitals, later was expanded to include nursing homes as well. To make things more complicated, the recovery data pertains, it seems, only to hospitals. So it is not really possible to model the outbreak as we had hoped. The "TRUE" model here is difficult to fit because of the many corrections that have been made to the time series. So we have fitted the curve to the last portion of the data, which are the most consistent (but even yesterday there was a major correction to the data ... in any case).

May 27-28: Updating. We have replaced the Spanish model with a "TRUE" model due to partial lack of recovery data or a good estimate for that data. Although we had not shown it before, it was fitted on May 4 and it seems very stable. Over the weekend we will try to replace some of the other models with better models using recovery estimates or "TRUE" models where this is not possible. A quick and dirty notebook that shows how susceptibility can be made to grow will be posted in the notebook section just above (in a reply to Kaurov).

May 20-26: Lately there are delays in the reporting of data for this section (as well as inconsistencies, such as fewer cumulative fatalities from one day to the next). This section will be updated with a delay of one day, except for Austria. The UK JHU time series is now inconsistent. It appears that Spain has stopped reporting recoveries. I will leave this last picture unmodified until I have time to compute an estimate based on the historical rate or replace it with a "TRUE" model.

May 8-19: Updating. Probably soon I will stop updating this section on a daily basis, to update perhaps on a biweekly basis. Another section with "TRUE" models for the countries in this section will be started, hopefully soon. Not only are the "TRUE" models standard practice in epidemiology, I can also parametrize them optimally almost automatically. They give very good forecasts once there is enough data as long as there are no changing circumstances (policy changes). The UK model has been replaced by a SIR model, and the Spain model has been adjusted. A notebook with code to produce the "TRUE" models almost automatically will be provided.

May 6-7: updating.

April 29-May 5: updating.

April 28: updating. I found a source with daily increments for the Spanish data. Let's hope they are consistent. The French data appears still inconsistent. I will try to recreate a consistent series from the French government website when time permits.

April 27: updating. I will not update Spain after today until I get hold of the data from local authorities if I can. The JHU data is inconsistent both in number of cases and in recoveries. It seems the historical series is being updated retrospectively, but according to the Spanish authorities, it is not yet ready. The temporary lump sums provided temporarily make for very poor data. When it becomes ready, I will continue to update this model. If I can obtain reliable information from press reports, I will update my data thus by hand.

April 26: updating. Today, April 26, the recovery data from Spain is highly anomalous, for the second time (in the past, counting method changed). Unless this datum is corrected, from now on I will use an estimate based on a recovery rate function that can be computed from the data up to yesterday. of adjust subsequent data with a constant after today's estimate. Using this function, we obtain today's picture. The French JHU data is still anomalous, so I will continue to use my hand curated series.

April 25: updating. I have corrected the end of outbreak for the Austria model to late summer at the earliest, if nothing changes too much ... as further restrictions are lifted, this is likely to change again. The JHU data series for France has apparently been corrected. I will try making a model with that data tomorrow. In the meantime, what I have been using is working fine.

April 24: updating. IT seems the model for Spain might need a new steeper rise ... The JHU data for France is inconsistent, and the government data is partial or I cannot curate it all ... I am curating data by hand now based on various reports, but I might have to give up on this model unless there is a consistent data source which I can easily get a hold of.

April 23: The date is now correct in the Spain model. It appears, unfortunately, that my forecast regarding the effect of going back to work to soon was correct weeks ago.

April 22: The numbers in Spain seem to be on the rise, some ten days after part of the country went back to work. In a little while we will update our forecast for Spain in the main section, which allows for growth in the number of susceptible individuals. We include the same model here ... it is based on a modified set of equations which I might post later. We hope that this will not bear out, but for now, it seems as if it might. The model is a modified SEIR model which I will post in the aftermath of all this. I also replaced my German data with the JHU curated series, resulting in a new model

April 21: Updating. The model for Austria now uses a more elaborate model based on the SIR model which allows s(t) to grow. I might post a notebook in the aftermath, without a discussion. Notice that susceptibility grows after April 13, when restrictions were ifted.

April 19: I have put the German SEIR model again.

April 18: updating, the Spanish recovery data not forthcoming ... as I said yesterday, this model will need to be revised as the data is made available. For the moment, I am using extrapolated recovery data.

April 17: updating. Spain changed its counting methods today. As was in the case of China, I will temporarily correct the data, until there is enough data to see what the trend is and revert back to the data that will be provided from now on. Surely, it will necessitate a revision of the model. Apologies for this. Also, the entire JHU data series (number of cases) has been altered. The end result of this is that I do not have good data to provide a model. I have posted what I was able to come up with based on previous estimates. It will be necessary to have at least two more weeks of data before anything reasonable can be done about this, OR, the data series needs to be corrected as it probably still needs to be.

April 15: updating I am replacing the German model with an SIR model for which I get a much better fit (it is easier to fit these models). The model gives an estimate of R0. For the equations of the SIR model used see the response towards the bottom of the post.

April 11-14: updating. (French data ok after checking, yesterday I used the government website, I use their number of cases reported there, and their TOTAL number of deceased: gouvernement.fr/info-coronavirus/carte-et-donnees). Today, April 14, I have reverted to use the JHU data.

April 10: I updated the model f

Attachment

Attachment

Attachment

Attachment

Attachment

Here is a picture with the fatalities per million of Italy, UK, Sweden, and the US; and now also for Brazil and Mexico. For the US, for example, this translates into a forecast of about a total of 146 000 fatalities during the outbreak. We will update this on a daily basis but keep the June 1 forecast. For Brazil, it translates into over a million fatalities in the long run, and the fatality per million forecast will surpass that of every other country. This model will be hard to verify as there is not yet enough data (the data was restored last night). Only time might tell what happens in the end.

September 14,20,27: pictures updated. We need to update the models for Brazil and Mexico. Next update in about two weeks.

September 5: Brazil's fatality rate is now higher than that of the US, Sweden, or Italy. IHME updated its fatality forecast for the US for the end of the year to something above 400 thousand as the most likely estimate.

August 28: Brazil's fatality rate has now caught up with that of the U.S. and is headed higher. Shortly it will surpass Italy and Sweden. IHME now forecasts around 317000 fatalities in the US by December. Unless there is another spike in the number of cases, we doubt that the number of fatalities will be so high. They should start declining soon. We hope to make a new model for the US soon.

August 24: The IHME forecast of fatalities for Sweden and Brazil (see below June 14) by 4th August was way to high ... our forecasts are almost exact. In particular, our forecast of the Brazilian fatality rate dates back to early June and it is our most exact model. The number of fatalities is nowhere near what IHME predicted. However, the estimate for the US in October will turn out to be, most likely, low, as there was an upsurge. We have not calculated a new model for the US, but there should be enough data to do that in the near future.

August 9: We see clearly a second wave in the making in Spain, and probably elsewhere in Europe. We will compute a new model for these waves when there is enough data. The weekly total in Spain this week is back to levels of 25 April.

August 1: There is now growth in all five big EU countries, and quite a bit of it in Spain

July 27, 28: We continue to observe growth in the big 5 euro countries, especially in Spain, France, and Germany. Italy and the UK seem under control. We have adjusted the model for the fatalities rate for all countries except the US. Our forecast for these countries have changed relatively little. There will be a substantial change for the US when more data is available. The date when Sweden's rate becomes larger than Italy's has been pushed back by three days, from the 12th of August, to the 15th of August.

July 18: We observe new growth in the big 5 euro countries, and an uptick in the fatality rate in the US.

July 7: IHME forecasts 88000 deaths in Mexico by October. Our forecast is slightly under 80000.

July 3: Our forecast for the number of fatalities in the U.S. for the 4th of July is within the margin of error of our calculation (about 3%). It is slightly lower than the actual. We will keep the same forecast for the HGHI forecast for September. On Monday we will provide a more specific number, but we guess it should not be more than 160000 (vs the 200000 of HGHI) - more on this on Monday. We note, however, that there is an uptick in the fatality rate, so it is hard to know exactly what will happen. Hopefully the situation in the U.S. stabilizes and improves soon.

July 1: We are adding the weekly totals for the five big Euro countries since May 2. We exclude the current week. Weeks run from Sunday to Saturday.

June 26: There is a significant uptick in fatalities in the U.S. Our model might have to be recalculated if it persists

June 23: This section will be updated in the mornings with the results of the previous day.

June 14: IHME (https://covid19.healthdata.org/brazil, and https://covid19.healthdata.org/sweden) forecasts 165590 fatalities for Brazil by August 4th, and 8534 for Sweden. Our model forecasts 6012 for Sweden and 100484 for Brazil. It will be a good check for our modeling. A similar projection for USA extending to October 1 forecasts 169890 fatalities. If the country avoids a second wave, our model indicates that there will not be more than 150000 fatalities. The IHME model for USA can be found in covid19.healthdata.org/united-states-of-america. We will follow this closely, always hoping for the best.

June 9: University of Massachusetts, reports the Guardian on June 9, forecasts 130000 fatalities by 4th of July in the US. Our model's forecast is 128550, slightly lower. Our MARGIN of ERROR is +/- 3000. If w

Attachment

Attachment

August 30, September 6,20, 27: We have updated all the pictures ... this section will be updated only during weekends. Next update in about two weeks.

August 15: We have replaced the weekly totals with totals per 100000 inhabitants. In Finland, for example, the threshold level at which a country is considered risky is 8 per 100000 for two weeks. We can see that both Denmark and Sweden are well above this threshold now, and both doing quite as badly. Restrictions are being reintroduced there, as well as in Norway and Finland.

August 9: We see that Denmark and Norway are back to levels experienced at the beginning of May, end of April. If a second wave ensues, we will compute new models for these countries.

August 2: We now see clear growth in all scandinavian countries, except in Sweden where there are nevertheless still a lot of cases

July 27: We have adjusted the fatalities forecast for Sweden. See the fatalities rate model in the reply below the Europe section.

July 26: The numbers in Sweden are decreasing. We believe this is due to another change in strategy, that of no longer doing contact tracing. We actually believe that had Sweden stuck to its original testing strategy, our forecast would be right on the dot. We think the daily number of cases will be about half of what is in the forecast from now on (forecast for daily cases is the curve in green).

July 20: we have corrected for the effect of increased testing in Sweden

July 7: Sweden's numbers are coming down. We expected this during the holiday month when city folk move to summer cottages. We expect this to continue throughout July, but it is unclear what the effect will be come August. It might be that the holiday works effectively as some kind of lockdown and brings the total numbers down; otherwise, they could bounce back to their higher numbers. It might be that we need yet a newer model than the one in the section above.

July 5: We are adding a weekly forecast for Sweden based on the new model in the main Scandinavian section.

July 1: We are adding the weekly totals since May 3 for Scandinavia minus Sweden. Weeks go from Sunday to Saturday, and the current week is excluded. Sweden is scoring at around 8000 cases a week, completely out of the scale of the graph.

June 26. Looking at the data in the actual website of the Swedish health authorities (https://experience.arcgis.com/experience/09f821667ce64bf7be6f9f87457ed9aa, upper right corner), the number of daily cases continues to increase. It is unlikely that this is only due to increased testing (testing increased at the beginning of June, so one would expect the number of cases to stabilize by now). But we will wait and see what happens in two or three weeks with both forecasts. However, in the last three weeks, the positivity ratio (number of cases / number of tests) has increased at times, which is an almost certain indication that there is a very real uptick in the number of infections.

June 14. IHME (https://covid19.healthdata.org/sweden) forecasts 8534 fatalities by August 14. Our model forecasts 6012.

June 11. We have added a model based forecast of fatalities. The model curve is in a reply to the European section, along with that of other countries. Again, this model is obtained by fitting cumulative fatality numbers with the R curve of a SIR model. Again, I owe an explanation of why this works.

Here is the model forecast for Sweden, updated today. The forecast was made on May 4, and has held steady since

Attachment

Attachment

Attachment

Attachment

Dear @Enrique, is the notebook you attached to your head post the latest one? I see many images in your post that are not in that notebook. It would be great to see your most complete recent notebook for all things that you demonstrated. Thank you for sharing, this is very nice!

POSTED BY: Vitaliy Kaurov

Hello,

The published notebook is not my working notebook. I am on travel for a week. I hope to get to updating the published notebook then, apologies, and thank you.

Hi,

I have updated my notebook (March 20) with the China model and data. I will add the other models when they stabilize.

I have updated the notebook again, there was a mistake in the notebook I posted before.

August 30, September 6: pdf document updated. Next update at the end of September.

June 15,22, 28-29, July 5-6,13, 19, 27, August 2,10,17: PDF documented updated with weekend data - no country seems to be succeeding in eliminating the virus completely. NEXT UPDATE in a week. The June 22-promised notebook for fitting parameters automatically is not yet ready, I will try to get it ready this week, but I can't promise, except it will be ready some time. --- The pdf document will now be updated only on weekends. It is interesting to note how many countries which have brought the number of new cases down have settled on a small constant number of daily cases below which the numbers are not dropping, for example, Austria and the Czech Republic. Some countries have been unable to bring down their numbers at all, such as Poland. Some countries have just peaked (US, Russia), and some countries are growing (Mx, Brazil).

June 1,8: Updated. In this section soon there will be two new notebooks, pertaining to the automatic determination of parameters, and to making susceptibility grow.

May 20-21: The pdf with smooth daily tallies now includes tallies for Russia and Brazil, in addition to all the previous 20 countries. This file will be updated on Mondays only

May 12: The pdf with smooth daily tallies has moved here. Soon I will post a notebook with the

Dear Vitaliy,

I realize it is about two months now and I have not updated my notebook. As soon as I get the time (that is, I go on holiday, in about a couple of months), I will at least publish another notebook which has two things. A different kind of model that I have been discussing here (I call them "TRUE" models, and it is what epidemiologists usually use) which is very good for forecasting once there is enough data, and also, a set of programs to find optimal fits of the models to data automatically. This notebook will contain also the utility program from which you extract the forecasts, to get the pictures I have at the bottom of the post and which I added just a few days ago. I will not publish a notebook with fits to all data sets and gives you all the pictures ... but at least one, so that people can then do their own with the data they might be interested. I will also update the old notebook to contain both SEIR and SIR models of the kind I have been discussing since the beginning, with ONE data set. These, unfortunately, are harder to fit, and I don't have yet a fully, or almost fully, automated way for fitting the parameters; I have a set of "rules" which I apply to get the fits, and they work most of the time, but not always, and they are not fully automatic in the least bit. Apologies for the delays and the limitations. I am up to my ears with work. During lockdown, I have been busier than ever!

Regards, Enrique

Posted 6 years ago
POSTED BY: Robert Rimmer

Thanks!

Dear @Enrique Garcia Moreno E. thank you for sharing! Could you please share the notebook with Wolfram Language code? You can attach it or embedded into the post.

POSTED BY: EDITORIAL BOARD

Right, I apologize I haven't done it, it has taken me a while to get this right. I will try to get it done by tomorrow, or else, I will be on travel and it would have to wait a week. The trouble is I am using approximate data or data straight out of websites, rather than the github data, which I don't find I can computer read. But an approximation to the nearest hundred works fine (as in the JSU CSSE website itself). I will explain in the notebook with more detail other aspects pertaining to the data, such as a correction for the counting methods change. I am now modeling the Italian outbreak but it is to early to settle on any parameters ... but I think, and I want to believe, that it will be controlled ... apologies again and thank you for your patience.

Attached, I tried embedding it and even though I am signed into the cloud, I can't do it.

Posted 6 years ago
POSTED BY: Robert Rimmer

Excellent to get this kind of confirmation ... later tonight, EET, I will post an update with the equations and parameters of the model, which changed a bit last night, for the last time I hope. I can now really calculate R0 classically, and it is different, unfortunately higher ... Thanks for sharing this.

Dear Robert,

Would you happen to have a brief notebook which implements your logistic model based on the number of cumulative cases? I would be very grateful to you ... I need this because I have a case where I only have the cumulative cases data. I thank you in advance for your help.

Best regards, Enrique

Posted 6 years ago

Enrique,

Attached are two notebooks which I am currently using. The fitting methods are embedded in the report procedures. When fitting to cumulative cases, the large numbers in the latest data dominate the fit, but they are probably also more accurate. At the end of the CDCData.nb there is a method for fitting the first differences of the cumulative data to a first difference formula derived from the logistic model, if you also want to see more directly the influence of the early data. We are about to enter the tail phase of the epidemic in the U.S. The model requires an exponential decay in the tail. That didn't happen with South Korea, but the China data did fit. If the U.S. data doesn't follow the tail behavior, that would indicate the model isn't valid.

Bob

Attachments:
POSTED BY: Robert Rimmer

Robert,

Thank you very much!

Best, Enrique

Posted 6 years ago

Thank you, it's much more clear now.

As a teacher of graphing and visualization, might I make a proposal that you properly label chart axes with units and also label charted values (which colour is which variable).

This makes it much easier to instantly understand the graph.

Thanks for your efforts and sharing them.

POSTED BY: S M

Thank you, your points are well taken and I will do so in the next round ... there are already some updates and some changes and some things that I still need to clarify (or else I am creating confusion) ... but I think I will wait a few days and see how close future data is to the model without having modified it further ... I am hoping in the end to have an accurate description of what is observed by the data and I hope to publish the equations that give the model. Thank you once again.

Posted 6 years ago
POSTED BY: S M
POSTED BY: Robert Nachbar
POSTED BY: N Hari Dass
POSTED BY: Robert Nachbar
POSTED BY: Robert Nachbar
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard