bnp

Some older Bayesian nonparametrics research.
git clone git://git.jtobin.io/bnp.git
Log | Files | Refs | README | LICENSE

fmm.tex (889B)


      1 \documentclass{standalone}
      2 \usepackage{tikz}
      3 \usetikzlibrary{positioning}
      4 \usetikzlibrary{fit}
      5 
      6 \begin{document}
      7 
      8 \begin{tikzpicture}
      9   \tikzstyle{random}=[circle, minimum size = 10mm, thick, draw = black!80, node distance = 16mm]
     10   \tikzstyle{observed}=[
     11       circle, minimum size = 10mm, thick
     12     , draw = black!80, fill = black!10
     13     , node distance = 16mm
     14     ]
     15   \tikzstyle{connect}=[-latex, thick]
     16   \tikzstyle{plate}=[rectangle, draw = black!100]
     17 
     18   \node[random] (p) { $\pi$ };
     19   \node[random] (z) [below of = p] { $z_{i}$ };
     20   \node[observed] (y) [below of = z] { $y_{i}$ };
     21   \node[random] (theta) [below of = y] { $\theta_{k}$ };
     22 
     23   \path (p) edge [connect] (z)
     24         (z) edge [connect] (y);
     25 
     26   \path (theta) edge [connect] (y);
     27 
     28   \node[plate, inner sep = 1.0mm, fit = (z) (y)] { };
     29   \node[plate, inner sep = 1.0mm, fit = (theta)] { };
     30 
     31 \end{tikzpicture}
     32 
     33 \end{document}