This suite of Matlab functions calculates to high precision the
of linear combination of continuous random variables (RV) belonging to one of the following classes:
The science of metrology deals with the following situation: a physical quantity is measured by two or more measuring devices. The uncertainty of these devices has know statistical properties.
This situation occurs when computing the distribution of quadratic forms in normal variables. Imhof (1961) used a non-singular linear transformation to transform this quadratic form into a linear combination of non-central chi-squared RV. Davies (1980) proposed an efficient algorithm for calculating this linear combination. This software package improves the calculation method proposed by Davies (1980) using a fast convergent numerical method for oscillatory integrals (Sidi (1982)).
There is a modern application of calculating the distribution of linear combination of chi-squared RV, namely in genetic research the sequence kernel association test (SKAT) is a flexible, computationally efficient, regression approach that tests for association between variants in a region (both common and rare) and a dichotomous (e.g., case-control) or continuous phenotype while adjusting for covariates, such as principal components, to account for population stratification, Wu (2011).
Standard log-Lambert W x chi-squared RV appears in the distribution of likehood ratio test, LRT, for testing a single variance component, Witkovsky et al (2015).
Distribution of the likehood ratio test, LRT, statistic (under H_0) for testing of normal linear regression model parameters requires sum of chi-squared and log-Lambert W x chi-squared RV, see section 4.2 in Witkovsky et al. (2015).
Distribution of the LRT statistic (under H_0) for testing canonical variance components leads to a linear combination of RV with standard log-Lambert W x chi-squared distributions, see section 4.3 in Witkovsky et al (2015).
Characteristic functions are used in these calculations. One of the properties of characteristic functions is that that they enable to calculate CDF and PDF of a linear combination of RVs whose characteristic functions are known. For more information see
characteristic functions: Properties.
For tail probability and CDF calculation the Gil-Pelaez inversion formula is used, see Gil-Pelaez (1951) below. For pdf calculation simple inverse Fourier transform is used.
Treba pridat text
TPC is the top level function that the average user is likely to use:
In alphabetic order:
It is possible to build linear combinations of RV belonging to the same class.
addpath
to add this folder to your current path).For details see [TPC Numerical Methods].
Wiki: Function TPC_10
Wiki: Function TPC_20
Wiki: TPC Numerical Methods
Wiki: cf_IGamma
Wiki: cf_LWchi2
Wiki: cf_chi2
Wiki: cf_normal
Wiki: cf_t
Wiki: cf_triangular
Wiki: cf_uniform