Package org.drip.measure.chisquare
Class R1NonCentral
java.lang.Object
org.drip.measure.continuous.R1Distribution
org.drip.measure.chisquare.R1NonCentral
- Direct Known Subclasses:
R1NonCentralCumulantInvariant
public class R1NonCentral extends R1Distribution
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
- Construct the Standard Instance of R1NonCentral
- R1NonCentral Constructor
- Retrieve the R1 Non-Central Parameters
- Retrieve the Gamma Estimator
- Retrieve the Digamma Estimator
- Retrieve the Lower Incomplete Gamma Estimator
- Retrieve the Modified Bessel First Kind Estimator
- Lay out the Support of the PDF Range
- Compute the Density under the Distribution at the given Variate
- Compute the cumulative under the distribution to the given value
- Retrieve the Mean of the Distribution
- Retrieve the Variance of the Distribution
- Retrieve the Skewness of the Distribution
- Retrieve the Excess Kurtosis of the Distribution
- Construct the Moment Generating Function
- Compute the Cumulant
- Compute the Leading Non-central Moments
- Compute the Leading Central Moments
- Compute the Non-central Moment
| Module | Computational Core Module |
| Library | Numerical Analysis Library |
| Project | Rd Continuous/Discrete Probability Measures |
| Package | Chi-Square Distribution Implementation/Properties |
- Author:
- Lakshmi Krishnamurthy
-
Constructor Summary
Constructors Constructor Description R1NonCentral(R1NonCentralParameters parameters, R1ToR1 gammaEstimator, R1ToR1 digammaEstimator, R2ToR1 lowerIncompleteGammaEstimator, ModifiedBesselFirstKindEstimator modifiedBesselFirstKindEstimator)R1NonCentral Constructor -
Method Summary
Modifier and Type Method Description doublecumulant(int n)Compute the Cumulantdoublecumulative(double t)Compute the cumulative under the distribution to the given valuedoubledensity(double x)Compute the Density under the Distribution at the given VariateR1ToR1digammaEstimator()Retrieve the Digamma EstimatordoubleexcessKurtosis()Retrieve the Excess Kurtosis of the DistributionR1ToR1gammaEstimator()Retrieve the Gamma Estimatordouble[]leadingCentralMoments()Compute the Leading Central Momentsdouble[]leadingRawMoments()Compute the Leading Non-central MomentsR2ToR1lowerIncompleteGammaEstimator()Retrieve the Lower Incomplete Gamma Estimatordoublemean()Retrieve the Mean of the DistributionModifiedBesselFirstKindEstimatormodifiedBesselFirstKindEstimator()Retrieve the Modified Bessel First Kind EstimatorR1ToR1momentGeneratingFunction()Construct the Moment Generating FunctiondoublenonCentralMoment(int n)Compute the Non-central MomentR1NonCentralParametersparameters()Retrieve the R1 Non-Central Parametersdoubleskewness()Retrieve the Skewness of the Distributionstatic R1NonCentralStandard(double degreesOfFreedom, double nonCentralityParameter, R1ToR1 gammaEstimator, R1ToR1 digammaEstimator, R2ToR1 lowerIncompleteGammaEstimator, ModifiedBesselFirstKindEstimator modifiedBesselFirstKindEstimator)Construct the Standard Instance of R1NonCentraldouble[]support()Lay out the Support of the PDF Rangedoublevariance()Retrieve the Variance of the DistributionMethods inherited from class org.drip.measure.continuous.R1Distribution
bPOE, centralMoment, cvar, differentialEntropy, expectedShortfall, fisherInformation, histogram, incremental, invCumulative, iqr, kullbackLeiblerDivergence, median, mode, populationCentralMeasures, probabilityGeneratingFunction, quantile, random, randomArray, supported, tukeyAnomaly, tukeyCriterionMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
R1NonCentral
public R1NonCentral(R1NonCentralParameters parameters, R1ToR1 gammaEstimator, R1ToR1 digammaEstimator, R2ToR1 lowerIncompleteGammaEstimator, ModifiedBesselFirstKindEstimator modifiedBesselFirstKindEstimator) throws java.lang.ExceptionR1NonCentral Constructor- Parameters:
parameters- R1 Non-central ParametersgammaEstimator- Gamma EstimatordigammaEstimator- Digamma EstimatorlowerIncompleteGammaEstimator- Lower Incomplete Gamma EstimatormodifiedBesselFirstKindEstimator- 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 FreedomnonCentralityParameter- Non-centrality ParametergammaEstimator- Gamma EstimatordigammaEstimator- Digamma EstimatorlowerIncompleteGammaEstimator- Lower Incomplete Gamma EstimatormodifiedBesselFirstKindEstimator- Modified Bessel First Kind Estimator- Returns:
- The Standard Instance of R1NonCentral
-
parameters
Retrieve the R1 Non-Central Parameters- Returns:
- The R1 Non-Central Parameters
-
gammaEstimator
Retrieve the Gamma Estimator- Returns:
- Gamma Estimator
-
digammaEstimator
Retrieve the Digamma Estimator- Returns:
- Digamma Estimator
-
lowerIncompleteGammaEstimator
Retrieve the Lower Incomplete Gamma Estimator- Returns:
- Lower Incomplete Gamma Estimator
-
modifiedBesselFirstKindEstimator
Retrieve the Modified Bessel First Kind Estimator- Returns:
- Modified Bessel First Kind Estimator
-
support
public double[] support()Lay out the Support of the PDF Range- Specified by:
supportin classR1Distribution- Returns:
- Support of the PDF Range
-
density
public double density(double x) throws java.lang.ExceptionCompute the Density under the Distribution at the given Variate- Specified by:
densityin classR1Distribution- 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.ExceptionCompute the cumulative under the distribution to the given value- Specified by:
cumulativein classR1Distribution- 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.ExceptionRetrieve the Mean of the Distribution- Specified by:
meanin classR1Distribution- Returns:
- The Mean of the Distribution
- Throws:
java.lang.Exception- Thrown if the Mean cannot be estimated
-
variance
public double variance() throws java.lang.ExceptionRetrieve the Variance of the Distribution- Specified by:
variancein classR1Distribution- Returns:
- The Variance of the Distribution
- Throws:
java.lang.Exception- Thrown if the Variance cannot be estimated
-
skewness
public double skewness() throws java.lang.ExceptionRetrieve the Skewness of the Distribution- Overrides:
skewnessin classR1Distribution- Returns:
- The Skewness of the Distribution
- Throws:
java.lang.Exception- Thrown if the Skewness cannot be estimated
-
excessKurtosis
public double excessKurtosis() throws java.lang.ExceptionRetrieve the Excess Kurtosis of the Distribution- Overrides:
excessKurtosisin classR1Distribution- Returns:
- The Excess Kurtosis of the Distribution
- Throws:
java.lang.Exception- Thrown if the Skewness cannot be estimated
-
momentGeneratingFunction
Construct the Moment Generating Function- Overrides:
momentGeneratingFunctionin classR1Distribution- Returns:
- The Moment Generating Function
-
cumulant
public double cumulant(int n) throws java.lang.ExceptionCompute 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.ExceptionCompute the Non-central Moment- Overrides:
nonCentralMomentin classR1Distribution- Parameters:
n- Moment Index- Returns:
- The Non-central Moment
- Throws:
java.lang.Exception- Thrown if the Inputs are Invalid
-