Moodle PHP Documentation 5.1
Moodle 5.1dev (Build: 20250620) (7d9030acd6e)
PhpOffice\PhpSpreadsheet\Calculation\Statistical\Distributions\ChiSquared Class Reference

Static Public Member Functions

static distributionLeftTail (mixed $value, mixed $degrees, mixed $cumulative)
 CHIDIST.
 
static distributionRightTail (mixed $value, mixed $degrees)
 
static inverseLeftTail (mixed $probability, mixed $degrees)
 CHIINV.
 
static inverseRightTail (mixed $probability, mixed $degrees)
 CHIINV.
 
static test (mixed $actual, mixed $expected)
 CHITEST.
 

Static Protected Member Functions

static degrees (int $rows, int $columns)
 

Member Function Documentation

◆ distributionLeftTail()

static PhpOffice\PhpSpreadsheet\Calculation\Statistical\Distributions\ChiSquared::distributionLeftTail ( mixed $value,
mixed $degrees,
mixed $cumulative )
static

CHIDIST.

Returns the one-tailed probability of the chi-squared distribution.

Parameters
mixed$valueFloat value for which we want the probability Or can be an array of values
mixed$degreesInteger degrees of freedom Or can be an array of values
mixed$cumulativeBoolean value indicating if we want the cdf (true) or the pdf (false) Or can be an array of values
Return values
array|float|int|stringIf an array of numbers is passed as an argument, then the returned result will also be an array with the same dimensions

◆ inverseLeftTail()

static PhpOffice\PhpSpreadsheet\Calculation\Statistical\Distributions\ChiSquared::inverseLeftTail ( mixed $probability,
mixed $degrees )
static

CHIINV.

Returns the inverse of the left-tailed probability of the chi-squared distribution.

Parameters
mixed$probabilityFloat probability at which you want to evaluate the distribution Or can be an array of values
mixed$degreesInteger degrees of freedom Or can be an array of values
Return values
array|float|stringIf an array of numbers is passed as an argument, then the returned result will also be an array with the same dimensions

◆ inverseRightTail()

static PhpOffice\PhpSpreadsheet\Calculation\Statistical\Distributions\ChiSquared::inverseRightTail ( mixed $probability,
mixed $degrees )
static

CHIINV.

Returns the inverse of the right-tailed probability of the chi-squared distribution.

Parameters
mixed$probabilityFloat probability at which you want to evaluate the distribution Or can be an array of values
mixed$degreesInteger degrees of freedom Or can be an array of values
Return values
array|float|stringIf an array of numbers is passed as an argument, then the returned result will also be an array with the same dimensions

◆ test()

static PhpOffice\PhpSpreadsheet\Calculation\Statistical\Distributions\ChiSquared::test ( mixed $actual,
mixed $expected )
static

CHITEST.

Uses the chi-square test to calculate the probability that the differences between two supplied data sets (of observed and expected frequencies), are likely to be simply due to sampling error, or if they are likely to be real.

Parameters
mixed$actualan array of observed frequencies
mixed$expectedan array of expected frequencies

The documentation for this class was generated from the following file: