Shiny app: Distributions of random variables

October 11, 2017
By

[This article was first published on Matt's R Blog, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

There is a new version of my Distributions of Random Variables Shiny app available.
This is a cleaned up modern revision of my original 2013 app series involving random variable probability distributions.
The primary change is a switch to ggplot2 from base graphics. I have added this app to my shiny-apps GitHub repository so the source code is available, including a script containing all those pesky plotmath expressions.

The app draws and plots samples from various well known discrete and continuous probability distributions, all of which are available in base R with the single exception of the Pareto distribution. To include this distribution, I used the VGAM package. The plots include an overlay of the formula for the selected probability mass or density function.

Available discrete distributions:

  • Bernoulli
  • Binomial
  • Uniform
  • Geometric
  • Hypergeometric
  • Negative Binomial
  • Poisson

Available continuous distributions:

  • Beta
  • Cauchy
  • Chi-squared
  • Exponential
  • F
  • Gamma
  • Laplace (Double Exponential)
  • Logistic
  • Log-Normal
  • Normal
  • Pareto
  • t
  • Uniform
  • Weibull

To leave a comment for the author, please follow the link and comment on their blog: Matt's R Blog.

R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.



If you got this far, why not subscribe for updates from the site? Choose your flavor: e-mail, twitter, RSS, or facebook...

Comments are closed.

Search R-bloggers

Sponsors

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)