
Certify that a test sequence has exponentially small error probabilities
Source:R/gh_ap_d1.R
Exptest.RdThe rate is read off a single n, so it is a certificate at that n and not a proof of a rate.
References
Ghosal & van der Vaart (2017), Fundamentals of Nonparametric Bayesian Inference, Theorem 6.16 (Schwartz) and its proof, which invokes Lemma D.11. Read from the copy of the book held in the corpus.
Examples
Exptest(err_null = 0.1, err_alt = 0.2, n = 100)
#> $rate
#> [1] 0.01609438
#>
#> $rate_null
#> [1] 0.02302585
#>
#> $rate_alt
#> [1] 0.01609438
#>
#> $bound
#> [1] 0.2
#>
#> $exponential
#> [1] 1
#>
#> $n
#> [1] 100
#>
#> $method
#> [1] "Exponential test-consistency rate, Ghosal Theorem 6.16"
#>
#> attr(,"class")
#> [1] "morie_rich_result" "list"