How many Stan users are there?

It seems we could look at a number of pre-existing data sources (eg discourse views and contributors, papers, StanCon attendance etc) to inform an inference of how many people use Stan (and/or use things that use Stan). We could also generate new data (eg via surveys etc). Do we know the answer and/or how best to work it out?

Iā€™ve thought a tonne about surveying the Stan community or potentially capture-recapture techniques, but generating new data in this way would be a lot of work and my current funding wouldnā€™t cover it (thatā€™ll change next year though!). Iā€™d be interested in collaborating if anyone is interested. :)

As is hopefully obvious, i am keen to help. I can probably deploy people on this who can help make this happen if we know what it is that we needed them to do.

How about asking who has registered to discourse? From that we could extrapolate the population size for those who we could reach by survey?

@avehtari: who would we survey and how would we get the survey to them? I feel I am being dim.

From memory the hope was to utilized a snowball survey (once you finish you forward onto other people in the population), which is generally what you use when you have a hard to define population.
One of the stats grads here, Jonathan Auerbach and I talked about starting multiple snowballs (Andrewā€™s blog, Discourse, Twitter, StanCon mailing lists, etc.) and then tracking what snowball people were recruited by (and if multiples) as a way of measuring coverage.

2 Likes

This is a fascinating statistics question. Maybe I could post a blog on this and see if there are any thoughts.

6 Likes

@lauren I think you should name that design a snowball fight šŸ˜‚

Thatā€™s a fantastic name!!!

@andrewgelman you can, itā€™d be interesting to see what folks think.

Whatā€™s your definition of a Stan user? Is it someone who once downloaded Stan and ran a model? Or is it someone who uses Stan regularly, and if so, how regularly? What about people who use packages like brms or rstanarm or prophet that are built on top of Stan?

There are over 3K users registered on Discourse, but that doesnā€™t mean theyā€™re regulars. Many of them only showed up once.

1 Like

Blog post on the topic scheduled for Monday.

For context, UK academic departments (eg the one I sit in) are assessed (as part of the ā€œResearch Excellence Frameworkā€, REF) on the basis of some criteria: the next assessment is imminent, but the one after that will be in 2026. When aggregated over each entire University, the outcome of that assessment process modulates the amount of (Quality-related Research, QR) income that the University receives from the UK government. So, itā€™s important to inform the assessment process with pertinent information.

One of the three assessment criteria is ā€œimpactā€, which relates to the uptake of academic research outside of the academic discipline it came from and is metricated in terms of ā€œreach and significanceā€ during the census period. Unfortunately, ā€œreach and significanceā€ is not defined quantitatively. However, the notion of the census period is defined as people using the research during a specified period of time (eg 2021-2026).

The specific motivation for my question is that Iā€™d like to understand how we (locally to my department) could quantify the ā€œreach and significanceā€ of any enhancements to Stan that (we hope!) might come out of our work between now and 2026. It seems natural to start by finding out what we (as the Stan community) know about how big we are now.

So, in answer to your question, I think Iā€™d ideally like to know how many people and/or organisations are making use of specific subsets of Stanā€™s code (including in any packages that use Stan) during a specified period. Iā€™d also like to know where they are based geographically, whether people work in academic, industry or government, the demographic of applications they are working on, etc etc.

Thatā€™s clearly hinting at scope creep, but hopefully helps explain the specific reason I asked the question, which I see as an important step towards quantifying the impact of our work to help enhance Stan.

I think this would be relevant outside of the REF as well - a useful addition to many grants/impact sections.

We were at the point where we were focussing on questions around this, plus an emphasis on barriers to entry. I can dig them up if thereā€™s renewed interest. I believe the conclusion last time was that the time-cost of doing it wasnā€™t worth the expected benefit, but it could have changed! :)

I posted my question here: https://statmodeling.stat.columbia.edu/2019/12/09/how-many-stan-users-are-there/

2 Likes

This paper might have useful ideas Using an Online Sample to Estimate the Size of an Offline Population how to estimate the number of those users who would be unlikely to be reached by survey.

Stack Overflow has tag ā€œStanā€ and 254 users (if Iā€™m interpreting their graphics correctly) have listed Stan as things theyā€™re interested in. about once a week someone asks a Stan question.

1 Like

254 is the number of questions with that tag, the number of users will be less than that.

1 Like

doh!
users do list their interests, but no way to scrape that out of SO.

Itā€™s an interesting question! We might want to think about targeting this question using a statistical/surveying method and then benchmarking our population estimates against other potential indicators as another coverage check (number of downloads of Stan in R packages relative to Python etc.).

One of the challenges for this is agreeing upon what the definition of a Stan user is.

I think weā€™re going to have a hangouts meeting on this topic to see if we can make some sort of plan. Iā€™ve emailed folks whoā€™s email I have but for those interested weā€™re picking a time here, and if you put your full name in I can probably google your email for an invite. :) https://www.when2meet.com/?8493674-nr5Ai

1 Like