Git Product home page Git Product logo

name_ages's Introduction

name_ages

Predicting the age of Americans based on first names (as of the end of 2014).

View my IPython Notebook here

The technique

I'm pretty sure I originally heard about this technique a few years back at a data conference (either Strata or PyData). I couldn't find the specific talk however I was able to find this paper which mentions similar techniques and this article from fivethirtyeight which itself references this blog article. Anyway, my point is, I didn't invent this idea, I just wanted to see if I could reproduce the results.

The data

I decided to try the exact approach (and dataset) from the fivethirtyeight.

Baby names

I grabbed the baby name data from the Social Security Administration which contains the first names of every baby born, "with at least 5 occurrences," since 1880.

Deaths

To properly predict how many people are alive today with any given name, we also need actuarial tables (more plesently referred to as "Life Tables" by the SSA) to predict how many deaths have occured.

The results

View my IPython Notebook here

My results are almost exactly identical to the results from fivethirtyeight. I attribute the slight differences I'm seeing in my results to the fact that I'm predicting out to January 1st, 2014 whereas fivethirtyeight predicted out to January 1st, 2013. It's possible our techniques varied but I can't really tell since fivethirtyeight does not show their work.

Note that the order of the X axis is reversed in my graphs

Josephs

fivethirtyeight me

Brittanys

fivethirtyeight me

name_ages's People

Contributors

mdbecker avatar zhou1000 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.