Tsqlim: Difference between revisions

From Eigenvector Research Documentation Wiki
Jump to navigation Jump to search
imported>Jeremy
(New page: ===Purpose=== Calculates PCA confidence limits for Hotelling's T<sup>2</sup>. ===Synopsis=== :tsqcl = tsqlim(m,pc,cl) :tsqcl = tsqlim(model,cl) ===Description=== Inputs can be in one ...)
 
imported>Neal
Line 16: Line 16:
or (b) a standard model structure, <tt>model</tt>, and the fractional confidence limit, <tt>cl</tt> (0 < cl < 1).
or (b) a standard model structure, <tt>model</tt>, and the fractional confidence limit, <tt>cl</tt> (0 < cl < 1).


The output <tt>tsqcl</tt> is the confidence limit. See Jackson (1991).
The output <tt>tsqcl</tt> is the confidence limit based on an F distribution as shown below. See Jackson (1991).
 
    <math>T_{K,M,\alpha }^{2}=\frac{K\left( M-1 \right)}{M-K}{{F}_{K,M-K,\alpha }}</math>
 
where <math>K</math> is the number of PCs, <math>M</math> is the number of samples and <math>{{F}_{K,M-K,\alpha }}</math> is the F distribution with <math>K</math> degrees of freedom in the numberator and <math>M-K</math> degrees of freedom in the denominator, and probability point <math>\alpha</math>.


===Examples===
===Examples===

Revision as of 10:12, 26 January 2011

Purpose

Calculates PCA confidence limits for Hotelling's T2.

Synopsis

tsqcl = tsqlim(m,pc,cl)
tsqcl = tsqlim(model,cl)

Description

Inputs can be in one of two forms:

(a) the number of samples m, the number of principal components used pc, and the fractional confidence limit, cl (0 < cl < 1) which can be a scalar or a vector (to calculate multiple confidence limits simultaneously).

or (b) a standard model structure, model, and the fractional confidence limit, cl (0 < cl < 1).

The output tsqcl is the confidence limit based on an F distribution as shown below. See Jackson (1991).

    

where is the number of PCs, is the number of samples and is the F distribution with degrees of freedom in the numberator and degrees of freedom in the denominator, and probability point .

Examples

tsqcl = tsqlim(15,2,0.95)
model = pca(data,pc); tsqcl = tsqlim(model,0.95)

See Also

analysis, pca, pcr, pls