update pizza etc
[ker2014-2.git] / report / ass2-1.tex
index 18639be..9247346 100644 (file)
@@ -173,5 +173,14 @@ 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.
 
+\newpage
 \section{Burglary problem with extended information}
-$\frac{1}{1000}+\frac{9999}{10000}\frac{1}{10000}+\frac{9999}{10000}\frac{9998}{9999}\frac{1}{19998}$
+$P(burglary)\cdot\left(
+       P(\text{first house is holmes'})+
+       P(\text{second house is holmes'})+
+       P(\text{third house is holmes'})\right)=\\
+0.5102040816326531\cdot\left(
+       \frac{1}{10000}+
+       \frac{9999}{10000}\cdot\frac{1}{9999}+
+       \frac{9999}{10000}\cdot\frac{9998}{9999}\cdot\frac{1}{9998}\right)=
+\frac{3}{19600}\approx0.000153$