[ index.php ] [ docs.php ] [ package.php ] [ tests.php ] [ examples.php ] [ download.php ]
Examples

binomial_likelihood_ratio.php(execute)
chisqr_range_testing.php(execute)
evaluate_f.php(execute)
inverse_transform_method.php(execute)
make_table.php(execute)
photosynthesis.php(execute)
sales_performance.php(execute)

<?php
/**
* @package PDL
*
* Demonstrates how to obtain a tail probability.  Also
* a test of what happens when extreme F scores are passed
* into the method. In this case a 0 is returned which 
* makes sense; it means there is effectively a 0 probability
* of obtaining an F score this extreme by chance.
*
* @author Paul Meagher
*/
require_once '../FDistribution.php';

$f_score 5679.47;
$df1 2;
$df2 14;

$f = new FDistribution($df1$df2);
$p $f->CDF($f_score);
echo 
"P(F | df1, df2) = P($f_score | $df1$df2) = $p";
?>