Back to QualOpt main page
Back to Statistical tests page

 
 

Statistical Tests for Proportions Comparison

See Bibliography for more details about this statistical test.

Datas

Let the sample 1 have a success rate of a/n and sample 2 have a success rate of b/m. Fill in the following form, knowing that the condition a/n >= b/m should be respected.

  Sample 1   Sample 2
# of successes [a]   [b]
# of failures 0 [n-a]   0 [m-b]
Total [n]   [m]

Results

Some values are missing or wrong type, please complete datas !

"; return false; } if ($n <= 0) array_push($errors, "[EE] " . "Parameter n" . " must be > 0"); else if ($a > $n or $a < 0) array_push($errors, "[EE] " . "Parameter a" . " must be in [0..n]"); if ($m <= 0) array_push($errors, "[EE] " . "Parameter m" . " must be > 0"); else if ($b > $m or $b < 0) array_push($errors, "[EE] " . "Parameter b" . " must be in [0..m]"); if (count($errors) > 0) { echo "

"; foreach ($errors as $error) { echo $error . "
\n"; } echo "

"; return false; } return true; } if ($a == '' or $b == '' or $n == '' or $m == '') { echo "

Please fill values above...

"; } else if (isValidInput($a, $b, $n, $m)) { system("$TAILLARD " . escapeshellcmd("$a $n $b $m")); print "
"; system("$FISHER " . escapeshellcmd("$a $n $b $m")); } ?>

Other implementations

Tests have also been implemented in C and Java libraries. C provides two little console samples, Java has a console and GUI version of the test. See README files for more details.

Bibliography

Éric D. Taillard, Philippe Waelti, Jacques Zuber, "Few statistical tests for proportions comparison", Technical report, HEIG-Vd, 2006.

 
 
About this project

QualOpt project is supported by the strategic founds of the Applied University of Western Switzerland (HES-SO), grant LQF01-03. Maintained by Philippe Waelti.

'; ?>