Worked solutions. From the course's own solution sets, licensed CC BY-NC-SA 4.0.
Solutions — Derived Distributions, Convolutions, and Covariance¶
Department of Electrical Engineering & Computer Science 6.041/6.431: Probabilistic Systems Analysis (Fall 2010)
Problem Set 11 Solutions¶
-
Check book solutions.
-
(a) To find the MAP estimate, we need to find the value \(x\) that maximizes the conditional density \(f_{X|Y}(x \mid y)\) by taking its derivative and setting it to 0.
Since the only factor that depends on \(x\) which can take on the value 0 is \((y - x(\mu + 1))\), the maximum is achieved at $\(\hat{x}_{\text{MAP}}(y) = \frac{y}{1 + \mu}\)$
It is easy to check that this value is indeed maximum (the first derivative changes from positive to negative at this value).
(b) i. To show the given identity, we need to use Bayes' rule. We first compute the denominator, \(p_Y(y)\)
Then, we can substitute into the equation we had derived in part (a)
Thus, \(\lambda = 1 + \mu\).
ii. We first manipulate \(x f_{X|Y}(x \mid y)\):
Now we can find the conditional expectation estimator:
(c) The conditional expectation estimator is always higher than the MAP estimator by \(\frac{1}{1+\mu}\).
- (a) The likelihood function is $\(\prod_{i=1}^k P_{T_i}(T_i = t_i \mid Q = q) = q^k (1-q)^{\sum_{i=1}^k t_i - k}.\)$
To maximize the above probability we set its derivative with respect to \(q\) to zero
or equivalently
which yields \(\hat{Q}_k = \frac{k}{\sum_{i=1}^k t_i}\). This is not different from the MAP estimate found before. Since the MAP estimate is calculated using a uniform prior, the likelihood function is a 'scaled' version of posterior probability and they can be maximized at the same value of \(q\).
(b) Since \(\frac{1}{\hat{Q}_k} = \frac{\sum_{i=1}^k T_i}{k}\), and that each \(T_i\) is independent identically distributed, it follows that \(\frac{1}{\hat{Q}_k}\) is actually a sample mean estimator. The weak law of large numbers says that, when the number of samples increases to infinity, the sample mean estimator converges to the actual mean, which is \(\frac{1}{q^*}\) in this case. So we can write the limit of probability as
(c) Chebyshev inequality states that $\(\mathbf{P}\left(\left| \frac{\sum_{i=1}^k T_i}{k} - E[T_1] \right| \ge \epsilon\right) \le \frac{\text{var}(T_1)}{k\epsilon^2}.\)$
So we have
To ensure the above probability to be greater than 0.95, we need that
or
The number of observations \(k\) needed depends on the variance of \(T_1\). For \(q\) close to 1, the variance is close to 0, and the required number of observations is very small (close to 0). For \(q = 1/2\), the variance is maximum (\(\text{var}(T_1) = 2\)), and we require \(k = 4000\). Thus, to guarantee the required accuracy and confidence for all \(q\), we need that,
- (a) Normalization of the distribution requires:
so \(Z(\theta) = \frac{1}{1 - e^{-\frac{1}{\theta}}}\).
(b) Rewriting \(p_K(k; \theta)\) as:
the probability distribution for the photon number is a geometric probability distribution with probability of success \(p = 1 - e^{-\frac{1}{\theta}}\), and it is shifted with 1 to the left since it starts with \(k = 0\). Therefore the photon number expectation value is
and its variance is
(c) The joint probability distribution for the \(k_i\) is
The log likelihood is \(-n \log Z(\theta) - 1/\theta \sum_{i=1}^n k_i\). We find the maxima of the log likelihood by setting the derivative with respect to the parameter \(\theta\) to zero:
or
For a hot body, \(\theta \gg 1\) and \(\frac{1}{e^{\frac{1}{\theta}} - 1} \approx \theta\), we obtain
Thus the maximum likelihood estimator \(\hat{\Theta}_n\) for the temperature is given in this limit by the sample mean of the photon number
(d) According to the central limit theorem, the sample mean approaches for large \(n\) a Gaussian distribution with standard deviation our root mean square error
To allow only for 1% relative root mean square error in the temperature, we need \(\frac{\sigma_K}{\sqrt{n}} < 0.01\mu_K\). With \(\sigma_K^2 = \mu_K^2 + \mu_K\) it follows that
In general, for large temperatures, i.e. large mean photon numbers \(\mu_K \gg 1\), we need about 10,000 samples.
(e) The 95% confidence interval for the temperature estimate for the situation in part (d), i.e.
is
- (a) The sample mean estimator \(\hat{\Theta}_n = \frac{W_1 + \dots + W_n}{n}\) in this case is
From the standard normal table, we have \(\Phi(1.96) = 0.975\), so we obtain
Because the variance is less that 4, we have
and letting the right-hand side of the above equation \(\approx 0.95\) gives a 95% confidence, i.e.,
(b) The likelihood function is
And the log-likelihood function is
The derivative with respect to \(\theta\) is \(\frac{n}{\theta} - \sum_{i=1}^n w_i\), and by setting it to zero, we see that the maximum of \(\log f_W(w; \theta)\) over \(\theta \ge 0\) is attained at \(\hat{\theta}_n = \frac{n}{\sum_{i=1}^n w_i}\). The resulting estimator is
In this case,
- (a) Using the regression formulas of Section 9.2, we have
where
The resulting ML estimates are
(b) Using the same procedure as in part (a), we obtain
where
which for the given data yields
Figure 1 shows the data points \((x_i, y_i)\), \(i = 1, \ldots, 5\), the estimated linear model
and the estimated quadratic model
Figure 1: Regression Plot
MIT OpenCourseWare http://ocw.mit.edu
6.041SC Probabilistic Systems Analysis and Applied Probability Fall 2013
For information about citing these materials or our Terms of Use, visit: http://ocw.mit.edu/terms.
Figures¶
Extracted from the original PDF. They are listed by the page they came from rather than placed in the text: the conversion does not record where on the page each one sat.