Code Monkey home page Code Monkey logo

lifespans's Introduction

Lifespans over time

On 7/18/2020, Patrick Collison tweeted:

Of people with Wikipedia articles, average age at death of people who died in a given year.

[Slightly smoothed; incomplete dataset (~50k deaths); only including deaths age >= 20. I previously tweeted a version with x = year of birth, but decline in recent cohorts was confusing.] Patrick's chart

I found that interesting, and built this one, which is slightly different:

Avy's chart

This chart shows a similar overall trend, but in fact it also reveals other details that Collison's data didn't show. I used the Wikidata API to pull all deaths available on the Wikipedia structured knowledge graph, bumping the sample from Patrick's 50k deaths to 2.2M instead. By picking up all data, I'm also pulling all the artifacts in the data, such as the very obvious spikes every hundred years, particularly the one from 1/1/2000.

Additionally, another piece that caught my eye were the very obvious drops during WWI and WWII, which are also missing in Collison's original chart.

I can't explain why our pre-1400 trends are so different, or why mine shows a cyclic pattern, so if you have ideas, or can point out any issues in the code, let me know!

lifespans's People

Contributors

avyfain avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.