1 \documentclass[12pt]{standalone}
4 \usepackage[utf8x]{inputenc}
6 \usepackage[T1]{fontenc}
8 \renewcommand{\rmdefault}{ugm}
9 \renewcommand{\sfdefault}{phv}
10 \usepackage[garamond]{mathdesign}
12 \usetikzlibrary{positioning, shapes, arrows, shadows, }
16 observed/.style={circle, draw},
17 partly observed/.style 2 args={draw, fill=#2, path picture={
18 \fill[#1, sharp corners] (path picture bounding box.south west) -|
19 (path picture bounding box.north east) -- cycle;},
21 unobserved/.style={draw, circle, fill=gray!40},
22 residual/.style={draw, rectangle}
28 \node[observed] (y) {$Y$};
29 \node[unobserved, above=of y] (x) {$X$};
30 \node[observed, left=of x] (w) {$W$};
32 % \node[unobserved, above=of w] (k) {$K$};
33 \node[observed,right=of x] (z) {$Z$};
34 % \node[residual,below=of y] (e) {$\varepsilon$};
35 % \node[residual,below=of w] (xi) {$\xi$};
41 % \draw[->] (y) -- (w);
42 % \draw[->] (x) -- (xi);
43 % \draw[->] (w) -- (xi);