PHP Class MathPHP\Probability\Distribution\Table\ChiSquared

Use degrees of freedom and desired P value to find χ² value. https://en.wikipedia.org/wiki/Chi-squared_distribution This table is provided only for completeness. It is common for statistics textbooks to include this table, so this library does as well. It is better to use the χ² distribution CDF function when a χ² value is required. Table values referenced from: https://www.medcalc.org/manual/chi-square-table.php
Show file Open project: markrogoyski/math-php

Public Methods

Method Description
getChiSquareValue ( integer $df, float $p ) : float Get χ² score

Method Details

getChiSquareValue() public static method

Get χ² score
public static getChiSquareValue ( integer $df, float $p ) : float
$df integer Degrees of freedom
$p float P value
return float χ² score