SHELL:=/bin/bash
-all:
+all: graphs
latex -shell-escape report.tex
latex -shell-escape report.tex
dvipdfm report.dvi
+graphs:
+ dot -Teps d1.dot > d1.eps
+
clean:
- rm -vf report.{aux,dvi,log,pyg,toc}
+ rm -vf report.{aux,dvi,log,pyg,toc,eps}
clobber: clean
rm -vf report.pdf
\chapter{Probabilistic representation and reasoning (and burglars)}
+\section{Bayesian network and the conditional probability tables}
+\begin{figure}[H]
+ \caption{Bayesian network, visual representation}
+ \centering
+ \includegraphics[scale=0.5]{d1.eps}
+\end{figure}
+
+\strut\\
+\begin{tabular}{|l|l|}
+ \hline
+ & Burglar\\
+ \hline
+ T & $0.01$\\
+ F & $0.99$\\
+ \hline
+\end{tabular}
+\begin{tabular}{|l|l|}
+ \hline
+ & Earthquake\\
+ \hline
+ T & $0.01$\\
+ F & $0.99$\\
+ \hline
+\end{tabular}\\
+\begin{tabular}{|l|ll|}
+ \hline
+ & \multicolumn{2}{c|}{Alarm}\\
+ Burglar & T & F\\
+ \hline
+ T & $0.95$ & $0.05$\\
+ F & $0.00$ & $1.00$\\
+ \hline
+\end{tabular}
+\begin{tabular}{|l|ll|}
+ \hline
+ & \multicolumn{2}{c|}{Alarm}\\
+ Earthquake & T & F\\
+ \hline
+ T & $0.20$ & $0.80$\\
+ F & $0.00$ & $1.00$\\
+ \hline
+\end{tabular}
+\begin{tabular}{|l|ll|}
+ \hline
+ & \multicolumn{2}{c|}{Holmes}\\
+ Earthquake & T & F\\
+ \hline
+ T & $0.9998$ & $0.0002$\\
+ F & $0.00$ & $1.00$\\
+ \hline
+\end{tabular}
--- /dev/null
+digraph {
+ earthquake -> alarm
+ earthquake -> holmes
+ burglar -> alarm
+
+ alarm -> watson
+ alarm -> holmes
+ watson -> holmes
+}
\documentclass[twoside,a4paper,titlepage]{report}
+\usepackage{graphicx}
\usepackage{minted}
+\usepackage{float}
+\usepackage{slashbox}
\author{
Lubbers, M\\