Qapprox_nc {Qapprox} | R Documentation |
Right-tail probability of quadratic forms (Q = X'AX) of noncentral Gaussian variables.
Description
Right-tail probability of quadratic forms (Q = X'AX) of noncentral Gaussian variables.
Usage
Qapprox_nc(q, mu, Sigma, A = NULL, method = "MR")
Arguments
q |
- quantile, could be a vector. |
mu |
- mean vector of Gaussian variables. |
Sigma |
- covariance matrix of Gaussian variables. |
A |
- a positive-semi-definite matrix that defines the quadratic form. |
method |
- "MR": moment-ratio (skewness-kurtosis) matching method; "SW": Satterthwaite-Welch method that matches mean and variance; "LTZ4": Liu-Tang-Zhang method that matches the kurtosis. |
Value
The right-tail probability of a quadratic form (Q = X'AX) of noncentral Gaussian variables.
References
1. Hong Zhang, Judong Shen and Zheyang Wu. "An efficient and accurate approximation to the distribution of quadratic forms of Gaussian variables", arXiv:2005.00905.
Examples
n <- 100
Sigma <- toeplitz(1/(1:n))
mu <- rep(1, n)
thr <- 500
Qapprox_nc(thr, mu, Sigma, method="SW")
Qapprox_nc(thr, mu, Sigma, method="LTZ4")
Qapprox_nc(thr, mu, Sigma, method="MR")
[Package Qapprox version 0.2.0 Index]