I am having problems trying to solve the following problem:
Let $X = (X_{1}, X_{2}, ..., X_{n})$ be a random sample, where $X_{1}$ has pdf given by
$f(X_{1};\theta) = \theta x_{1}^{\theta -1} \mathbb{1}[ x_{1} \in (0,1 )]$, where $\theta \in \left\{ \theta_{0}=0 ,\theta_{1}=2 \right\}$ is unknown.
Show that the best test of $H_{0}:\theta = 1$ is given by a critical function of the form:
$\phi(x)= \mathbb{1} \bigg[ \prod_{i=1}^{n} x_{i} \geq c \bigg] $
What I took the ratio of the likelihood functions replacing $\theta$ with the values $1$ and $2$ and then set that ratio to be less or equal to $k$ and then got $\prod_{i=1}^{n} x_{i} \geq 1 - \frac{k}{2^{n}}$.
I am not sure if this is correct, can somebody please tell me if I'm doing something wrong?
thanks!