COVID-19 and Log Scales

Have you ever wondered how you can use data to learn about the growth of COVID-19 cases?

We answered that question by looking at how long it takes for reported COVID-19 cases to double in Canada. We did this by plotting them using a logarithmic or “log” scale on a line graph.

We created two log scale graphs:

  • Daily reported cases of COVID-19 in Canada
  • COVID-19 fatalities in Canada

What’s a log scale?

Log scales allow us to identify when exponential growth is happening, even if we don’t see that right away in our data. To see if there’s exponential growth, we tell the log scale what to do using math. In our case, we wanted to see how many days it took for COVID-19 cases in Canada to double.

What do the blue bars and red lines mean?

There are two plots in these visualizations: a bar plot and line plot.

  • Blue bars (left-hand “y-axis”): this is a bar plot that shows the number of daily reported cases. To create this plot, we used data from the Johns Hopkins University Center for Systems Science and Engineering (JHU CSSE).
  • Red line: this is our log-scale line plot that we created by doing some math. It matches up with the red numbers on the right-hand side of the graph. It shows us how many days it takes for COVID-19 cases to double. We made this happen by telling our log scale to take the data from the JHU CSSE and count it using a base-2 log scale. This means we count in factors of 2, and the y-axis values represent the exponent values. For example, a y-axis value of 5 means 2^5 = 32 confirmed cases.

Data source: Johns Hopkins University Center for Systems Science and Engineering

Data source: Johns Hopkins University Center for Systems Science and Engineering

Reflect on what you see

Look and interact with the data visualizations above. When you mouse-over the visualizations, you’ll notice more information appears.

Think about the following questions:

  • What do you notice about the blue bar plot?
  • What do you notice about the red line plot?
  • What do you wonder about the data?
  • Can you use the plot to identify on what dates the number of cases doubled?

Use the fill-in-the-blank prompts to summarize your thoughts:

  • “I used to think_______”
  • “Now I think_______”
  • “I wish I knew more about_______”
  • “These data visualizations remind me of_______”

Share your reflections

Below are some  ways to share your thoughts about the data visualizations. If you want to publish your reflections online, make sure you check in with your teacher or guardian. You can also look at tips for writing reflections.

Learn how we visualized the data

Go to our walk-through (in Jupyter notebook format) to see how we used the data science process (formulating a question, gathering the data, analyzing the data with code, and creating the visualizations) to create these visualizations. In the notebook, you can also explore similar visualizations for several countries affected by COVID-19.

Teacher resource

To learn more about how to use Callysto learning resources (Jupyter notebooks) in your classroom, visit our getting started page.