糖心视频

Science researcher creates app to explain math behind social distancing

Mar 23rd, 2020

Kelly Foss

Science researcher creates app to explain math behind social distancing

A 糖心视频 expert in theoretical ecology, evolution and epidemiology created an  to communicate some of the basic concepts behind the impact social distancing has on flattening the curve.

Using protective practices, such as deliberately increasing the physical space between people, is believed to help slow the rate of infection so hospital resources don鈥檛 get overwhelmed.

But many ask: Does it really work?

Epidemic modeling

鈥淚n some ways we鈥檒l never know the effect social distancing has had, unless we were able to visit an alternative reality,鈥 said Dr.  an associate professor jointly appointed between the Faculty of Science departments of Biology and Mathematics and Statistics.

鈥淏ut we can explore different scenarios using epidemic models, and what we鈥檝e created is one of the simplest types to give you a general idea of what might happen.鈥

Dr. Hurford鈥檚 app uses mathematical equations used for decades to model diseases such as measles, mumps and rubella and demonstrates how the number of infected people changes over time if no changes were implemented and with social distancing.

鈥淚 had been getting media requests, and I knew some of these concepts would be difficult to explain on the air, but I had an idea for an app,鈥 she said. 鈥淚 reached out to some graduate students for help and I worked with one of them to pull the app together in just a few days.鈥

Alec Robitaille is part of the biology department鈥檚  He helped bring Dr. Hurford鈥檚 ideas to life.

鈥淚 knew Alec was a whiz at coding,鈥 she said.

鈥淚t was my first time making a Shiny app and I was struggling to get the layout properly formatted. Alec improved the code to fix the layout, and added commands to pull data from other websites and to complete the computations more quickly. He did a lot of technical things that would have taken me a long time to troubleshoot by myself.鈥

Too early to tell

The latest version of the app became available in the morning on March 21 and now includes answers to questions submitted by the public.

鈥淲hen it comes to the question, 鈥淚s social distancing working?鈥 we are so early in the curve we just can鈥檛 know,鈥 said Dr. Hurford. 鈥淚 think scientists have done their best to provide good recommendations on how to cope with this situation, but a long-term strategy has yet to emerge because the science is still ongoing.

Dr. Hurford says more time is needed to develop better models, gather more data and learn more about the virus and its epidemiology.

But more and better results are coming out all the time.

An early start

If the current situation changes in Newfoundland and Labrador, Dr. Hurford also plans to populate a tab with information specific to this province.

鈥淲e still only have nine cases [as of publishing time], so we haven鈥檛 rushed to complete this component of the app, but we have some code that is nearing completion,鈥 she said. 鈥淭he idea is to have it automatically collect data from official sources and plot the fit of the model from the first tab to project cases for Newfoundland and Labrador and also to plot a social distancing parameter as a function of time.

Dr. Hurford points out that in this province, we鈥檝e gotten an early start on social distancing so we may not see a change in social distancing over time.