Docsity

TWO-SAMPLE BOOTSTRAP TESTS, Lecture notes of Algorithms and Programming

Partial preview of the text

Download TWO-SAMPLE BOOTSTRAP TESTS and more Lecture notes Algorithms and Programming in PDF only on Docsity!

TWO-SAMPLE BOOTSTRAP TESTS: WHEN TO MIX?

Subhash Lele Department of Biostatistics Johns Hopkins University Baltimore, Maryland 21205 and Ed Carlstein Department of Statistics University of North Carolina Chapel Hill, North Carolina 27599

No. 2031

SUMMARY

We consider two-sample bootstrap tests for testing equality of a given functional in two populations. The usual bootstrap analogue of the per- mutation test "mixes" the two samples prior to resampling. It is shown that in the presence of nuisance parameters this test can be invalid or. even if valid. can have bad power characteristics. An alternative boot- strap test procedure is suggested which "mixes" only after resampling from the two separate samples. The new procedure is valid in the presence of nuisance parameters and has better power than the usual procedure under fairly general conditions.

Key words: Bootstrap; Penmutation tests; Nuisance parameters; Efficiency.

We obtain the cutoff points on the basis of the distribution of T^ *j •

If F and G are identical under Ho' this procedure would be valid; Beran (1986) and Romano (1988, 1989) make this statement precise. However, when F and G are in fact different, it may be because the parameter of interest is different (i.e., the alternative hypothesis is true) or just because the nuisance parameters are different (i.e., the null hypothesis is true but F and G are still not identical); thus it is not clear if the above procedure (using "prior mixing") is sensible. The difficUlty is that Step 2 implicitly assumes that F = Gunder Ho' Our motivation to study this problem came from the morphometric problems discussed in Lele and Richtsmeier (1990). In these situations we

are more interested in the equality of the mean shapes than the equality of ~.

distributions. Similar situations are abundant in practice where one is interested in the equality of a particular parameter, in the presence of nuisance parameters which mayor may not be equal in the two distributions. The purpose of this paper is to study the performance of bootstrap tests in such situations. Note that Beran (1986), Lambert (1985) and Romano (1988,

  1. assume that the nuisance parameters are equal. In the next Section we discuss two examples where "prior mixing" leads to an invalid test or a test with miserably low power. Section 3 presents a general. formulation of the two-sample hypothesis testing problem, and Section 4 proposes a bootstrap test procedure based on "posterior mixing". The properties of prior versus posterior mixing procedures are compared in Section 5, and several examples are analyzed in Section 6. e"
2. TWO EXAMPLES

Example 1: Invalid bootstrap test In this example we consider a situation where F and G are not iden- tical, but the null hypothesis of equality regarding a particular parameter, the median, is true. We show that in such a situation, the "prior mixing" bootstrap procedure can lead to a sampling distribution other than the true null distribution, thus not even getting the correct level of significance. Let Xl' X 2 ""'X (^) n be independent and identically distributed F and Vl , V 2 ""'Vn be independent and identically distributed G. Let F and G be absolutely continuous with densities f and g respectively. We are interested in testing the null hypothesis of equality of medians. Let the test statistic be:

Tn = yn [median{X 1sisn i } - median{viSisn i }] •

Let zero be the median for both the distributions but let f(O) ~ g(O), with f(O) and g(O) positive. Then the true asymptotic distribution of Tn is

Tn - - N(0 , T 1 (1f 2 (0) + (^) g2(0) 1 ) )

(Serfling, 1980) where =means "approximately distributed." The pooled sample empirical distribution function Hn approximates the distribution ~ (F+G) with density ~ (f+g). Let T~ denote the resampled version obtained by the "prior mixing" bootstrap procedure. Then

"'.T^ n - -^ N^ ( (^0) , 2 ( (^) f(O) 1 + g(O) ) 2)

where hex) = ~ f(x) + ~ g(x). Now suppose 8 F = 10 and 8 G = 0, and n = 100

(which should be large enough for approximate normality). Then Tn =N(100,2)

and ..Tn^ * =N(O, 44053). Therefore, Tn almost always lies in the interval (95.76, 104.24), while the critical regions obtained via Tn^ ..^ * at various levels are: CR(a = 0.01) • {(--, -541.5) U (541.5, -)}t CR(a = 0.05) = {(--, -411.4) U (411.4, -)}. Thus we never reject the null hypothesis. The moral of the two examples is the following: 1: If there are nuisance parameters which are unequal in F and G even under Ho' the "prior mixing" bootstrap test procedure may not be valid. 2: Since we are resampling from the mixed distribution, under HI the power of the "prior mixing" bootstrap test procedure can be near zero. In the following sections we develop a general theory for an alter- native bootstrap test procedure, based on "posterior mixing", which corrects these difficulties.

  1. STATEMENT OF THE PROBLEM Consider the general two-sample problem: We observe two independent samples ~n : = (Xl' X 2 ,···, Xn) and !n : = (VI' V 2 ,···, Vm n ), where the Xi's are independent identically distributed random variables from F, and the Vi's are independent identically distributed random variables from G.

We assume that (F, G) belongs to H, a class of distribution pairs

which may be, for example: all distributions with finite variance, or all continuous distributions, or a parametric family of distributions such as Poisson distributions. We are interested in a functional 8(') and the hypotheses Ho: 8(F)=8(G) versus HA: 8(F) * 8(G). In terms of the class H, this can be stated as:

HO: (F, G) E Ho: = {(F, G) E H: 8(F) = 8(G)}

HA: (F, G) E HA: = {(F, G) E H: 8{F) * 8{G)}. Our test statistic is Tn: = Tn(~n' !n) and the rejection rule is of

the form: II Reject Ho if and only if ITnl > c~ II where a is fixed.

The sUbject of our study is: how to select c~ via a bootstrap proce- dure. 3.1 Validity of a procedure Suppose Ho is true, i.e., (F, G) E Ho' and that there exists ~~(F, G) such that

In general, ~~(F, G) may not be available explicitly, either because it is analytically intractable to determine, or because it depends on the unknown F and G nontrivially. If c~ is approximately equal to ~~(F, G) then we say that our rejec-

tion rule is approximately valid, i.e., PF,G{Reject Ho} = PF,G{ITnl > C~} =a.

3.2 Power of a procedure

Suppose HA is true, i.e., (F, G) E HA• Then the power of the procedure ~. is given by a~(F, G): = PF,G{ITnl > C~}. Moreover if, as n ~ ., ~ a~(F, G) ~ 1 then our test procedure is consistent.

iStC~ is the solution of: () assuming for simplicity that an exact solution exists. The question is: how to generate Tn^ * from (~n' rn), in order to obtain a reasonable Cn'Q We will consider two bootstrap algorithms: Tn^ A denoting the bootstrap version of Tn using PRIOR mixing, and -Tn denoting the bootstrap version of Tn using POSTERIOR mixing. 4.1 Prior mixing algorithm This algorithm is analogous to the two-sample penmutation test pro- cedure (Romano 1988, 1989). (1) Generate ~n:=^ (Xn1,···,X*^ * *^ ~ nn ) with Xni^ (conditionally)^ i.i.d.^ r.v.s^ ,., from Hn (·). Generate 1 *^ *^ *^ *

n:=^ (Y^ n1 ""'Y^ nm n) with Yni (conditionally)^ i.i.d.^ r.v.s

from Hn (·). (2) Define Fn^ as the e.c.d.t of ~n'^ and G^ * A * * n * as the^ e.c.d.t*^ of^ rn• (3) Calculate Tn : = Tn(~n' rn) ~ m[tn(Fn) - tm (G (^) n)]. The

distribution of Tn^ A*^ yields CAQ^ n

n by^ solving equation^ (*).

It seems that the above algorithm should yield a good approximation to

the null distribution of Tn' since here our Xni's^ ^ and Yni's both come from

distributions with the same value of 8('), viz. 8(H (^) n). But in fact this

algorithm goes too far in matching up the distributions of X^ *ni and

Y^ *ni It actually makes the entire distributions equal, instead of just

e"

matching their 8{·) values. The next algorithm retains information about how F and G may differ (in features other than 8{·)). by resampling separately from Fn and Gn and mixing afterwards.

4.2 Posterior mixing algorithm Part A:

  1. 1.d. from Fn.

i.1.d. from Fn•

Let FF n^ be the e.c.d.f. of F~n and FGn* be the e.c.d.f. of FY *n•

Part B: (Similar to part A.)

i.i.d. from Gn•

i.1.d. from Gn•

Let GFn^ * and GG n^ be the e.c.d.f.s of G~n and GY *n respectively.

tn(On }^ = (~)^1 ~~n ~ (^ Xl' xz'···' xk) where ~~n^ 1S.^ the sum over all (^ kn>

possible samples of size k obtained without replacement from On. Under Al and A2, we find that for (F, G) £ H, Tn is approximately normal with mean yn(8(F} - 8(G}} and variance this yields

where Za/2 is the (1 - a/2) percentile for a standard normal distribution. 5.1 Bootstrap procedures To evaluate the bootstrap procedures for selecting c~, we need an assumption analogous to A2: A3: Let O~ be an estimate of distribution 0, based on O(n}

observations. If On^ * is the e.c.d.f. based on n (conditionally)

1.1.d. observations from O~, then:

in (conditional) distribution as n ~ ., a.s. Here 02(.} is the same functional as in A2. Note that O~ is not necessarily the e.c.d.f. of n observations that are 1.1.d. from O. We will only need to invoke A3 for reasonable choices of Q~ (See Sections 5.1.1 and 5.1.2).

5.1.1 Prior mixing In this situation, the roles of Q~ and Q are played by Hn and Hn := i F + n G, respectively. Note that Hn(·) ~ Hn (') a.s. as n ~ ., although Hn is based on n+m (^) n observations which are not i.i.d. from Hn•

Using At and A3, we find that for (F, G) E H , ...Tn^ * is approximately

N(O, 02(H (^) n)/n) (conditionally), yielding

Validity: Suppose Ho is true, i.e., (F, G) E Ho• For validity of the

prior mixing algorithm, we need C~(F, G) = ;~(F, G), or equivalently

This, in general, does not hold (recall Example 1). We can obtain validity in the following two special cases: (i) F = G. (ii) Suppse 02 (.) is a linear functional, i.e., 02(H (^) n) =i 02(F) + n 02(G). Then prior mixing is valid if and only if 02(F) = 02(G) or n = 12. Notice that both cases involve restriction of the nuisance parameters.

Power: For (F, G) E HA, the power of the prior mixing procedure is

Yo re(F) - B(G)] - c~ (F, G) ) • ~2(F) + !1T 02(G)

5.1.3 Power comparison between prior and posterior mixing For (F, G) E HA, our asymptotic approximations (above) show that posterior mixing will have better power than prior mixing if C~(F, G) ~ c~ (F, G), or equivalently:

Suppose 02 (.) is a concave functional, i.e., o2{H (^) n) ~ i o2(F) + n o2(G); then to obtain (t) it suffices to have either

or

(a) 02{F) ~ o2{G) and n ~ ~ , (b) o2(F) ~ o2{G) and n ~ 1. 2

The relative sampling proportions in (a) and (b) correspond to a logical ~ sampling design: a larger sample size is drawn from the population where the statistic has larger variance.

  1. EXAMPLES In this Section we apply the analysis from Section 5 to several examples. We assume A1 throughout. Example A: The sample mean (general case) Let H = {(F, G): F and G have finite variances}, e{Q) = f xdQ(x), tn{Q) = e{Q) for all n. In this scenario, A2 holds with 02{Q) = f (x - e(Q»2 dQ(x). The approximations from Sections 5.1.1 and 5.1.2 can be fonmalized by the following theorems.

Theorem 1: (Prior Mixing)

sup uER a.s. as n"·

Theorem 2: (Posterior Mixing)

 Theorem 1 is proved by a straightforward modification of the argument used in Theorem 1.A of Singh (1981). Theorem 2 follows directly from Theorem 2.1 of Bickel and Freedman (1981). Observe that 02 (0) is a linear functional for (F, G) E _Ho_ and it is a concave functional for (F, G) E _HA•_ So, for n ¢ ~, prior mixing is valid ### only if the nuisance parameters are equal, i.eo, 02(F) = 02(G); posterior #### mixing is always valid. And,for a logical sampling proportion w, posterior mixing will have better power than prior mixing. Moreover, for fixed (n, 02(F), 02(G» we have (;) for all la(F) - a(G)1 sufficiently large. ### Example B: The sample mean (Poisson case), Let H = {(F, G): F and G are Poisson}, and let a(·), t n(·) and _0 2 (.)_ be as in Example A. Since F = Gunder Ho' we find that both the prior as well as posterior miXing #### procedures are valid. However under HA, we find that the posterior mixing procedure has better power than prior mixing, for any fixed n, whenever \a(F) - B(G)\ > In-i\/n i. ##### ACKNOWLEDGEMENTS This work was initiated during the first author's visit to the Department of Statistics, University of North Carolina at Chapel Hill. We thank Professor P. K. Sen for helpful discussions. The second author's work was supported by N.S.F. Grant #DMS-8902973. ##### REFERENCES BERAN, R. (1986). Simulated power functions. Ann. Statist. 14, 151-173. BICKEL, P. and FREEDMAN, D. (1981). Some asymptotic theory for the bootstrap. Ann. Statist. 9, 1196-1217. EDGINGTON, E. S. (1980). Randomization Tests. New York: Dekker. LAMBERT, D. (1985). Robust two sample permutation tests. Ann. Statist. 13, 606-25. LELE, S. and RICHTSMEIER, J. T. (1990). A coordinate free approach for comparing biological shapes I. Landmark data. Am. ~ Fhys. Anthropol. (to appear). ROMANO, J. P. (1988). A bootstrap revival of some nonparametric distance tests. ~ Am. Statist. Assoc. 83, 698-708. ROMANO, J. P. (1989). Bootstrap and randomization tests of some non- parametric hypothesis. Ann. Statist. 17, 141-59. SERFLING, R. J. (1980). ApprOXimation Theorems of Mathematical Statistics. New York: John Wiley and Sons. SINGH, K. (1981). On the asymptotic accuracy of Efron's bootstrap. Ann. Statist. 9, 1187-1195.