Graphics, Figures & TablesTransition rate diagram

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
gatoulinho
Posts: 1
Joined: Fri Jul 01, 2016 3:02 pm

Transition rate diagram

Post by gatoulinho »

Hello people! I am doing my dissertation in Markov chains and i am wondering how can i make a diagram like this? Thank you in advance
Attachments
Screen Shot 2016-07-01 at 14.04.56.png
Screen Shot 2016-07-01 at 14.04.56.png (216.63 KiB) Viewed 2036 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

Transition rate diagram

Post by Stefan Kottwitz »

Hello,

welcome to the forum!

Here is a start with TikZ, you may complete it.

Code: Select all

\documentclass[border=10pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{positioning}
\begin{document}
\begin{tikzpicture}[
    node distance = 3cm,
    trans/.style  = { above=-0.05, font=\scriptsize },
  ]
  \node                  (0) {0};
  \node [right = of 0] (1) {1};
  \node [right = of 1] (2) {2};
  \node [right = of 2] (3) {3};
  \node [right = of 3] (4) {$\cdots$};
  \draw [-stealth, thick]
      (0) edge                 node [below] {$\nu$}          (1)
      (1) edge                 node [below] {$\nu+\lambda$}  (2)
      (2) edge                 node [below] {$\nu+2\lambda$} (3)
      (3) edge                 node [below] {$\nu+3\lambda$} (4)
      (0) edge [bend left ]    node [trans] {\scriptsize$(1-p)\gamma+\mu$} (1)
      (2) edge [bend right=60] node [trans] {$(1-p)^2\gamma$}              (0)
  ;
\end{tikzpicture}
\end{document}
Stefan
LaTeX.org admin
Post Reply