These are the calculators I wrote for Stat 200 at the University of Illinois at Urbana-Champaign.
The p-value calculators are written in JavaScript and are embedded in four html pages (links are at the top of this page). The numerical method is explained in this documentation.
index.html
: this html page.
pnormal.html
: html page for the p-value calculator for the normal distribution.
pnormal.js
: JavaScript code for handling activities in pnormal.html.
pchisq.html
: html page for the p-value calculator for the χ2 distribution.
pchisq.js
: JavaScript code for handling activities in pchisq.html.
pt.html
: html page for the p-value calculator for the t distribution.
pt.js
: JavaScript code for handling activities in pt.html.
pf.html
: html page for the p-value calculator for the F distribution.
pf.js
: Javascript code for handling activities in pf.html.
statFunctions.js
: JavaScript code for computating p-values for the normal, χ2, t and F distributuions.
canvas.js
: JavaScript code for generating plots in pnormal.html, pchisq.html, pt.html and pf.html.
pvals.css
: css file for all the html pages.
docs/numerical_method.tex
, docs/numerical_method.pdf
: LaTeX and pdf files explaining the numerical method used to calculate the p-values.