geeky

Elections fun - 2021 edition

Playing with Canadian 2021 federal elections data.

Jens von Bergmann

5 minute read

We noticed a lot of recent traffic to our blog post on the 2019 elections, so maybe that means that, now that all districts have been called, we should update the post with 2021 data. We will just lazily run the code from the old post with the new data. And given that the outcome was overall quite similar, we can also leave the text/commentary largely unchanged. Which makes life nice and easy for us.

On COVID Trend lines

Trend lines help us distinguish noise from the signal in data. COVID-19 case trend lines is an important tool for understanding where we are at, how we got there and which direction we are trending. This deserves more attention than it has been getting.

Jens von Bergmann

15 minute read

COVID-19 got me thinking about trend lines and the different ways people generate and interpret them. This is a question that’s of course more general than just COVID-19, but let me use this as an example to explain some very basic principles. This post is motivated by discussions I have had with a number of journalists, including Chad Skelton who nerd-sniped me into writing a post on trend lines and a thread discussing trend lines with Roberto Rocha and Tom Cardoso.

First-time buyer Lorenz curves

Taking a look at affordability for first-time buyers, and what useful metrics can be constructed to measure this.

Keith Stewart Jens von Bergmann

13 minute read

At the end of this odd COVID-19 summer we launched a reading group to bring together people interested in diving into papers and books looking at housing issues. Geoffrey Meen and Christine Whitehead’s recently released book Understanding Affordability: The Economics of Housing Markets has been the group’s first read. We highly recommend the book, it’s a good read for anyone looking for a practical understanding of how housing markets work and ways to think about supply and demand and what they mean for housing affordability.

Income mixing and segregation

Taking a look at the new StatCan D-index and related income mixing metrics

Jens von Bergmann

20 minute read

At the end of June StatCan released an interesting census tract level metric, dubbed the D-index, measuring how much the income distribution in each census tract differs from the metro-wide distribution, and we decided to take it for a test drive. We are a bit of a sucker for this kind of fine-geography index. Condensing our wealth of information into a single number is an interesting exercise that involves lots of attention to detail.

Behaviour change in response to COVID-19

Looking into real-time metrics to measure behaviour change.

Jens von Bergmann

10 minute read

With COVID-19 cases growing exponentially, Canada has introduced sweeping restrictions to curb the spread of the virus. People are asked to practice social distancing, work from home if possible, keep shopping trips to a minimum, keep a distance of at least 6 feet to people outside of their household, universities and schools have been closed, and travel has been restricted. Why social distancing? Just in case it’s not clear what the problem is, let’s take a look at the trajectory we are currently on.