Let \(X_1,X_2,\ldots ,X_n\) be independent, identically distributed random variables with density function \[ h(t;\theta )= \begin {cases} \dfrac {1}{\theta }, & \text {if } 0\leq t\leq \theta ,\\ 0, & \text {if } t\notin [0,\theta ]. \end {cases} \] We wish to test \(H_0:\theta =1\) against the alternative \(H_A:\theta <1\). We reject \(H_0\) if \[ X_{n,n}=\max _{1\leq i\leq n}X_i\leq 1-\frac {2}{n}. \] (a) Compute the significance level.
(b) Compute the power function.