Giter Site home page Giter Site logo

github-user-growth's Introduction

GitHub User Growth

We have counts of GitHub users over time. Let's predict how this number changes.

Call new_users/(total_users - new_users) the interest_rate, and skip the first 18 months as this growth rate doesn't fit them. Here's interest rate over time:

lm(formula = interest_rate ~ when_int, data = g[-1:-18, ])
    # when_int is the number of months after December 2007.
    # interest_rate is really last month's interest rate;
    # it's new_users/(total_users - new_users).

Coefficients:
	      Estimate Std. Error t value Pr(>|t|)    
(Intercept)  0.1467628  0.0080344  18.267  < 2e-16 ***
when_int    -0.0015762  0.0002181  -7.226  3.3e-08 ***
---
Signif. codes:  0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1 

Residual standard error: 0.01248 on 32 degrees of freedom
Multiple R-squared:  0.62,Adjusted R-squared: 0.6081 
F-statistic: 52.21 on 1 and 32 DF,  p-value: 3.303e-08 

Note the that the interest rate decreases by about 0.15% every month. The plots (github-growth[1-4].pdf) make that relationship look very strong and makes the assumptions approximate linearity, homoskedasticity (unvarying variance), &c. seem valid.

I tried converting to a continuous interest formula, (That's what's in my notebook.) but I didn't get very far. So I did monthly compounding; Here's an estimate of the number of GitHub-users over time

A[t+1] = A[t] * ( 1 + r[t] )

where

A[t]   = Number of users in the current month (This must come from a month after June 2009.)
A[t+1] = Number of users in the next month
r[t]   = 14.67% - 0.15% * (Current number of months since December 2007)

And you can fix that so it chains months together and averages them and whatnot.

So the growth looks exponential with a decreasing exponent; think of it as compounded interest on number of users with a linearly decreasing interest rate.

github-user-growth's People

Contributors

tlevine avatar

Watchers

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