math-php
|
F-distribution https://en.wikipedia.org/wiki/F-distribution. More...
Public Member Functions | |
__construct (float $d₁, float $d₂) | |
Constructor. More... | |
pdf (float $x) | |
Probability density function. More... | |
cdf (float $x) | |
Cumulative distribution function. More... | |
mean () | |
Mean of the distribution. More... | |
mode () | |
Mode of the distribution. More... | |
variance () | |
Variance of the distribution. More... | |
![]() | |
inverse (float $target) | |
The Inverse CDF of the distribution. More... | |
between (float $x₁, float $x₂) | |
CDF between - probability of being between two points, x₁ and x₂ The area under a continuous distribution, that lies between two specified points. More... | |
outside (float $x₁, float $x₂) | |
CDF outside - Probability of being below x₁ and above x₂. More... | |
above (float $x) | |
CDF above - Probability of being above x to ∞ Area under a continuous distribution, that lies above a specified point. More... | |
rand () | |
Produce a random number with a particular distribution. More... | |
![]() | |
__construct (... $params) | |
Constructor. More... | |
Public Attributes | |
const | PARAMETER_LIMITS |
const | SUPPORT_LIMITS |
![]() | |
const | GUESS_THRESHOLD = 10 |
const | GUESS_ALLOWANCE = 8 |
Protected Attributes | |
$d₁ | |
$d₂ | |
F-distribution https://en.wikipedia.org/wiki/F-distribution.
MathPHP\Probability\Distribution\Continuous\F::__construct | ( | float | $d₁, |
float | $d₂ | ||
) |
Constructor.
float | $d₁ | degree of freedom parameter d₁ > 0 |
float | $d₂ | degree of freedom parameter d₂ > 0 |
MathPHP\Probability\Distribution\Continuous\F::cdf | ( | float | $x | ) |
Cumulative distribution function.
/ d₁ d₂ \ I | –, – |
ᵈ¹ˣ⁺ᵈ²
Where I is the regularized incomplete beta function.
float | $x | percentile ≥ 0 |
Implements MathPHP\Probability\Distribution\Continuous\ContinuousDistribution.
MathPHP\Probability\Distribution\Continuous\F::mean | ( | ) |
Mean of the distribution.
d₂ μ = ---— for d₂ > 2 d₂ - 2
Implements MathPHP\Probability\Distribution\Continuous\ContinuousDistribution.
MathPHP\Probability\Distribution\Continuous\F::mode | ( | ) |
Mode of the distribution.
d₁ - 2 d₂ mode = ---— ---— d₁ > 2 d₁ d₂ + 2
MathPHP\Probability\Distribution\Continuous\F::pdf | ( | float | $x | ) |
Probability density function.
/ (d₁ x)ᵈ¹ d₂ᵈ² / -------------—
/ d₁ d₂ \ x B | –, – | \ 2 2 /
float | $x | percentile ≥ 0 |
Implements MathPHP\Probability\Distribution\Continuous\ContinuousDistribution.
MathPHP\Probability\Distribution\Continuous\F::variance | ( | ) |
Variance of the distribution.
2d₂²(d₁ + d₂ - 2) var[X] = ----------------— d₂ > 4 d₁(d₂ - 2)²(d₂ - 4)
const MathPHP\Probability\Distribution\Continuous\F::PARAMETER_LIMITS |
const MathPHP\Probability\Distribution\Continuous\F::SUPPORT_LIMITS |