Update baum_1.tex

This commit is contained in:
henrydatei 2019-04-15 22:40:23 +01:00 committed by GitHub
parent 62d6192954
commit b4cfdf6cef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,20 +1,30 @@
\documentclass{standalone}
\usepackage{tikz}
\usepackage{tikz-qtree}
\usepackage{../../../texmf/tex/latex/mathoperators/mathoperators}
\usepackage{amssymb}
\usetikzlibrary{trees}
\begin{document}
\begin{tikzpicture}
\tikzset{grow'=right,level distance=32pt}
\tikzset{execute at begin node=\strut}
\tikzset{every tree node/.style={anchor=base west}} %TODO add better node placing and the rest of the nodes!
\Tree [.$\bullet$
\edge node[midway,left]{$\probp(A_1)$};
[.$A_1$ [.$A_2$ $A_3$ ] [.$A_2^C$ ] ]
\edge node[auto=right]{$\probp(A_2)$};
[.$A_1^C$ [.$A_2$ ]
[.$A_2^C$
] ] ]
\begin{tikzpicture}[level distance=3cm,
level 1/.style={sibling distance=3cm},
level 2/.style={sibling distance=1.5cm},
grow=right, sloped]
\node {}
child {node {$A_1^C$}
child {node {$A_2^C$}}
child {node {$A_2$} edge from parent node[above] {$\mathbb{P}(A_2\mid A_1^C)$}}
edge from parent
node[below] {$\mathbb{P}(A_1^C)$}
}
child {node {$A_1$}
child {node {$A_2^C$}}
child {node {$A_2$}
child {node {$A_3^C$}}
child {node {$A_3$} edge from parent node[above] {$\mathbb{P}(A_3\mid A_1\cap A_2)$}}
edge from parent
node[above] {$\mathbb{P}(A_2\mid A_1)$}}
edge from parent
node[above] {$\mathbb{P}(A_1)$}
};
\end{tikzpicture}
\end{document}
\end{document}