Skip to content

YuriAntonelli/probability_webapp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Probability WebApp

Overview

This Shiny web application provides both analytical and simulated solutions for famous probability problems. The app is designed for anyone interested in understanding and visualizing classic probability puzzles.

Included Probability Problems

  1. Monty Hall: Classic problem on 3 doors - 2 goats and 1 car.
  2. Birthday: Demonstrates how the probability of two people sharing a birthday in a group is surprisingly high.
  3. Newton-Pepys: Probability problem concerning the probability of throwing sixes from a certain number of dice.
  4. St Petersburg: Paradox involving the game of flipping a coin where the expected payoff of the lottery game is infinite but nevertheless seems to be worth only a very small amount to the participants
  5. Montmort: Consider a well shuffled deck of n cards labeled 1 through n. You flip over the cards one by one, saying the numbers 1 through n as you do so. You win the game if, at some point, the number you say aloud is the same as the number on the number on the card being flipped over

How to run it

To run this Shiny web application locally, follow the steps below:

  1. Install R and RStudio: If you haven't already, download and install R and RStudio.
  2. Install Shiny: Open RStudio and install the Shiny package by running the following command in your R console:
    install.packages("shiny")
  3. Clone the repo: Clone the repo and run the code!

About

Shiny app gathering several famous probability problems

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors