Theoremcore
Duality of tests and confidence sets
Also called test inversion, inverting a test.
The parameter values that a level-alpha test does not reject form a confidence set of level 1 - alpha, and every confidence set defines a test this way.
A confidence set and a family of hypothesis tests are the same object seen in two directions. If for every candidate value of a parameter there is a test of at level , then the set of values that the tests do not reject, after the data are seen, covers the true value with probability at least . Conversely, a confidence set of level gives, for every , a level- test: reject when is not in the set. Most intervals in this area are built this way, and the shape of the set, its coverage and its optimality are inherited from the tests.
Statement
Let take values in a sample space with law , , and let be the parameter of interest, with values in a set . The rest of is a nuisance parameter. For write for the null set of .
A level- acceptance region for is a measurable set with
so that the test "reject when " has size at most . A confidence set of level is a map , with measurable for each , such that
Theorem.
- Tests to sets. If is a level- acceptance region for each , then is a confidence set of level .
- Sets to tests. If is a confidence set of level , then is a level- acceptance region for each .
- Exact correspondence. The two maps are inverse to each other, and under them
So the confidence coefficient equals . In particular, if every test has size exactly , the coverage is exactly at its worst . Conversely, a confidence coefficient of exactly only means that the largest size, , equals ; every test has size exactly when the infimum of the coverage over each is . 4. Optimality carries over. Let be a level- acceptance region for every , with dual set . Let , and fix with . Suppose the region maximizes among all level- acceptance regions for . Then has level and minimizes , the probability of covering the false value , among all confidence sets of level . 5. p-values. If is a valid p-value for each , that is for and , then is a confidence set of level for every at once.
In plain words
Fix the data. Go through every value the parameter could have and ask the test "would you reject this value?". Keep the values that survive. Before the data are seen, the true value survives with probability at least , because surviving is exactly the event that the test for the true value accepts. So the coverage of the set is the acceptance probability of one test, the one at the truth, and nothing else is needed. Read the other way, a confidence set is a test for every value at once: a value outside the set is rejected.
Proof
Part 1. Fix and put , so . By the definition of , for every ,
So the events and are the same event, and
where the inequality is the level of the test for , used at a in its null set. Measurability of holds by assumption. Since was arbitrary, has level .
Part 2. Fix and . Then , and if and only if , that is, if and only if . So
by the level of at this . The set is measurable by the assumption on .
Part 3. Starting from a family , forming and then forming the regions of gives . Starting from gives . So the maps are inverse to each other. The proof of Part 1 showed that for every , as an equality of probabilities of one event. Taking the infimum over gives the displayed equality. Because the sets , , partition ,
and the inner supremum is the size of the test for .
Part 4. Let be any confidence set of level , and let . By Part 2 this is a level- acceptance region for . By the optimality of at ,
By the definitions of the dual sets, the left side is and the right side is . itself has level by Part 1, because every has level .
Part 5. Put . For , , so is a level- acceptance region, and Part 1 applies for each .
The proof uses no property of and no continuity. In particular it holds for discrete data, vector parameters and nuisance parameters, and it says nothing about the shape of .
Consequences
- Named intervals are inverted tests. The t interval is the set of that the two-sided t-test accepts. The Clopper-Pearson interval is the set of for which both one-sided exact binomial tests have p-value above ; for , and it is . The Wilson interval inverts the score test and gives for the same data. Fieller's theorem inverts a t-test for a ratio. Every pivotal quantity gives a family of tests and so fits the same scheme.
- Coverage is inherited from size. By Part 3, a conservative test gives a conservative set and an exact test an exact one. The Clopper-Pearson interval has coverage strictly above at every , because the binomial tail tests it inverts are not randomized and accept the true with probability above . A test that only holds its level asymptotically, such as the Wald test or the score test, gives a set whose coverage is only asymptotic.
- Uniformly most accurate bounds. By Part 4, inverting the uniformly most powerful one-sided tests of a monotone likelihood ratio family (from the Karlin-Rubin theorem) gives a lower confidence bound that is least likely, among all lower bounds of the same level, to lie below any given false value. Unbiased tests give unbiased confidence sets in the same way: if every test rejects each alternative with probability at least , then every false value is covered with probability at most .
- Reporting. Since holds every value that the tests accept, a confidence set reports the result of a test for every null value at once. A test of rejects at level exactly when , which is the reading used in the z-test and t-test pages.
Tightness
- The set need not be an interval. The theorem gives a set, not an interval. Inverting the two-sided binomial test with the "minimum likelihood" p-value (the default of the binomial test page) for , and gives, on a grid of step , the acceptance set
with p-values at and at . The cause is that this p-value is not monotone in above . The doubled-tail test gives the interval instead. Fieller's set can be two rays or the whole line. An interval is guaranteed when, for each , the acceptance set in is convex, for example when the p-value is unimodal in .
- One test is not enough. The set needs a level- test for every . A test of a single null value says nothing about the other values.
- Coverage is marginal. The probability is over repeated samples at a fixed . After the data are seen, is true or false, and the theorem gives no probability for it. With nuisance parameters, the guarantee is the infimum over the null set, so the coverage can be well above at most .
- The inequality in Part 1 can be strict everywhere. For a discrete without randomization the tests cannot have size exactly , and the coverage then exceeds for every . Randomized tests correspond in the same way to randomized sets, with , and can make both exact; the proof is the same with probabilities of events replaced by expectations of .
- The family must be fixed before the data. If the test for each is chosen after looking at , the events in Part 1 are no longer the acceptance events of fixed tests, and the bound fails.
History
Clopper and Pearson (1934) built their binomial interval from the two tails of the test, and Neyman (1937) gave the general construction of confidence intervals from regions of acceptance, one region for each parameter value, in the paper that set out the theory of confidence intervals. The statement as a correspondence between families of tests and confidence sets, with the transfer of optimality, is the form given in Lehmann's book on testing (first edition 1959); the third edition with Romano has it in Section 3.5 and Chapter 5. Sterne (1954) proposed the minimum-likelihood binomial test, whose inversion gives the non-interval sets shown above.
References
- E. L. Lehmann and Joseph P. Romano, Testing Statistical Hypotheses, third edition, Springer, 2005, Section 3.5 (confidence bounds, with uniformly most accurate bounds) and Chapter 5 (confidence intervals and families of tests)
- George Casella and Roger L. Berger, Statistical Inference, second edition, Duxbury, 2002, Section 9.2.1 (inverting a test statistic) and Section 9.3 (methods of evaluating interval estimators)
- Jerzy Neyman, Outline of a theory of statistical estimation based on the classical theory of probability, Philosophical Transactions of the Royal Society A 236, 1937, pp. 333 to 380 (confidence intervals from regions of acceptance)
Where this leads
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W4 complete |
|
Tag F421N6 Edit this page History Report an error Markdown