\begin{minted}{prolog}
ailog: predict alarm.
Answer: P(alarm|Obs)=0.0031469965467367292.
+
[ok,more,explanations,worlds,help]: ok.
\end{minted}
Using formula: $P(i_1|C_1)+P(i_2|C_2)(1-P(i_1|C_1))$ we can calculate the
probability of the \textit{Alarm} variable using variable elimination. This
results in the following answer:
-$$0.2*0.0027+0.95*0.0027*(1-0.2*0.0027)=0.00314699654673672941001347$$
-
-There is a slight difference in probability. This is probably due to the
-precision of the \textit{AILog} module. The manual calculation was done with
-arbitrary precision. Manual calculation takes a lot longer and therefore one
-can prefer the \textit{AILog} method when speed is of an essence. When
-precision is necessary manual calculation is preferred.
+$$0.2*0.0027+0.95*0.0027*(1-0.2*0.0027)=0.00314699654673673$$
+TODOOOOOOOOOOO
\newpage
\section{Burglary problem with extended information}
\frac{9999}{10000}\cdot\frac{1}{9999}+
\frac{9999}{10000}\cdot\frac{9998}{9999}\cdot\frac{1}{9998}\right)=
\frac{3}{19600}\approx0.000153$
+
+\section{Bayesian networks}
+TODOOOOOOOOOOO
--- /dev/null
+Opdracht 1
+==========
+1.7: Uitleg verschil en overeenkomsten uitkomst AILog en Variable elimination
+1.8: Dit moet nog helemaal
+
+Opdracht 2
+==========
+ - The domain and the individual images
+ - The representation of observations, assumables and the causal theory between
+ them in AILog
+ - The style of reasoning employed (abductive, deductive) and what
+ considerations have played a role
+ - The queries used to infer information about individual images
+ - The results of the queries and reflections on their effectiveness and
+ intuitions behind them
+ - General reflections on your model, how appropriate it is for this domain,
+ how effective it is and how would need to proceed if one would like to
+ extend it to large datasets or realistic, real-time operation.
+
+Extra
+==========
+Opdracht 1
+----------
+i) how much time did it take you to finish it?
+ii) if you would have to change aspect of the assignment: what would they be
+ and why?
+
+Opdracht 2
+----------
+i) how much time did it take you to finish it?
+ii) if you would have to change aspect of the assignment: what would they be