I am having challenges with the following:
- My bottom chain arrows and labels (1-
\theta
) are stacked
together/overlapping which is something I dont like, and - I want to add an extra broken line that goes to the left labeled
\theta
on top as shown in the picture below:
Below is my MWE:
\documentclass{book}
\usepackage{tikz}
\usetikzlibrary{automata,arrows,positioning,calc}
\begin{document}
Markov chain:
\begin{center}
\begin{tikzpicture}[->, >=stealth', auto, semithick, node distance=3cm]
\tikzstyle{every state}=[fill=white,draw=black,thick,text=black,scale=1]
\node[state] (A) {$0$};
\node[state] (B)[right of=A] {$1$};
\node[state] (C)[right of=B] {$2$};
\node[state] (D)[right of=C] {$3$};
\path
(A) edge[loop left] node{$1-\theta$} (A)
(B) edge[bend left,below] node{$1-\theta$} (A)
edge[bend left,above] node{$\theta$} (C)
(C) edge[bend left,below] node{$1-\theta$} (A)
edge[bend left,above] node{$\theta$} (D)
(D) edge[bend left,below] node{$1-\theta$} (A);
%\node[above=0.5cm] (A){Patch G};
%\draw[red] ($(D)+(-1.5,0)$) ellipse (2cm and 3.5cm)node[yshift=3cm]{Patch H};
\end{tikzpicture}
\end{center}
\end{document}
Best Answer
One possible way is like this: