Class R1NonCentral

java.lang.Object
org.drip.measure.continuous.R1Univariate
org.drip.measure.chisquare.R1NonCentral
Direct Known Subclasses:
R1NonCentralCumulantInvariant

public class R1NonCentral
extends R1Univariate
R1NonCentral implements the Distribution Table for the R1 Non-central Chi-Square Distribution. The References are:

  • Johnson, N. L., S. Kotz, and N. Balakrishnan (1995): Continuous Univariate Distributions 2nd Edition John Wiley and Sons
  • Muirhead, R. (2005): Aspects of Multivariate Statistical Theory 2nd Edition Wiley
  • Non-central Chi-Squared Distribution (2019): Chi-Squared Function https://en.wikipedia.org/wiki/Noncentral_chi-squared_distribution
  • Sankaran, M. (1963): Approximations to the Non-Central Chi-Square Distribution Biometrika 50 (1-2) 199-204
  • Young, D. S. (2010): tolerance: An R Package for Estimating Tolerance Intervals Journal of Statistical Software 36 (5) 1-39


Author:
Lakshmi Krishnamurthy
  • Constructor Details

    • R1NonCentral

      public R1NonCentral​(R1NonCentralParameters r1NonCentralParameters, R1ToR1 gammaEstimator, R1ToR1 digammaEstimator, R2ToR1 lowerIncompleteGammaEstimator, ModifiedBesselFirstKindEstimator modifiedBesselFirstKindEstimator) throws java.lang.Exception
      R1NonCentral Constructor
      Parameters:
      r1NonCentralParameters - R1 Non-central Parameters
      gammaEstimator - Gamma Estimator
      digammaEstimator - Digamma Estimator
      lowerIncompleteGammaEstimator - Lower Incomplete Gamma Estimator
      modifiedBesselFirstKindEstimator - Modified Bessel First Kind Estimator
      Throws:
      java.lang.Exception - Thrown if the Inputs are Invalid
  • Method Details

    • Standard

      public static final R1NonCentral Standard​(double degreesOfFreedom, double nonCentralityParameter, R1ToR1 gammaEstimator, R1ToR1 digammaEstimator, R2ToR1 lowerIncompleteGammaEstimator, ModifiedBesselFirstKindEstimator modifiedBesselFirstKindEstimator)
      Construct the Standard Instance of R1NonCentral
      Parameters:
      degreesOfFreedom - Degrees of Freedom
      nonCentralityParameter - Non-centrality Parameter
      gammaEstimator - Gamma Estimator
      digammaEstimator - Digamma Estimator
      lowerIncompleteGammaEstimator - Lower Incomplete Gamma Estimator
      modifiedBesselFirstKindEstimator - Modified Bessel First Kind Estimator
      Returns:
      The Standard Instance of R1NonCentral
    • parameters

      public R1NonCentralParameters parameters()
      Retrieve the R1 Non-Central Parameters
      Returns:
      The R1 Non-Central Parameters
    • gammaEstimator

      public R1ToR1 gammaEstimator()
      Retrieve the Gamma Estimator
      Returns:
      Gamma Estimator
    • digammaEstimator

      public R1ToR1 digammaEstimator()
      Retrieve the Digamma Estimator
      Returns:
      Digamma Estimator
    • lowerIncompleteGammaEstimator

      public R2ToR1 lowerIncompleteGammaEstimator()
      Retrieve the Lower Incomplete Gamma Estimator
      Returns:
      Lower Incomplete Gamma Estimator
    • modifiedBesselFirstKindEstimator

      public ModifiedBesselFirstKindEstimator modifiedBesselFirstKindEstimator()
      Retrieve the Modified Bessel First Kind Estimator
      Returns:
      Modified Bessel First Kind Estimator
    • support

      public double[] support()
      Description copied from class: R1Univariate
      Lay out the Support of the PDF Range
      Specified by:
      support in class R1Univariate
      Returns:
      Support of the PDF Range
    • density

      public double density​(double x) throws java.lang.Exception
      Description copied from class: R1Univariate
      Compute the Density under the Distribution at the given Variate
      Specified by:
      density in class R1Univariate
      Parameters:
      x - Variate at which the Density needs to be computed
      Returns:
      The Density
      Throws:
      java.lang.Exception - Thrown if the input is invalid
    • cumulative

      public double cumulative​(double t) throws java.lang.Exception
      Description copied from class: R1Univariate
      Compute the cumulative under the distribution to the given value
      Specified by:
      cumulative in class R1Univariate
      Parameters:
      t - Variate to which the cumulative is to be computed
      Returns:
      The cumulative
      Throws:
      java.lang.Exception - Thrown if the inputs are invalid
    • mean

      public double mean() throws java.lang.Exception
      Description copied from class: R1Univariate
      Retrieve the Mean of the Distribution
      Specified by:
      mean in class R1Univariate
      Returns:
      The Mean of the Distribution
      Throws:
      java.lang.Exception - Thrown if the Mean cannot be estimated
    • variance

      public double variance() throws java.lang.Exception
      Description copied from class: R1Univariate
      Retrieve the Variance of the Distribution
      Specified by:
      variance in class R1Univariate
      Returns:
      The Variance of the Distribution
      Throws:
      java.lang.Exception - Thrown if the Variance cannot be estimated
    • skewness

      public double skewness() throws java.lang.Exception
      Description copied from class: R1Univariate
      Retrieve the Skewness of the Distribution
      Overrides:
      skewness in class R1Univariate
      Returns:
      The Skewness of the Distribution
      Throws:
      java.lang.Exception - Thrown if the Skewness cannot be estimated
    • excessKurtosis

      public double excessKurtosis() throws java.lang.Exception
      Description copied from class: R1Univariate
      Retrieve the Excess Kurtosis of the Distribution
      Overrides:
      excessKurtosis in class R1Univariate
      Returns:
      The Excess Kurtosis of the Distribution
      Throws:
      java.lang.Exception - Thrown if the Skewness cannot be estimated
    • momentGeneratingFunction

      public R1ToR1 momentGeneratingFunction()
      Description copied from class: R1Univariate
      Construct the Moment Generating Function
      Overrides:
      momentGeneratingFunction in class R1Univariate
      Returns:
      The Moment Generating Function
    • cumulant

      public double cumulant​(int n) throws java.lang.Exception
      Compute the Cumulant
      Parameters:
      n - Cumulant Index
      Returns:
      The Cumulant
      Throws:
      java.lang.Exception - Thrown if the Inputs are Invalid
    • leadingRawMoments

      public double[] leadingRawMoments()
      Compute the Leading Non-central Moments
      Returns:
      Leading Non-central Moments
    • leadingCentralMoments

      public double[] leadingCentralMoments()
      Compute the Leading central Moments
      Returns:
      Leading central Moments
    • nonCentralMoment

      public double nonCentralMoment​(int n) throws java.lang.Exception
      Compute the Non-central Moment
      Overrides:
      nonCentralMoment in class R1Univariate
      Parameters:
      n - Moment Index
      Returns:
      The Non-central Moment
      Throws:
      java.lang.Exception - Thrown if the Inputs are Invalid