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 \matrix [draw, below, font=\small, align=center, column sep=2\pgflinewidth, inner sep=0.4em, outer sep=0em, nodes={align=center, anchor=center}] at (current bounding box.south){
29 \node[observed,label=right:observed] {}; \\
30 \node[unobserved,label=right:automatically classified]{}; \\
31 \node[residual,label=right:error term]{}; \\