fcampelo / Design-and-Analysis-of-Experiments

Lecture Notes on Design & Analysis of Experiments
118 stars 53 forks source link

Add discrete distribution support to CLT demo #12

Closed akionakamura closed 8 years ago

akionakamura commented 8 years ago

Hi,

Very cool demo, and shiny is pretty neat.

I've tried to add support for discrete distributions (only Poisson and Binomial, actually), and I believe the results is good enough of a submission. Let me know what you think. Following some screenshots (ignore the "Continuous Distributions" in the images, it has been removed in one of the commits).

binomial poisson

fcampelo commented 8 years ago

Cool! I just think it is probably better to use type = "h" or type = "p" instead of type = "b" in the plotting of discrete distributions, to highlight the fact that the probability mass function does not assume intermediate values. I'll work on that as soon as I can find a few minutes to spare.

Thanks a lot for the additions! :)