Package org.drip.measure.gamma
Class ConjugateShapePrior
java.lang.Object
org.drip.measure.bayesian.ConjugateParameterPrior
org.drip.measure.gamma.ConjugateShapePrior
public class ConjugateShapePrior extends ConjugateParameterPrior
ConjugateShapePrior implements the Determinants of the Parameters of the Conjugate Prior for the
Shape Parameter. 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 ConjugateShapePrior(double parameterEstimate, int observationCount, double observationProduct)ConjugateShapePrior Constructor -
Method Summary
Modifier and Type Method Description booleanbayesUpdate(Sample sample)Perform an Bayes' Update of the Conjugate Prior from the SampledoubleobservationProduct()Retrieve the Product of the Observation SuiteMethods inherited from class org.drip.measure.bayesian.ConjugateParameterPrior
observationCount, parameterEstimateMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ConjugateShapePrior
public ConjugateShapePrior(double parameterEstimate, int observationCount, double observationProduct) throws java.lang.ExceptionConjugateShapePrior Constructor- Parameters:
parameterEstimate- Parameter EstimateobservationCount- Count of ObservationsobservationProduct- Product of the Observations- Throws:
java.lang.Exception- Thrown if the Inputs are Invalid
-
-
Method Details
-
observationProduct
public double observationProduct()Retrieve the Product of the Observation Suite- Returns:
- Product of the Observation Suite
-
bayesUpdate
Description copied from class:ConjugateParameterPriorPerform an Bayes' Update of the Conjugate Prior from the Sample- Overrides:
bayesUpdatein classConjugateParameterPrior- Parameters:
sample- The Sample- Returns:
- TRUE - Bayes' Update of the Conjugate Prior from the Sample completed successfully
-