Skip to content

mihagazvoda/mini-bayes-shiny

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mini-shiny-bayes

The goal of this project is to intuitively present Bayesian updating for Bernoulli trials (trials with 2 outcomes - success or failure.). See dashboard here.

The dashboard enables you to input outcomes of trials and then observe posteriors for a probability of success. It allows you to use different prior distributions: uniform, step, and normal.

Usage

Clone the project. Run make app in your terminal (inside project folder). Bam!

Further reading

This project was inspired by an earth tossing example (chapter 2) from Statistical Rethinking by Richard McElreath. I find the book to be a great resource to dive into Bayesian statistics.

Possible improvements

  • Legend for a prior.
  • Plot should display only priors even if there's no uesr input.
  • Add plot with 95% highest posterior density (HPDI) and percentile (PI) intervals over trials.
  • Add prediction plot based on all data.
  • Refactor code into Shiny modules.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published