mirror of
https://github.com/vale981/TUD_MATH_BA
synced 2025-03-05 09:31:39 -05:00
Update baum_1.tex
This commit is contained in:
parent
62d6192954
commit
b4cfdf6cef
1 changed files with 24 additions and 14 deletions
|
@ -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}
|
Loading…
Add table
Reference in a new issue