6
5 Comments

I made an epidemic outbreak simulation with JavaScript

I’ve recently found a couple of excellent simulations done to explain how an epidemic spreads visually and how different measures can affect its growth.

This inspired me to start building my own simulation with JavaScript as I do have a few different questions and things I wanted to test out myself.

One thing led to another and I tried to make it playable so you can test the effects of different measures like improving hygiene and social distancing.

Let me know what you guys think!

https://lab.kelvinzhao.com/stopit

on April 5, 2020
  1. 1

    Hi. Very good Idea! But with any input data result is bad :(

    1. 1

      @evasoft, that's really weird, did you click on the button to restart the simulation with your input?

  2. 1

    Hey, I tried it but I felt it is calculating incorrectly.
    I kept Social Distancing to 0 & Social Distancing to 5.
    When it's on 5, it should have better results as that is a major thing.

    1. 1

      Hi @yugen, do you have a screenshot of the results? It definitely should have a better result. There is a button to restart the simulation with your new settings, did you miss that? I had some friends mentioned they didn't notice the button.

    2. 1

      But it's a great thing!