In 2013, <a href="http://redmonk.com/dberkholz/2013/01/21/github-will-hit-5-million-users-within-a-year/">a blogger</a> claimed that the growth of GitHub (GH) users follows a certain type of diffusion model called <a href="https://en.wikipedia.org/wiki/Bass_diffusion_model">Bass diffusion</a>. Growth here refers to the number of unique user IDs as a function of time, not the number project repositories, which can have a high degree of multiplicity. <p></p><div><a href="https://3.bp.blogspot.com/-vS9MDQCgBd0/WH3BSI7Cx4I/AAAAAAAAB_c/C2-peieUMY0Yeec9mYQvYmK5DGI6ON3cQCLcB/s1600/tweet%252Bpic.png"></a></div><p>In a response, I tweeted a plot that suggested GH growth might be following a power law, aka <i>scale free</i> growth. The tell-tale sign is the asymptotic linearity of the growth data on double-log axes, which the original blog post did not discuss. The periods on the x-axis correspond to years, with the first period representing calendar year 2008 and the fifth period being the year 2012. </p><p></p><div><a href="https://1.bp.blogspot.com/-ro0JOQHULtg/WH5oRKurOAI/AAAAAAAACAI/OvgQxm6WTXAunl5sxplw60WCKvpS4EW-wCLcB/s1600/406378aa.2.jpg"></a></div><p><a href="https://en.wikipedia.org/wiki/Scale-free_network">Scale free networks</a> can arise from <i>preferential attachment</i> to super-nodes that have a higher vertex degree and therefore more connections to other nodes, i.e., a kind of rich-get-richer effect. Similarly for GH growth viewed as a particular kind of social network. The interaction between software developers using GH can be thought of as involving super-nodes that correspond to influential users influencing prospective GH users to open a new account and contribute to their project. </p><p>On this basis, I predicted GH would reach 4 million users during October 2013 and 5 million users during March 2014 (yellow points in the <i>Linear axes</i> plot below). In fact, GH reached those values slightly earlier than predicted by the power law model, and slightly later than the dates predicted by the diffusion model. </p><p>Since 2013, new data has been reported so, I extended my previous analysis in R. Details of the respective models are contained in the R script at the end of this post. In the <i>Linear axes</i> plot, both the diffusion model and power model essentially form an envelope around the newer data: diffusive on the upper side (red curve) and power law on the lower side (blue curve). In thise sense, it could be argued that the jury is still out on which model offers the more reliable predictions. </p><p></p><div><a href="https://3.bp.blogspot.com/-bGpRfKABm-A/WH3HS0mkzWI/AAAAAAAAB_0/Areclq3TLBwY44P1AHSLnwOyQY6_oOgiQCLcB/s1600/rplot-linear.png"></a></div><p>However, there is an aspect of the diffusion model that was overlooked in 2013. It predicts that GH growth will eventually plateau at 20 million users in 2020 (the 12th period, not shown). The beginnings of this leveling off is apparent in the 10th period (i.e., 2017). By contrast, the power law model predicts that GH will reach 23.65 million users by the end of the same period (yellow point). Whereas the diffusion and power law models respectively represent the upper and lower edges of an envelope surrounding the more recent data in periods 6–9, their predictions will start to diverge in the 10th period. </p><blockquote>&quot;GitHub is not the only player in the market. Other companies like GitLab are doing a good job but GitHub has a huge head start and the advantage of the network effect around public repositories. Although GitHub’s network effect is weaker compared to the likes of Facebook/Twitter or Lyft/Uber, they are the default choice right now.&quot;  —<a href="https://medium.com/@moritzplassnig/github-is-doing-much-better-than-bloomberg-thinks-here-is-why-a4580b249044#.5wyb1l2qh">GitHub is Doing Much Better Than Bloomberg Thinks</a></blockquote>Although there will inevitably be an equilibrium bound on the number of active GH users, it seems unlikely to be as small as 20 million, given the combination of GH's first-mover advantage and its current popularity. Presumably the private investors in GH also hope it will be a large number. This year will tell. <p></p><pre><code><br># Data source ... https://classic.scraperwiki.com/scrapers/github_users_each_year/<br><br>#LINEAR axes plot<br>plot(df.gh3$index, df.gh3$users, xlab=&quot;Period (years)&quot;, <br>     ylab=&quot;Users (million)&quot;, col=&quot;gray&quot;, <br>     ylim=c(0, 3e7), xaxt=&quot;n&quot;, yaxt=&quot;n&quot;)<br>axis(side=1, tck=1, at=c(0, seq(12,120,12)), labels=0:10, <br>     col.ticks=&quot;lightgray&quot;, lty=&quot;dotted&quot;)<br>axis(side=2, tck=1, at=c(0, 10e6, 20e6, 30e6), labels=c(0,10,20,30), <br>     col.ticks=&quot;lightgray&quot;, lty=&quot;dotted&quot;)<br><br># Simple exp model<br>curve(coef(gh.exp)[2] * exp(coef(gh.exp)[1] * (x/13)), <br>      from=1, to=108, add=TRUE, col=&quot;red2&quot;, lty=&quot;dot dash&quot;)<br><br># Super-exp model <br>curve(49100 * (x/13) * exp(0.54 * (x/13)), <br>      from=1, to=120, add=TRUE, col=&quot;red&quot;, lty=&quot;dashed&quot;)<br><br># Bass diffusion model<br>curve(21e6 * ( 1 - exp(-(0.003 + 0.83) * (x/13)) ) / ( 1 + (0.83 / 0.003) * exp(-(0.003 + 0.83) * (x/13)) ), <br>      from=1, to=120, add=TRUE, col=&quot;red&quot;)<br><br># Power law model<br>curve(10^coef(gh.fit)[2] * (x/13)^coef(gh.fit)[1], from=1, to=120, add=TRUE, <br>      col=&quot;blue&quot;)<br><br>title(main=&quot;Linear axes: GitHub Growth 2008-2017&quot;)<br>legend(&quot;topleft&quot;,<br>  legend=c(&quot;Original data&quot;, &quot;New data&quot;,  &quot;Predictions&quot;, &quot;Exponentital&quot;, &quot;Super exp&quot;, &quot;Bass diffusion&quot;, &quot;Scale free&quot;), <br>       lty=c(NA,NA,NA,4,2,1,1), pch=c(1,19,21,NA,NA,NA,NA), <br>  col=c(&quot;gray&quot;, &quot;black&quot;, &quot;yellow&quot;, &quot;red&quot;, &quot;red&quot;, &quot;red&quot;, &quot;blue&quot;), <br>  pt.bg = c(NA,NA,&quot;yellow&quot;,NA,NA,NA,NA),<br>  cex=0.75, inset=0.05)<br></code></pre>