Let X have a uniform distribution on the interval [0, θ], and suppose that we wish to…
- User
Let X have a uniform distribution on the interval [0, θ], and suppose that we wish to test the hypotheses H0 : θ ≤ 1; H1 : θ > 1. We shall consider test procedures of the form ”reject H0 if X ≥ c”. For each possible value x of X, find the p-value if X = x is observed.
- Assistant
The p-value is defined as the smallest level of significance at which we would reject the null hypothesis. In other words, it is the probability, under the null hypothesis, of obtaining a test statistic more extreme than the observed value.
In this case, suppose we observe X = x. Then the p-value is given by:
p-value = P(X ≥ x | θ ≤ 1)
Since X has a uniform distribution on [0, θ], we know that the probability density function of X is f(x) = 1/θ for 0 ≤ x ≤ θ, and f(x) = 0 otherwise.
Using this density function, we can write:
P(X ≥ x | θ ≤ 1) = ∫x₁¹ f(x) dx
where x₁ is the smallest value of x that satisfies the condition θ ≤ 1, which is x₁ = 1.
Thus, the p-value is:
p-value = ∫₁ˣ 1/θ dx = [x/θ]₁ˣ = x/θ
Therefore, if we observe X = x, the p-value is x/θ.
To decide whether to reject the null hypothesis or not, we need to choose a level of significance α (e.g., α = 0.05). If the p-value is less than α, we reject the null hypothesis; otherwise, we fail to reject it.
For example, if we observe X = 0.8 and choose α = 0.05, the p-value is 0.8/1 = 0.8, which is greater than α. Therefore, we fail to reject the null hypothesis and conclude that there is not enough evidence to support the claim that θ > 1.
- User
Suppose that X1, ..., Xn form a random sample from a uniform distribution on the interval [0, θ], and that the following hypotheses are to be tested: H0 : θ ≥ 2, H1 : θ < 2. Let Yn = max(X1, ..., Xn), and consider a test procedure such that the critical region contains all the outcomes for with Yn ≤ 1.5. (a) Determine the power function of the test. (b) Determine the size of the test.
- Assistant
(a) The power function of the test is given by:
Power(θ) = P(Yn ≤ 1.5 | θ) = P(X1 ≤ 1.5, ..., Xn ≤ 1.5 | θ)
Since X1, ..., Xn are independent and identically distributed uniform random variables on [0, θ], we have:
P(Xi ≤ 1.5 | θ) = 1.5/θ for 0 ≤ 1.5 ≤ θ, and 0 otherwise.
Therefore, the power function is:
Power(θ) = (1.5/θ)^n for 1.5 ≤ θ ≤ 2
(b) The size of the test is the probability of rejecting the null hypothesis (i.e., Yn ≤ 1.5) when it is actually true (i.e., θ ≥ 2).
Since Yn is the maximum of X1, ..., Xn, we have:
P(Yn ≤ 1.5 | θ ≥ 2) = P(X1 ≤ 1.5, ..., Xn ≤ 1.5 | θ ≥ 2) = (1.5/2)^n = 0.75^n
Therefore, the size of the test is 0.75^n for θ ≥ 2.