Next: F Random Variable, Previous: Chi-squared Random Variable, Up: Functions and Variables for continuous distributions [Contents][Index]
Let \(X_1, X_2, ..., X_n\) be \(n\) independent normally distributed random variables with means \(\mu_k\) and unit variances. Then the random variable
has a noncentral \(\chi^2\) distribution. The number of degrees of freedom is \(n\), and the noncentrality parameter is defined by
Returns the value at \(x\) of the density function of a
noncentral
\(\chi^2\)
random
variable m4_noncentral_chi2(n,ncp), with \(n>0\) and noncentrality parameter \(ncp>=0\). To
make use of this function, write first load("distrib")
.
For \(x < 0\), the pdf is 0, and for \(x \ge 0\) the pdf is
Returns the value at x of the distribution function of a noncentral Chi-square random variable m4_noncentral_chi2(n,ncp), with \(n>0\) and noncentrality parameter \(ncp>=0\). To make use of this function, write first load("distrib")
.
Returns the q-quantile of a noncentral Chi-square random variable m4_noncentral_chi2(n,ncp), with \(n>0\) and noncentrality parameter \(ncp>=0\); in other words, this is the inverse of cdf_noncentral_chi2
. Argument q must be an element of \([0,1]\).
This function has no closed form and it is numerically computed.
Returns the mean of a noncentral Chi-square random variable m4_noncentral_chi2(n,ncp), with \(n>0\) and noncentrality parameter \(ncp>=0\).
The mean is
where \(\mu\) is the noncentrality parameter ncp.
Returns the variance of a noncentral Chi-square random variable m4_noncentral_chi2(n,ncp), with \(n>0\) and noncentrality parameter \(ncp>=0\).
The variance is
where \(\mu\) is the noncentrality parameter ncp.
Returns the standard deviation of a noncentral Chi-square random variable m4_noncentral_chi2(n,ncp), with \(n>0\) and noncentrality parameter \(ncp>=0\).
The standard deviation is
where \(\mu\) is the noncentrality parameter ncp.
Returns the skewness coefficient of a noncentral Chi-square random variable m4_noncentral_chi2(n,ncp), with \(n>0\) and noncentrality parameter \(ncp>=0\).
The skewness coefficient is
where \(\mu\) is the noncentrality parameter ncp.
Returns the kurtosis coefficient of a noncentral Chi-square random variable m4_noncentral_chi2(n,ncp), with \(n>0\) and noncentrality parameter \(ncp>=0\).
The kurtosis coefficient is
where \(\mu\) is the noncentrality parameter ncp.
Returns a noncentral Chi-square random variate m4_noncentral_chi2(n,ncp), with \(n>0\) and noncentrality parameter \(ncp>=0\). Calling random_noncentral_chi2
with a third argument m, a random sample of size m will be simulated.
To make use of this function, write first load("distrib")
.
Next: F Random Variable, Previous: Chi-squared Random Variable, Up: Functions and Variables for continuous distributions [Contents][Index]