[likelihood] better exercise 2

This commit is contained in:
janscience 2019-12-18 14:18:15 +01:00
parent 5d46493c59
commit fe7ae4a67b

View File

@ -136,12 +136,13 @@ standard deviation $\sigma_i$:
\lstinputlisting{mleslope.m}
\end{solution}
\part Write a script that generates data pairs that scatter around a
line through the origin with a given slope. Use the function from
\pref{mleslopefunc} to compute the slope from the generated data.
Compare the computed slope with the true slope that has been used to
generate the data. Plot the data together with the line from which
the data were generated as well as the maximum-likelihood fit.
\part Write a script that generates data pairs that scatter with a normal
distribution around a line through the origin with a given
slope. Use the function from \pref{mleslopefunc} to compute the
slope from the generated data. Compare the computed slope with the
true slope that has been used to generate the data. Plot the data
together with the line from which the data were generated as well as
the maximum-likelihood fit.
\begin{solution}
\lstinputlisting{mlepropfit.m}
\includegraphics[width=1\textwidth]{mlepropfit}
@ -210,4 +211,4 @@ gamma distribution,
\end{questions}
\end{document}
\end{document}