All Projects → rok-cesnovar → stan-distributions

rok-cesnovar / stan-distributions

Licence: BSD-3-Clause license
A web app to visualize distributions in Stan. Uses Stan Math C++ compiled to Webassembly to evaluate the functions using actual Stan implementations. Uses d3.js for visualizations.

Programming Languages

HTML
75241 projects
C++
36643 projects - #6 most used programming language
javascript
184084 projects - #8 most used programming language
CSS
56736 projects
shell
77523 projects

Projects that are alternatives of or similar to stan-distributions

stanTuneR
This code uses the algebra solver in Stan (https://mc-stan.org/) to find the parameters of a distribution that produce a desired tail behavior.
Stars: ✭ 28 (-6.67%)
Mutual labels:  stan, distributions
Shinystan
shinystan R package and ShinyStan GUI
Stars: ✭ 172 (+473.33%)
Mutual labels:  stan
Ssmodels In Stan
State space models (dynamic linear models, hidden Markov models) implemented in Stan.
Stars: ✭ 42 (+40%)
Mutual labels:  stan
Modelselection
Tutorial on model assessment, model selection and inference after model selection
Stars: ✭ 139 (+363.33%)
Mutual labels:  stan
Matlabstan
Matlab interface to Stan, a package for Bayesian inference
Stars: ✭ 59 (+96.67%)
Mutual labels:  stan
Rstanbook
『StanとRでベイズ統計モデリング』のサポートページです.
Stars: ✭ 152 (+406.67%)
Mutual labels:  stan
Cmdstan.jl
CmdStan.jl v6 provides an alternative, older Julia wrapper to Stan's `cmdstan` executable.
Stars: ✭ 30 (+0%)
Mutual labels:  stan
MathematicaStan
A Mathematica package to interact with CmdStan
Stars: ✭ 27 (-10%)
Mutual labels:  stan
Nats Streaming Operator
NATS Streaming Operator
Stars: ✭ 167 (+456.67%)
Mutual labels:  stan
Knitr case studies
Inference case studies in knitr
Stars: ✭ 110 (+266.67%)
Mutual labels:  stan
Loo
loo R package for approximate leave-one-out cross-validation (LOO-CV) and Pareto smoothed importance sampling (PSIS)
Stars: ✭ 106 (+253.33%)
Mutual labels:  stan
Projpred
Projection predictive variable selection
Stars: ✭ 76 (+153.33%)
Mutual labels:  stan
Oreilly Intro To Predictive Clv
Repo that contains the supporting material for O'Reilly Webinar "An Intro to Predictive Modeling for Customer Lifetime Value" on Feb 28, 2017
Stars: ✭ 153 (+410%)
Mutual labels:  stan
Bayes Vis Paper
'Visualization in Bayesian workflow' by Gabry, Simpson, Vehtari, Betancourt, and Gelman. (JRSS discussion paper and code)
Stars: ✭ 47 (+56.67%)
Mutual labels:  stan
Stan
Stan development repository. The master branch contains the current release. The develop branch contains the latest stable development. See the Developer Process Wiki for details.
Stars: ✭ 2,177 (+7156.67%)
Mutual labels:  stan
Epinow2
Estimate Realtime Case Counts and Time-varying Epidemiological Parameters
Stars: ✭ 36 (+20%)
Mutual labels:  stan
Ggmcmc
Graphical tools for analyzing Markov Chain Monte Carlo simulations from Bayesian inference
Stars: ✭ 95 (+216.67%)
Mutual labels:  stan
Miscellaneous R Code
Code that might be useful to others for learning/demonstration purposes, specifically along the lines of modeling and various algorithms. Now almost entirely superseded by the models-by-example repo.
Stars: ✭ 146 (+386.67%)
Mutual labels:  stan
metaBMA
Bayesian Model Averaging for Random and Fixed Effects Meta-Analysis
Stars: ✭ 20 (-33.33%)
Mutual labels:  stan
Stancon talks
Materials from Stan conferences
Stars: ✭ 210 (+600%)
Mutual labels:  stan

Stan distributions

A web app to visualize distributions in Stan. It uses Stan Math C++ code to evaluate the log probability density/mass functions. The Stan Math C++ is compiled to Webassembly using Emscripten. d3.js is used for visualizations.

This was inspired by the distribution zoo. The main differences of this approach are:

  • it runs entirely in the user's browser and does not require a server (very easy to fork and deploy your own custom version),
  • it uses the actual Stan C++ for all density/mass functions (Distribution zoo is based on R distribution implementations).

This currently supports the majority of Stan's univariate continuous distributions. Missing discrete distributions will be added shortly.

Links

Unbounded Continuous Distributions

Positive Continuous Distributions

Positive Lower-Bounded Distributions

Continuous Distributions on [0, 1]

Circular Distributions

Bounded Continuous Distributions

Unbounded Discrete Distributions

Custom distributions

Contributed by @noejn2.

Running it locally

  1. Clone the repository
git clone https://github.com/rok-cesnovar/stan-distributions/
  1. Start a simple Python server

This is required in order to serve the .wasm files. The actual computation still happens in the browser.

python3 -m http.server 8000
  1. Open localhost:8000 in your favorite browser. Change the port number in step 2 if needed.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].