Рет қаралды 4,847
I try to predict the number of people infected by the novel coronavirus (2019-nCov) using an exponential function and a logistic function in Python. The prediction is for confirmed cases in mainland China, published by the National Health Commission. Please be advised that no one can know anything about the future, and that this is only an academic exercise. Even though I have a somewhat jovial tone in this video, I think that the outbreak of the novel coronavirus in Wuhan is a terrible and terrifying tragedy.
You can find the Jupyter notebook here:
github.com/gregwinther/youtube
UPDATE Mon 17 Feb 2020: My prediction at the end of this model has been proven incorrect. Another of many lessons I have had that one cannot predict the future. That said, my prediction that the number of confirmed cases in mainland China would plateau seems to be reality soon, as the growth in number of cases is now in low single-digit percentages per day. The daily numbers from NHC recently also includes "clinically diagnosed cases", patients that are diagnosed by symptoms and signs, without testing for the presence of a virus. It is easy enough to include such a "structural break" in a model by introducing a binary variable - equal to one after the brake, and zero before.