Package org.drip.measure.gamma
Class R1ScaleInvariantScaleParameterEstimator
java.lang.Object
org.drip.measure.gamma.R1ScaleInvariantScaleParameterEstimator
public class R1ScaleInvariantScaleParameterEstimator
extends java.lang.Object
R1ScaleInvariantScaleParameterEstimator implements the Scale Parameter Estimator using
Scale-Invariant Prior for the Scale Parameter under a Sequence of Observations. The References are:
- Devroye, L. (1986): Non-Uniform Random Variate Generation Springer-Verlag New York
- Gamma Distribution (2019): Gamma Distribution https://en.wikipedia.org/wiki/Chi-squared_distribution
- Louzada, F., P. L. Ramos, and E. Ramos (2019): A Note on Bias of Closed-Form Estimators for the Gamma Distribution Derived From Likelihood Equations The American Statistician 73 (2) 195-199
- Minka, T. (2002): Estimating a Gamma distribution https://tminka.github.io/papers/minka-gamma.pdf
- Ye, Z. S., and N. Chen (2017): Closed-Form Estimators for the Gamma Distribution Derived from Likelihood Equations The American Statistician 71 (2) 177-181
- Module = Computational Core Module
- Library = Numerical Analysis Library
- Project = Rd Continuous/Discrete Probability Measures
- Package = R1 Gamma Distribution Implementation/Properties
- Author:
- Lakshmi Krishnamurthy
-
Constructor Summary
Constructors Constructor Description R1ScaleInvariantScaleParameterEstimator(Sample sample)
R1ScaleInvariantScaleParameterEstimator Constructor -
Method Summary
Modifier and Type Method Description static R1ScaleInvariantScaleParameterEstimator
FromRealizationArray(double[] realizationArray)
Construct and Instance of R1ScaleInvariantScaleParameterEstimator from the Array of RealizationsR1UnivariateNormal
inferScaleParameterDistribution(double shape)
Infer the Scale Parameter Distributiondouble
inferScaleParameterDistributionMoment(double shape, int moment, R1ToR1 gammaEstimator)
Infer the Distribution Moment's Scale ParameterSample
sample()
Retrieve the Samples used for the ML EstimateMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
R1ScaleInvariantScaleParameterEstimator
R1ScaleInvariantScaleParameterEstimator Constructor- Parameters:
sample
- The Sample- Throws:
java.lang.Exception
- Thrown of the Inputs are Invalid
-
-
Method Details
-
FromRealizationArray
public static final R1ScaleInvariantScaleParameterEstimator FromRealizationArray(double[] realizationArray)Construct and Instance of R1ScaleInvariantScaleParameterEstimator from the Array of Realizations- Parameters:
realizationArray
- The Realization Array- Returns:
- Instance of R1ScaleInvariantScaleParameterEstimator
-
sample
Retrieve the Samples used for the ML Estimate- Returns:
- Samples used for the ML Estimate
-
inferScaleParameterDistribution
Infer the Scale Parameter Distribution- Parameters:
shape
- Shape Parameter- Returns:
- The Scale Parameter Distribution
-
inferScaleParameterDistributionMoment
public double inferScaleParameterDistributionMoment(double shape, int moment, R1ToR1 gammaEstimator) throws java.lang.ExceptionInfer the Distribution Moment's Scale Parameter- Parameters:
shape
- Shape Parametermoment
- Moment ParametergammaEstimator
- Gamma Estimator- Returns:
- The Scale Parameter
- Throws:
java.lang.Exception
- Thrown if the Scale Parameter cannot be estimated
-