Suppose now that the null hypothesis is a subset of the set of all distribution
functions with a unique median and that F is continuous at the median. To be
concrete, let us suppose that this median is 1. We could construct a test
of this hypothesis against the alternative that the median is 2 in the
following way. Collect a random sample of size N, say
, and
let TN be the number of observations which are greater than 1. If the
null hypothesis is true, then TN has a binomial (N,1/2) distribution. If
the alternative hypothesis is true, then TN will have a binomial (N,p)
distribution where p > 1/2, so we would want to reject the null hypothesis
if TN is too large. How large is too large? Just select a target
probability of Type I error,
, and proceed as if testing when the
null hypothesis is that the distribution is binomial (N,1/2) vs the
alternative that it is binomial (N,p) for p > 1/2. You won't be able to
compute power for your test without substatially more information!