Draw and compare the likelihood using R

50 Views Asked by At

The following shows the heart rate (in beats/minute) of a person, measured throughout the day:

73, 75, 84, 76, 93, 79, 85, 80, 76, 78, 80.

Assume the data are an iid sample from $\mathrm{N}(\theta, \sigma^2)$, where $\sigma^2$ is known at the observed sample variance. Denote the ordered values by $x_{(1)}, \cdots, x_{(11)}$. Draw using R and compare the likelihood of $\theta$ if

  • the whole data $x_1, \cdots, x_{11}$ are reported;
  • only the sample mean $\bar x$ is reported;
  • only the sample median $x_{(6)}$ is reported;
  • only the minimum $x_{(1)}$ and maximum $x_{(11)}$ are reported;
  • only the lowest two values $x_{(1)}$ and $x_{(2)}$ are reported.