Stan applications in business/marketing analytics

Hi everyone,

Hope this message finds you all well.

I’m looking for STAN applications in business analytics. So far I have browsed through GitHub repositories but have not encountered any a meaningful hands-on examples solved by STAN. I’d be glad if someone could provide me a few links with relevant case studies.

Also, I’m trying to captivate the interest of my peers at work, but I find it difficult to convey these advanced statistical concepts to non technical audiences. Whenever I touch upon the subject “Bayesian analysis”, most of my colleagues think it’s a kind of a “voodoo magic box”. Exciting but with no relevant business value…
Any hints/books that can help me out on this?

Many thanks,

Check out this bit from the Savage:

This one too:


I’m also really interested in this. I’m trying to use Stan to simulate and model revenue, and can’t find any similar examples online.

Facebook has a time series forecasting tool available in R and Python called prophet which is built on top of Stan. I first heard about it while watching one of the StanCon 2018 presentations (starts about 18 minutes in). I think the corresponding case study is here

Also, it’s not STAN, just Stan :)

1 Like

It is usually a better idea to model quantity sold as a function of price, etc. (classic elasticity setup) and compute the revenue post hoc.

Hi Eric,

Many thanks for your input.
I’m just going through the links you posted.

I reckon Bayesian analysis are of great use to online retailers, and ultimately applicable to dynamic pricing algorithms.

Have you ever seen Bayesian analysis applied to price elasticity problems or dynamic pricing algorithms?


Dynamic pricing is a loaded term, so not sure.

As to elasticity of demand for the purposes of pricing, yes. For example, if you go to Amazon and

order a backlist (1y+) e-book that was published by Penguin Random House, there is a

good chance that we (Stan) priced it.

1 Like

Alex Braylan and Daniel Marthaler presented their work on estimating elasticity and dynamic pricing during holidays at StanCon Helsinki. Youtube isn’t loading the video right now, but I was able to find the notebook here.


Google has published several research papers that use Bayesian models to estimate marketing effectiveness. For example, this paper describes how to build a media mix model using stan and contains sample code in the appendix.

This blog post from explains how they use stan for revenue estimation:

1 Like