We are given a random sample $X_1, \dots, X_n$ from a normal distribution $N(\theta, 1)$, where the parameter $\theta$ can only take two possible values: $\theta \in \{1, 2\}$. We need to find the Maximum Likelihood Estimator (MLE) for $\theta$.
The probability density function (PDF) of the normal distribution is:
$ f(x|\theta) = \frac{1}{\sqrt{2\pi}} e^{-\frac{(x-\theta)^2}{2}} $
The likelihood function for the sample $X_1, \dots, X_n$ is the product of the PDFs:
$ L(\theta | x_1, \dots, x_n) = \prod_{i=1}^n f(x_i|\theta) = \left(\frac{1}{\sqrt{2\pi}}\right)^n \exp\left(-\sum_{i=1}^n \frac{(x_i-\theta)^2}{2}\right) $
To find the MLE, we need to find the value of $\theta \in \{1, 2\}$ that maximizes $L(\theta)$. Maximizing $L(\theta)$ is equivalent to minimizing the sum of the squared differences, $S(\theta)$:
$ S(\theta) = \sum_{i=1}^n (x_i-\theta)^2 $
Since $\theta$ can only be 1 or 2, we compare the likelihood values (or equivalently, the sum of squares) for these two possibilities:
The MLE, denoted by $\hat{\theta}$, is the value (1 or 2) that yields the smaller sum of squares:
This comparison can be simplified by looking at the sample mean $\overline{x}$. The MLE $\hat{\theta}$ is 1 if $\overline{x} < 1.5$ and 2 if $\overline{x} > 1.5$.
The MLE exists because the parameter space is discrete and finite. However, the MLE takes the value 1 or 2 based on the data, and it is not equal to the sample mean $\overline{X}$.
Let $X$, $Y$, and $Z$ be independent Normal random variables with means $-1$, $0$, and $1$, respectively, and variances $1$, $1$, and $3$, respectively. Which of the following random variables has a Cauchy distribution with location parameter $0$ and scale parameter $1$?
Let $X_1$ and $X_2$ be a random sample from Uniform$[0, \theta]$ distribution, where $\theta > 0$. For testing the hypothesis
$H_0: \theta = 1$ against $H_1: \theta = 2$,
consider a test which rejects $H_0$ if $X_1 + X_2 > \frac{4}{5}$. Then, the probability of type-I error is
Let $X$ be a single sample from an absolutely continuous distribution with probability density function
$f(x|\theta) = \begin{cases} \frac{2}{\theta^2}(\theta - x), & \text{if } 0 < x < \theta \\ 0, & \text{otherwise,} \end{cases}$
where $\theta > 0$ is unknown. Which of the following intervals is a $95\%$ confidence interval for $\theta$?