Confidence interval for Uniform(theta, theta+a). Consider a random sample X_1, …, 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.

Ivan Buckley

Ivan Buckley

Answered question

2022-09-23

Confidence interval for Uniform( θ, θ + a)
Consider a random sample X 1 , , X n from a Uniform( θ, θ + a) distribution, where θ is unknown and a is known. We wish to determine a confidence interval for θ.
The reader may verify the following details: The statistics Y = min i X i and Z = max i X i are jointly sufficient for θ. For θ c 1 c 2 θ + a, P { c 1 Y Z c 2 } = [ ( c 2 c 1 ) / a ] n . For 0 < γ < 1, set d 1 = ( 1 γ n ) / 2 and d 2 = ( 1 + γ n ) / 2. Then γ = P { θ + a d 1 Y Z θ + a d 2 } = P { Z a d 2 θ Y a d 1 }. Thus, γ = P { θ + a d 1 Y Z θ + a d 2 } = P { Z a d 2 θ Y a d 1 } is a γ confidence interval for θ.
Now here's the difficulty: If we observe Z Y > a γ n , then Z a d 2 > Y a d 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?

Answer & Explanation

Cremolinoer

Cremolinoer

Beginner2022-09-24Added 11 answers

Step 1
There's nothing wrong with your calculations; this is indeed a flaw in the notion of confidence intervals.
Your logic is all correct up until the "Thus" at the start of the last sentence of your third paragraph. Given θ and a, I think the following conclusions are correct:
1. Given c 1 and c 2 such that θ c 1 c 2 θ + a, the probability that Y and Z will satisfy c 1 Y Z c 2 is ( c 2 c 1 a ) n
2. Given γ such that 0 < γ < 1, and letting d 1 1 γ n 2 and d 2 1 + γ n 2 , the probability that Y and Z will satisfy Z a d 2 θ Y a d 1 is γ.
Step 2
Note the direction of the reasoning, however: you've made an assumption about θ, and drawn inferences about the probability that Y and Z will satisfy certain predicates. But by trying to set a confidence interval on θ, you're trying to go in the other direction: measuring Y and Z and trying to use them to draw inferences about θ. If you want to reason in that direction, you need a Bayesian prior!
It's entirely possible that you'll end up with Y and Z such that Z a d 2 > Y a d 1 , thus making nonsense of the inequality Z a d 2 θ Y a d 1 . But the probability of that outcome won't exceed ( 1 γ )!
odenut6b

odenut6b

Beginner2022-09-25Added 3 answers

Step 1
The key point here is that confidence intervals are not uniquely determined by the distribution, but can be chosen in a number of different ways, although there are standard ways in which it may be done. These choices gear the test to look for, or emphasise, particular kinds of deviation from the hypotheses being tested.
The test you have formulated is valid, but chosen very badly in that it rejects all cases where Z Y gets sufficiently close to a.
Step 2
While it is true that the pair Y,Z are sufficient statistics, you may note that the distribution of U = Z Y is independent of θ. A common approach for constructing good confidence intervals is to condition on U: i.e., to find c U so that
Pr [ Z a + c U θ Y c U U = u ] = 1 α
for all u. Unless I'm very mistaken, the distribution of Y conditional on U is uniform in [ θ , θ + a U ]. If we let c U = ( a U ) α / 2, we get
Pr [ Z a + c U θ Y c U ] = 1 α
which is true conditional on U = u for any u, and hence is true in general.

Do you have a similar question?

Recalculate according to your conditions!

New Questions in College Statistics

Ask your question.
Get an expert answer.

Let our experts help you. Answer in as fast as 15 minutes.

Didn't find what you were looking for?