Permutation p-values
(WIP, personal notes)
I need to clarify permutation tests in their diverse forms, and how
to best prove their p-values. For this, I need also to look at order
statistics in more details.
TODO:
- Talk about
and the bisided
- Clarify equality almost surely in claim
1
- Talk about the applications for hypothesis testing
- Cover all TODOs.
Order vectors
If
is a vector, let
its order vector. TODO:
- Definition
- It is well-defined
- invariance under permutations
- different counting (in)equalities needed later: it’s easier if we
wlog assume that the vector is already sorted. Prove that this is OK to
do.
Claim B
For a vector
,
and any
:
TODO!!
Claim A
For a vector
Order statistics
An order statistics is the order vector associated to a random
vector. TODO:
- It is measurable
- something else?
Finite group of permutations
Let
be a finite group and
the uniform distribution on
.
Assume that
acts on some space
.
Claim G2
If
is a random variable with value in
,
then the following are equivalent:
-
for all
;
- ,
with
independent from
.
Claim G1
Fix
random elements of
.
- If
,
then
and
.
-
is independent from
iff it is independent from
.
-
is independent iff
is independent
- In particular,
is independent iff
is.
TODO
Permutation tests
Let
be a random vector, and let
its order statistics
Consider the following condition, call it (C):
Recall also that
is called exchangeable iff
for any permutation
(where
by definition). We have that exchangeability implies
condition (C): Take
with
:
Question
Is exchangeability actually equivalent to condition (C)?
Claim 1
Under (C), we have
with equality if the
coordinates of
are distinct almost surely.
Note that for a fixed
vector
,
with equality iff
.
In particular, if the
s
are disjoint almost surely,
holds almost surely, and the inequality above is an equality.
Question
Do we have, in the above claim, that the inequality is an equality
iff the coordinates are distinct almost surely? I think what we have is:
the coordinates are distinct a.s. iff for each
,
we have an equality. TODO: check this.
Claim 2
Let
a random variable with values in a space
,
some statistics, and
be a finite group acting on
such that
for all
.
Define
.
Then
satisfies condition (C).
Note that
for all
.
Indeed, this is equivalent to saying that
and
are permutations of each other, which holds since
and
are permutations of each other (because in turn
and
are permutations of each other). Fix then
and
,
we get:
Claim 3
Let
a random variable with values in a space
,
some statistics, and
be a finite group acting on
such that
for all
.
Let
. Define
.
Then
satisfies condition (C).
It suffices to see that
is exchangeable (since exchangeability implies (C)): Note that if
,
then
is exchangeable, since
itself is exchangeable (because an iid vector is always exchangeable).
From
with
,
we get
Furthermore, from claim g1, we have that
.
It follows that
is exchangeable, and so is then the
vector
Question
How to deal with sampling the
s
without replacement instead of with replacement? Does claim 3 hold if
,
with
? Then
-
is exchangeable, but we don’t care about that
-
implies
- so that
- and it suffices to check that
is exchangeable
- for which it suffices to show that
is exchangeable,
- but I think that latter is
.
So I think everything holds
❤
Claim 4
In the context of claim 1, letting
,
we have
This essentially follows from claim 1 using
also claim a:
❤
References
Kallenberg, Olav. 2021.
Foundations of Modern Probability.
Probability Theory and Stochastic Modelling. Springer
International Publishing.
https://doi.org/10.1007/978-3-030-61871-1.