[Math] Type I and type II errors

hypothesis testingprobabilityuniform distribution

Let $X \sim \text{uniform}(0,\theta)$ we are testing $H_0: \theta = 1$ vs $H_1: \theta >1$ If we know that we reject $H_0$ if $X>0.9$

(1) find $\alpha$, the type I error

(2)Suppose that $\theta=1.1$. Find $\beta$ the type II error probability

I would appreciate some advise on solving this.

for (1) I thought I could start with.

$\alpha=P(X>0.9|H_0)$ Which is the probability of rejecting $H_0$ if $X>0.9$ as given in the problem. Do I use the cdf and integrate?

I honestly don't know how to go from here.

Best Answer

You're on the right track. The type I error is the probability to reject $H_0$ under $H_0$, so $\alpha=P(X>0.9|\theta = 1)$. Under $H_0$, $X\sim U(\lbrack 0,1\rbrack )$, so you just have to determine the probability that a $U(\lbrack 0,1\rbrack )$ distributed random variable to be greater than $0.9$.

The type II is the probability not to reject $H_0$ when $H_0$ is wrong.