Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- %%%%%%%%%%%%%%%%% DO NOT CHANGE HERE %%%%%%%%%%%%%%%%%%%%
- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%{
- \documentclass[twoside,15pt]{article}
- %%%%% PACKAGES %%%%%%
- \usepackage{pgm2016}
- \usepackage{mathtools}
- \usepackage{amsmath}
- \usepackage{algorithm}
- \usepackage[noend]{algpseudocode}
- \usepackage{subcaption}
- \usepackage[english]{babel}
- \usepackage{paralist}
- \usepackage[lowtilde]{url}
- \usepackage{fixltx2e}
- \usepackage{listings}
- \usepackage{color}
- \usepackage{hyperref}
- \usepackage[polish]{babel}
- \usepackage{auto-pst-pdf}
- \usepackage{pst-all}
- \usepackage{pstricks-add}
- \usepackage[T1]{fontenc}
- \usepackage{amssymb}
- %%%%% MACROS %%%%%%
- \algrenewcommand\Return{\State \algorithmicreturn{} }
- \algnewcommand{\LineComment}[1]{\State \(\triangleright\) #1}
- \renewcommand{\thesubfigure}{\roman{subfigure}}
- \definecolor{codegreen}{rgb}{0,0.6,0}
- \definecolor{codegray}{rgb}{0.5,0.5,0.5}
- \definecolor{codepurple}{rgb}{0.58,0,0.82}
- \definecolor{backcolour}{rgb}{0.95,0.95,0.92}
- \lstdefinestyle{mystyle}{
- backgroundcolor=\color{backcolour},
- commentstyle=\color{codegreen},
- keywordstyle=\color{magenta},
- numberstyle=\tiny\color{codegray},
- stringstyle=\color{codepurple},
- basicstyle=\footnotesize,
- breakatwhitespace=false,
- breaklines=true,
- captionpos=b,
- keepspaces=true,
- numbers=left,
- numbersep=5pt,
- showspaces=false,
- showstringspaces=false,
- showtabs=false,
- tabsize=2
- }
- \lstset{style=mystyle}
- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% }
- %%%%%%%%%%%%%%%%% DO NOT CHANGE HERE %%%%%%%%%%%%%%%%%%%%
- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
- %{
- \begin{document}
- \title{Tutorial 5 homework}
- \subtitle {Szymon Antoniak 394197}
- \maketitle
- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% }
- \section{Exercise 4 - general method of moments}
- \begin{enumerate}
- \item The Rayleigh distribution
- density is given as:
- \[p(x,\theta)= \frac{x}{\theta^2} exp[-\frac{x^2}{\theta^2}] \;, \;\;x>0 \,, \; \theta >0\]
- in this case, $\eta=\theta^2, \; A(\eta)=log(\eta)$, so $\mathrm{E}_\eta [T(X)]=\dot{A}(\eta)=\frac{1}{\eta}$ \\
- hence we obtain that \[ \hat{\theta}=\frac{1}{\sqrt{\hat{\mu_1}}} \]
- where $\hat{\mu_1}=\frac{1}{n}\sum_{i=1}^{n}-X^2$
- \\
- \item Beta distribution with first parameter fixed has the following density:
- \[p(x,\lambda) = \frac{1}{\Gamma(\alpha)}\lambda^\alpha x^{\alpha -1} e^{-\lambda x} \]
- this time $\eta=\lambda$ and $A(\eta)=-\alpha \, log(\eta)$ so, again $\mathrm{E}_\eta[T(X)]=\dot{A}(\eta)=-\frac{\alpha}{\eta}$
- so
- \[ \hat{\lambda} = -\frac{\alpha}{\hat{\mu_1}} \]
- This time I was not certain whether the fact that $\alpha$ is fixed means that we know its value - although it was the only meaning I could attach to that phrase
- .
- \end{enumerate}
- \end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement