Skip to content

Stevenzhang337/Probability-Simulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Probability-Simulator

I like to think of this as my third installment of my math apps. While I was taking probability this past semester, I found myself simulating a lot of trials on random variables in order to confirm my answers for the class. As a result, I decided that I could build a web app that does just that. I took what I learned from my previous math app project and I applied it to this project. This app can simulate famous probability distributions like the normal, binomial, geometric, poisson and more. It can also simulate transformation of these distributions with common math operations like exponetial, logs, and trigonometric functions. It make plots of these distributions (including transformed distribution) through simulated trials. Lastly, it can also calculate expected value, variance and probability. This is a simple static web app that uses mathlib to help plot and make graphs. It was a simple project but it shows my progress in learning about web development.

https://stevenzhang337.github.io/Probability-Simulator/


Starting page

Screen Shot 2021-12-19 at 3 18 39 PM


Simulating binomial distribution with n = 5, p = .3

Screen Shot 2021-12-19 at 3 19 16 PM


Simulating 100 trials of binomial distribution with n = 5, p = .3 and with plotted points

Screen Shot 2021-12-19 at 3 19 46 PM


Plotting cumulative distribution with calculated probabilities on the right side

Screen Shot 2021-12-19 at 3 20 07 PM


Simulating exponential distribution with lambda = 4

Screen Shot 2021-12-19 at 3 20 28 PM


Simulating complex distribution

Screen Shot 2021-12-19 at 3 21 14 PM


Evaluating expected value, variance and probabilities on complex distribution

Screen Shot 2021-12-19 at 3 21 26 PM

About

Web application to simulate and plot probability distributions.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published