-
Notifications
You must be signed in to change notification settings - Fork 3
/
benaderingen.tex
61 lines (58 loc) · 1.84 KB
/
benaderingen.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
\begin{figure}[H]
\label{fig:benaderingen}
% Set the overall layout of the tree
\tikzstyle{level 1}=[level distance=2.5cm, sibling distance=3.5cm]
\tikzstyle{level 2}=[level distance=2cm, sibling distance=2cm]
\tikzstyle{level 3}=[level distance=3cm, sibling distance=3cm]
\tikzstyle{level 4}=[level distance=2cm, sibling distance=2cm]
\tikzstyle{level 5}=[level distance=2cm, sibling distance=2cm]
\tikzstyle{level 6}=[level distance=2cm, sibling distance=2cm]
% Define styles for bags and leafs
\tikzstyle{bag} = [text width=3em,text centered]
\tikzstyle{end} = [minimum width=3pt,fill, inner sep=0pt]
% The sloped option gives rotated edge labels. Personally
% I find sloped labels a bit difficult to read. Remove the sloped options
% to get horizontal labels.
\begin{tikzpicture}[grow=right, sloped]
\node[bag] {$\mathcal{B}(n,p)$}
child {
node[bag] {$n < 30$}
child {
node[end, label=right:{rechtstreeks}] {}
}
}
child {
node[bag] {$n \ge 30$}
child {
node[bag] {$np \ge 5$ en $nq \ge 5$}
child {
node[end, label=right:{$\approx \mathcal{N}(np,npq)$}] {}
}
}
child {
node[bag] {$np < 5$}
child {
node[bag, text width=7em] {$\approx \mathcal{P}(\alpha=np)$}
child {
node[bag] {$\alpha \le 10$}
child {
node[end,label=right:{rechtstreeks}] {}
}
}
child {
node[bag] {$\alpha > 10$}
child {
node[end, label=right:{$\approx \mathcal{N}(\alpha,\alpha)$}] {}
}
}
}
}
child {
node[bag] {$nq < 5$}
child {
node[end, label=right:{Verwissel $p$ en $q$ en begin opnieuw}] {}
}
}
};
\end{tikzpicture}
\end{figure}