pygsti.extras.drift.signal.maxpower_pvalue

pygsti.extras.drift.signal.maxpower_pvalue#

maxpower_pvalue(maxpower, numpowers, dof)#

The p-value of the test statistic max(lambda_i) where there are numpowers lambda_i test statistics, and they are i.i.d. as chi2 with dof degrees of freedom. This approximates the p-value of the largest power in “clickstream” power spectrum (generated from spectrum), with the DOF given by the number of clicks per times.