Bayes in your browser

bayesian statistics people analytics regression analysis multilevel modeling web apps

Running Bayesian models for people analytics without a model-fitting server.

Luděk Stehlík https://www.linkedin.com/in/ludekstehlik/
2026-10-28

I know I’m a little bit late to the party, but I only recently learned that you can run Bayesian analyses directly in a web browser, including complex regression models whose posteriors we approximate through sampling.

What caught my attention was the possibility of building small, accessible data products with Bayesian analyses, without maintaining an expensive backend to fit the models.

This seems especially useful for people analytics, where we often work with relatively small datasets. With a suitable model and defensible priors, we can bring in relevant prior knowledge and express uncertainty in quantities people actually care about. Small samples still leave us with uncertainty, of course, and make our assumptions matter more.

To try this out, I built a small site inspired by Andrew Marritt’s free online book, Bayesian Thinking for People Analytics, which I recommended here recently.

It uses the familiar IBM attrition dataset and lets you estimate attrition proportions, compare income between groups, and fit linear and logistic regressions. It also includes ordinal regression for satisfaction ratings and a hierarchical income model that makes partial pooling across groups visible.

You choose the variables, run the model, and inspect posterior distributions, credible intervals and results tables. You can follow the sampling progress, and diagnostics help you spot when a fit needs more attention.

The calculations run in your browser. The site is plain HTML, CSS and JavaScript hosted on GitHub Pages, with a background worker handling the sampling so the interface stays responsive. There’s no model-fitting server to set up or pay for.

A couple of caveats: the IBM data are fictional, so this is a demonstration, not evidence about an actual workforce. And a friendly interface doesn’t remove the need to think about priors, model fit or what the data can and cannot tell us.

I find this a useful way to make some Bayesian tools available to people who wouldn’t otherwise run R or Python themselves. It also reminded me how much can happen inside a browser these days 🤓

Feel free to give it a try here.

Citation

For attribution, please cite this work as

Stehlík (2026, Oct. 28). Ludek's Blog About People Analytics: Bayes in your browser. Retrieved from https://blog-about-people-analytics.netlify.app/posts/2026-10-27-bayes-in-your-browser/

BibTeX citation

@misc{stehlík2026bayes,
  author = {Stehlík, Luděk},
  title = {Ludek's Blog About People Analytics: Bayes in your browser},
  url = {https://blog-about-people-analytics.netlify.app/posts/2026-10-27-bayes-in-your-browser/},
  year = {2026}
}