Summarise probability distributions
Get P and critical values for the Chi-squared distribution
Calculate P values from the chi-squared distribution, corresponding to specified chi-squared
statistic and degrees of fredom. Also calculates critical values for the same chi-squared
distribution corresponding to the specified alpha (significance) level.
Inputs are the test statistic, degrees of freedom and the specified
alpha for calculation of critical values.
The program outputs the P value corresponding to the given inputs, the critical value
corresponding to the specified alpha and the probabilities associated with values greater than or less than the observed Chi-squared value,
as well as a summary and plot of the distribution.