How we build and check our calculators
Methods
Every calculator uses the standard textbook formula for its topic, written out on the page under "The formula". Where there is more than one convention, we say which one we use and why. Examples:
- Standard deviation of a sample divides by n − 1 (Bessel's correction), the same as Excel's STDEV.S.
- Linear regression uses ordinary least squares, the same as Excel's SLOPE, INTERCEPT and RSQ.
- Grade tools treat weights as relative, so weights that do not add up to 100 are scaled and the page tells you.
Testing
The maths for each tool lives in a separate module with automated tests. The tests include hand-calculated examples, textbook data sets with known answers (such as 2, 4, 4, 4, 5, 5, 7, 9, whose population standard deviation is exactly 2), boundary cases (a final worth 100%, a target above 100%), and bad input (empty fields, letters, a sample of one). A tool is not published until every test passes.
Worked examples on each page
The examples in the articles are calculated by hand and then checked against the calculator, so the page and the tool always agree.
Corrections
If you find an error, tell us. We fix confirmed errors, add a test so the same mistake cannot return, and update the "Last checked" date on the page.