{ "cells": [ { "cell_type": "markdown", "id": "c952a6fb", "metadata": {}, "source": [ "# Building CTMCs\n", "A Continuous Time Markov Chain (CTMC) is similar to a DTMC. The differences are that time is *continuous*, not discrete, and that transitions have *rates* instead of probabilities. So to summarize, a CTMC has:\n", "* states (includig an initial state)\n", "* transitions with rates. The rate is an indication of the speed in which a transition occurs. To be precise, the probability that state $s_i$ goes to state $s_j$ in $t$ time steps is $1- e^{R(s_i,s_j)\\cdot t}$, where $R(s_i,s_j)$ is the *rate* between $s_i$ and $s_j$.\n", "* labels\n", "\n", "As an example for a CTMC, we have a model of a star. It will first fuse hydrogen into helium until there is no hydrogen left, then it will fuse helium into carbon, etc. until there is only iron left and the star goes supernova." ] }, { "cell_type": "code", "execution_count": 1, "id": "3787d8d7", "metadata": { "execution": { "iopub.execute_input": "2026-03-26T10:47:15.983878Z", "iopub.status.busy": "2026-03-26T10:47:15.983634Z", "iopub.status.idle": "2026-03-26T10:47:16.379861Z", "shell.execute_reply": "2026-03-26T10:47:16.379317Z" } }, "outputs": [ { "data": { "text/html": [ "\n", "\n", "\n", "
\n", "