meta numerics

This calculator performs multiple analyses of a 2 X 2 experiment. To use it, fill in the boxes with counts for each dependent and independent variable value. For convenience, you can also change the names of each treatment and outcome.

Input

  Totals
Totals

Output

Quantity 1-sigma error bar 95% confidence band
P() ± < P <
P() ± < P <
P( | ) ± < P <
P( | ) ± < P <
Odds Ratio r ± < r <
Log Odds Ratio ± < ln r <

Error estimates are computed assuming a normal distribution of counts, and may therefore be inaccurate for very small counts.

Test Statistic P-Value
Pearson χ2
Fisher exact  

The χ2 test uses a normal approximation to the count distribution; it may therefore be inaccurate for very small counts. The Fisher exact test is accurate even for small counts; it is performed only for N ≤ 200.

Operations on 2 X 2 and N X M contingency tables are part of the functionality of the Meta.Numerics.Statistics library.