I'm trying to solve the following exercises. I am unsure of what I'm doing so I appreciate any help.
My attempt:
(a) We have that
\begin{align*} \boldsymbol{\hat \beta} &= (\boldsymbol X^T \boldsymbol X)^{-1} \boldsymbol X^T \boldsymbol Y\\ &= \left(\begin{pmatrix} x_1 & x_2 & \cdots & x_n \end{pmatrix} \begin{pmatrix} x_1\\ x_2\\ \vdots\\ x_n \end{pmatrix}\right)^{-1} \begin{pmatrix} x_1 & x_2 & \cdots & x_n \end{pmatrix} \begin{pmatrix} Y_1\\ Y_2\\ \vdots\\ Y_n \end{pmatrix}\\ &= \Big(\sum_{i = 1}^n x_i^2\Big)^{-1} \Big(\sum_{i = 1}^n x_i Y_i\Big)\\ &= \frac{\sum_{i = 1}^n x_i Y_i}{\sum_{i = 1}^n x_i^2} \end{align*}
as desired. (Note that $\boldsymbol X^T \boldsymbol X$ is automatically invertible since it is just a (presumably non-zero) real number.)
(b) This estimator is linear because
\begin{align*} \tilde{\beta} &= \frac{1}{n} \begin{pmatrix} \frac{1}{x_1} & \frac{1}{x_2} & \cdots & \frac{1}{x_n} \end{pmatrix} \begin{pmatrix} Y_1\\ Y_2\\ \vdots\\ Y_n \end{pmatrix}, \end{align*}
that is, it can be written as a linear map.
It is unbiased because $\text E (\tilde{\beta}) = \frac{1}{n} \sum_{i = 1}^n \frac{1}{x_i} \text E(Y_i) = \frac{1}{n} \sum_{i = 1}^n \frac{1}{x_i} \beta x_i = \frac{1}{n} n\beta = \beta$.
Regarding variance, for $\hat \beta$ we have
\begin{align*} \text{Var}(\hat \beta) &= \text{Var}\Bigg( \frac{\sum_{i = 1}^n x_i Y_i}{\sum_{i = 1}^n x_i^2} \Bigg)\\ &= \frac{1}{\Big( \sum_{i = 1}^n x_i^2 \Big)^2} \text{Var} \Big( \sum_{i = 1}^n x_i Y_i \Big)\\ &= \frac{1}{\Big( \sum_{i = 1}^n x_i^2 \Big)^2} \sum_{i = 1}^n x_i^2 \text{Var}(Y_i)\\ &= \frac{\sigma^2}{\sum_{i = 1}^n x_i^2}. \end{align*}
For $\tilde \beta$, we have
\begin{align*} \text{Var}(\tilde \beta) &= \text{Var} \Bigg( \frac{1}{n} \sum_{i = 1}^n \frac{Y_i}{x_i} \Bigg)\\ &= \frac{1}{n^2} \sum_{i = 1}^n \text{Var} \Big( \frac{Y_i}{x_i} \Big)\\ &= \frac{1}{n^2} \sum_{i = 1}^n \frac{1}{x_i^2} \text{Var} (Y_i)\\ &= \frac{\sigma^2}{n^2} \sum_{i = 1}^n \frac{1}{x_i^2}. \end{align*}
Unless I've made mistakes to this point, I now need to compare the coefficients of $\sigma^2$ in both cases, i.e. compare $\frac{1}{\sum_{i = 1}^n x_i^2}$ with $\frac{1}{n^2} \sum_{i = 1}^n \frac{1}{x_i^2}$, and hopefully see that the latter is at least as large as the former. I am not sure how to do this... maybe I need to try to use an inequality like Cauchy-Schwarz or something.
Edit: Following Glen_b's suggestion, I've used an arithmetic mean/harmonic mean inequality to show
\begin{align*} \frac{\sum_{i = 1}^n x_i^2}{n} \geq \frac{n}{\sum_{i = 1}^n \frac{1}{x_i^2}}\\ \Rightarrow \frac{1}{n^2} \sum_{i = 1}^n \frac{1}{x_i^2} \geq \frac{1}{\sum_{i = 1}^n x_i^2} \end{align*}
as desired.
(c) I am not sure what to do here. Do I have to be able to say something like ``$\text{Var}(\epsilon_i) = $ [something], and $\text{Cov}(\epsilon_i, \epsilon_j) = $ [something]?
Thank you.