Advertisement
Guest User

Untitled

a guest
Mar 29th, 2020
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Latex 3.37 KB | None | 0 0
  1. %%%%%%%%%%%%%%%%% DO NOT CHANGE HERE %%%%%%%%%%%%%%%%%%%%
  2. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%{
  3.     \documentclass[twoside,15pt]{article}
  4.     %%%%% PACKAGES %%%%%%
  5.     \usepackage{pgm2016}
  6.    \usepackage{mathtools}
  7.    \usepackage{amsmath}
  8.    \usepackage{algorithm}
  9.    \usepackage[noend]{algpseudocode}
  10.    \usepackage{subcaption}
  11.     \usepackage[english]{babel}
  12.     \usepackage{paralist}  
  13.    \usepackage[lowtilde]{url}
  14.    \usepackage{fixltx2e}
  15.    \usepackage{listings}
  16.    \usepackage{color}
  17.    \usepackage{hyperref}
  18.    \usepackage[polish]{babel}
  19.    \usepackage{auto-pst-pdf}
  20.    \usepackage{pst-all}
  21.    \usepackage{pstricks-add}
  22.    \usepackage[T1]{fontenc}
  23.    \usepackage{amssymb}
  24.    
  25.     %%%%% MACROS %%%%%%
  26.     \algrenewcommand\Return{\State \algorithmicreturn{} }
  27.    \algnewcommand{\LineComment}[1]{\State \(\triangleright\) #1}
  28.    \renewcommand{\thesubfigure}{\roman{subfigure}}
  29.    \definecolor{codegreen}{rgb}{0,0.6,0}
  30.    \definecolor{codegray}{rgb}{0.5,0.5,0.5}
  31.    \definecolor{codepurple}{rgb}{0.58,0,0.82}
  32.    \definecolor{backcolour}{rgb}{0.95,0.95,0.92}
  33.    \lstdefinestyle{mystyle}{
  34.       backgroundcolor=\color{backcolour},  
  35.       commentstyle=\color{codegreen},
  36.       keywordstyle=\color{magenta},
  37.       numberstyle=\tiny\color{codegray},
  38.       stringstyle=\color{codepurple},
  39.       basicstyle=\footnotesize,
  40.       breakatwhitespace=false,        
  41.       breaklines=true,                
  42.       captionpos=b,                    
  43.       keepspaces=true,                
  44.       numbers=left,                    
  45.       numbersep=5pt,                  
  46.       showspaces=false,                
  47.       showstringspaces=false,
  48.       showtabs=false,                  
  49.       tabsize=2
  50.    }
  51.    \lstset{style=mystyle}
  52. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  53. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% }
  54.  
  55.  
  56.  
  57. %%%%%%%%%%%%%%%%% DO NOT CHANGE HERE %%%%%%%%%%%%%%%%%%%%
  58. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  59. %{
  60.  
  61.     \begin{document}
  62.    
  63.    \title{Tutorial 5 homework}
  64.    \subtitle {Szymon Antoniak 394197}
  65.    
  66.  
  67.    
  68.     \maketitle
  69. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  70. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% }
  71. \section{Exercise 4 - general method of moments}
  72.  
  73.  
  74. \begin{enumerate}
  75.    \item The Rayleigh distribution
  76.    density is given as:
  77.    \[p(x,\theta)= \frac{x}{\theta^2} exp[-\frac{x^2}{\theta^2}] \;, \;\;x>0 \,, \; \theta >0\]
  78.    in this case, $\eta=\theta^2, \; A(\eta)=log(\eta)$, so $\mathrm{E}_\eta [T(X)]=\dot{A}(\eta)=\frac{1}{\eta}$ \\
  79.    hence we obtain that \[ \hat{\theta}=\frac{1}{\sqrt{\hat{\mu_1}}} \]
  80.    where $\hat{\mu_1}=\frac{1}{n}\sum_{i=1}^{n}-X^2$
  81.    \\
  82.    
  83.    \item Beta distribution with first parameter fixed has the following density:
  84.    \[p(x,\lambda) = \frac{1}{\Gamma(\alpha)}\lambda^\alpha x^{\alpha -1} e^{-\lambda x}                  \]
  85.    this time $\eta=\lambda$ and $A(\eta)=-\alpha \, log(\eta)$ so, again $\mathrm{E}_\eta[T(X)]=\dot{A}(\eta)=-\frac{\alpha}{\eta}$
  86.    so
  87.    \[ \hat{\lambda} = -\frac{\alpha}{\hat{\mu_1}}    \]
  88.    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
  89.    .
  90.    
  91. \end{enumerate}
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98. \end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement