KN.test | R Documentation |
Estimate the number of spikes in a spiked covariance model using the procedure described in Kritchman and Nadler, (2009)
KN.test(S, numObs, alpha = 0.05)
S |
the sample covariance matrix |
numObs |
number of data observations |
alpha |
significance level for the test |
This method calculates the number of spikes in a spiked covariance model by iteratively comparing a standardized eigenvalue to the quantile of Tracy-Wisdom distribution for given significance level α. The procedure is described in Kritchman and Nadler, (2009).
numOfSpikes - The number of spikes K
sigma.sq - Estimated noise variance
Kritchman, S. and Nadler, B., 2009. Non-parametric detection of the number of signals: Hypothesis testing and random matrix theory. IEEE Transactions on Signal Processing, 57(10), pp.3930-3941.
sigmasq.est
library(casp) S<-diag(c(10,8,6,4,rep(1,6))) KN.test.out<-KN.test(S,50)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.