I am encountering a difficulty with the following task. Have I made a mistake, or is this an inherent flaw in the notion of confidence intervals? (Other such flaws exist.)
Consider a random sample $X_1,\ldots , X_n$ from a Uniform($\theta$, $\theta + a$) distribution, where $\theta$ is unknown and $a$ is known. We wish to determine a confidence interval for $\theta$.
The reader may verify the following details: The statistics $Y=\text{min}_i X_i$ and $Z=\text{max}_i X_i$ are jointly sufficient for $\theta$. For $\theta \le c_1 \le c_2 \le \theta + a$, $P\{c_1 \le Y \le Z \le c_2\} = [(c_2 - c_1)/a]^n$. For $0 < \gamma < 1$, set $d_1 =(1-\sqrt[n]\gamma)/2$ and $d_2 =(1+\sqrt[n]\gamma)/2$. Then $\gamma = P\{\theta + ad_1 \le Y \le Z \le \theta + ad_2\} = P\{Z -ad_2 \le \theta \le Y-ad_1\}$. Thus, $[Z -ad_2, Y -ad_1]$ is a $\gamma$ confidence interval for $\theta$.
Now here's the difficulty: If we observe $Z - Y > a\sqrt[n]\gamma$, then $Z -ad_2 > Y -ad_1$, so our formula yields a nonsensical answer. Have I made an error in my calculations? Or is this one of those problems with confidence intervals?
(Homework? I guess so - but a homework problem that I wrote for my students. Inspired by another problem in DeGroot & Schervish.)
[Also posted at math.stackexchange. I didn't know about this group, and I received no satisfactory answer there.]