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


Author:
Lakshmi Krishnamurthy
  • Constructor Details

    • R1ScaleInvariantScaleParameterEstimator

      public R1ScaleInvariantScaleParameterEstimator​(Sample sample) throws java.lang.Exception
      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

      public Sample sample()
      Retrieve the Samples used for the ML Estimate
      Returns:
      Samples used for the ML Estimate
    • inferScaleParameterDistribution

      public R1UnivariateNormal inferScaleParameterDistribution​(double shape)
      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.Exception
      Infer the Distribution Moment's Scale Parameter
      Parameters:
      shape - Shape Parameter
      moment - Moment Parameter
      gammaEstimator - Gamma Estimator
      Returns:
      The Scale Parameter
      Throws:
      java.lang.Exception - Thrown if the Scale Parameter cannot be estimated