Jordan A. Kempker, MD, MSc
2017-02-23
There are several common mathematical distributions used in probability theory and statistics, including the normal (Guassian), binomial and Poisson distributions. Among these commonly used distributions is the Chi-squared distribution. For more information on this distribution, check out Wikipedia page at https://en.wikipedia.org/wiki/Chi-squared_distribution.
The Chi-squared distribution has two parameters:
In my application there is also a paramter for the sample size.
Being someone who works with statistics, but does not have a strong background in mathematics, I made an application that can be used to generate random numbers in a chi-squared distribution. The inputs in the application allow one to essentailly play around with changing the parameters of the distributions and visualize the effects. I hope this will help develop a more implicit understanding of the distribution of the parameters
The applicaiton uses the rchisq() funtion of R to generate random numbers in this distribution.
## [1] 0.617159084 0.004334787 1.274782370 0.001765274 0.438236233
## [6] 3.936441962 1.127257686 3.973189436 0.145237544 0.016315895
The application uses ggplot2 to plot the histogram.
Try the application!
https://jkempker.shinyapps.io/chisq/
Thanks