public class ParetoPD extends ProbabilityDistribution implements Serializable, Cloneable, PDFHessianInterface
Constructor and Description |
---|
ParetoPD()
Constructor for the Pareto probability distribution.
|
Modifier and Type | Method and Description |
---|---|
double[] |
getMethodOfMomentsEstimates(double[] x)
Returns the method-of-moments estimates given the sample data.
|
double[] |
getParameterLowerBounds()
Returns the lower bounds of the parameters.
|
double[] |
getParameterUpperBounds()
Returns the upper bounds of the parameters.
|
double[] |
getPDFGradient(double x,
double... params)
Returns the analytic gradient of the pdf.
|
double[][] |
getPDFHessian(double x,
double... params)
Returns the analytic Hessian of the pdf.
|
double |
pdf(double x,
double... params)
Returns the value of the Pareto probability density function.
|
getNumberOfParameters, getPDFGradientApproximation, getPDFHessianApproximation, getRangeOfX, setRangeOfX
public double[] getParameterLowerBounds()
getParameterLowerBounds
in class ProbabilityDistribution
double
array of length 2 containing the lower
bounds for the scale parameter (\(x_m\gt0\)) and the shape
parameter (\(k\gt0\))public double[] getParameterUpperBounds()
getParameterUpperBounds
in class ProbabilityDistribution
double
array of length 2 containing the upper
bounds for the scale parameter (\(x_m\gt0\)) and the shape
parameter (\(k\gt0\))public double pdf(double x, double... params)
The probability density function of the Pareto distribution is
$$f\left(x;x_m,k\right)=\left\{\begin{array}{ll} \frac{kx_m^k}{x^{k+1}} & x\ge x_m, \\[3pt] 0 & x\lt x_m.\end{array}\right.$$
where \(x_m\gt0\) is the scale parameter and \(k\gt0\) is the shape parameter.
pdf
in class ProbabilityDistribution
x
- a double
, the value (quantile)
at which to evaluate the pdfparams
- a double
array containing the scale and
shape parameters. The parameters can also be given in the form
pdf(x,a,b)
,
where a
=\(x_m\) and b
=\(k\) are scalars.double
, the probability density
function at x
and the given parameter valuespublic double[] getPDFGradient(double x, double... params)
getPDFGradient
in interface PDFGradientInterface
x
- a double
, the value at which to evaluate the gradientparams
- a double
array specifying
the scale parameter (\(x_m\gt0\)) and the shape
parameter (\(k\gt0\))double
array containing the first partial
derivative of the pdf with respect to the parameterspublic double[][] getPDFHessian(double x, double... params)
getPDFHessian
in interface PDFHessianInterface
x
- a double
, the value at which to evaluate the
Hessianparams
- a double
array specifying
the scale parameter (\(x_m\gt0\)) and the shape
parameter (\(k\gt0\))double
array containing the second partial
derivatives of the pdf with respect to the parameterspublic double[] getMethodOfMomentsEstimates(double[] x)
x
- a double
array containing the datadouble
array containing method-of-moments
estimates for the parameters of the Pareto distributionCopyright © 2020 Rogue Wave Software. All rights reserved.