
\documentclass{article}
\usepackage{com.braju.graphicalmodels}

\catcode`\@=11%

\pagestyle{empty}

\begin{document}
\TeXtoEPS

\LARGE
\psset{unit=12mm,arrowscale=1.5,linewidth=1.5pt}
\begin{pspicture}(-1,-1)(15,10)%\showgrid
  \SpecialCoor

   \rput(2,3){\GM@node[observed=false]{theta}} \GM@label[angle=90]{theta}{$\theta$}
   \rput(1,1){\GM@node[observed=true]{X1}} \GM@label[angle=-90]{X1}{$X_1$}
   \rput(3,1){\GM@node[observed=true]{Xn}} \GM@label[angle=-90]{Xn}{$X_N$}

   \ncline[arrows=->]{theta}{X1}
   \ncline[arrows=->]{theta}{Xn}


   %\rput(5,-0.5){\GM@plate{3}{4.5}{N}}
   \rput(5,-0.5){\GM@plate{3}{2.5}{N}}

   \rput(6.5,3){\GM@node[observed=false]{theta2}} \GM@label[angle=90]{theta2}{$\theta$}
   \rput(6.5,1){\GM@node[observed=true]{Xi}} \GM@label[angle=-90]{Xi}{$X_i$}

   \ncline[arrows=->]{theta2}{Xi}





\end{pspicture}

\endTeXtoEPS
\end{document}
