|
math-php
|
Log-logistic distribution Also known as the Fisk distribution. More...


Public Member Functions | |
| __construct (float $α, float $β) | |
| Constructor. More... | |
| pdf (float $x) | |
| Probability density function. More... | |
| cdf (float $x) | |
| Cumulative distribution function. More... | |
| inverse (float $p) | |
| Inverse CDF (Quantile function) More... | |
| mean () | |
| Mean of the distribution. More... | |
| median () | |
| Median of the distribution. More... | |
| mode () | |
| Mode of the distribution. More... | |
| variance () | |
| Variance of the distribution. More... | |
Public Member Functions inherited from MathPHP\Probability\Distribution\Continuous\Continuous | |
| 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... | |
Public Member Functions inherited from MathPHP\Probability\Distribution\Distribution | |
| __construct (... $params) | |
| Constructor. More... | |
Public Attributes | |
| const | PARAMETER_LIMITS |
| const | SUPPORT_LIMITS |
Public Attributes inherited from MathPHP\Probability\Distribution\Continuous\Continuous | |
| const | GUESS_THRESHOLD = 10 |
| const | GUESS_ALLOWANCE = 8 |
Protected Attributes | |
| $α | |
| $β | |
Log-logistic distribution Also known as the Fisk distribution.
| MathPHP\Probability\Distribution\Continuous\LogLogistic::__construct | ( | float | $α, |
| float | $β | ||
| ) |
Constructor.
| float | $α | scale parameter α > 0 |
| float | $β | shape parameter β > 0 |
| MathPHP\Probability\Distribution\Continuous\LogLogistic::cdf | ( | float | $x | ) |
Cumulative distribution function.
1 F(x; α, β) = --------— 1 + (x/α)⁻ᵝ
| float | $x | (x > 0) |
Implements MathPHP\Probability\Distribution\Continuous\ContinuousDistribution.
| MathPHP\Probability\Distribution\Continuous\LogLogistic::inverse | ( | float | $p | ) |
Inverse CDF (Quantile function)
/ p \ 1/β F⁻¹(p;α,β) = α | --— | \ 1 - p /
| float | $p |
| MathPHP\Probability\Distribution\Continuous\LogLogistic::mean | ( | ) |
Mean of the distribution.
απ / β μ = -----— if β > 1, else undefined sin(π/β)
Implements MathPHP\Probability\Distribution\Continuous\ContinuousDistribution.
| MathPHP\Probability\Distribution\Continuous\LogLogistic::median | ( | ) |
Median of the distribution.
median = α
| MathPHP\Probability\Distribution\Continuous\LogLogistic::mode | ( | ) |
Mode of the distribution.
mode = 0 β ≤ 1
/ β - 1 \ 1/β
mode = α | --— | β > 1 \ β + 1 /
| MathPHP\Probability\Distribution\Continuous\LogLogistic::pdf | ( | float | $x | ) |
Probability density function.
(β/α)(x/α)ᵝ⁻¹ f(x; α, β) = ----------— (1 + (x/α)ᵝ)²
| float | $x | (x > 0) |
Implements MathPHP\Probability\Distribution\Continuous\ContinuousDistribution.
| MathPHP\Probability\Distribution\Continuous\LogLogistic::variance | ( | ) |
Variance of the distribution.
/ 2β β² \ var[X] = α² | ---— - --— | β > 2 \ sin 2β sin²β /
| const MathPHP\Probability\Distribution\Continuous\LogLogistic::PARAMETER_LIMITS |
| const MathPHP\Probability\Distribution\Continuous\LogLogistic::SUPPORT_LIMITS |
1.8.13