In this exercise, you will complete the normalization calculation for the meningitis example. First, make up a suitable value for $P(s{ {\,|\,}}\lnot m)$, and use it to calculate unnormalized values for $P(m{ {\,|\,}}s)$ and $P(\lnot m { {\,|\,}}s)$ (i.e., ignoring the $P(s)$ term in the Bayes’ rule expression, Equation (meningitis-bayes-equation). Now normalize these values so that they add to 1.

In this exercise, you will complete the normalization calculation for the meningitis example. First, make up a suitable value for $P(s{ {\,|\,}}\lnot m)$, and use it to calculate unnormalized values for $P(m{ {\,|\,}}s)$ and $P(\lnot m { {\,|\,}}s)$ (i.e., ignoring the $P(s)$ term in the Bayes’ rule expression, Equation (meningitis-bayes-equation). Now normalize these values so that they add to 1.

4th edition: chapter 12, Quantifying Uncertainty

Tested in Python, Java, JavaScript, C#, Scala, Julia, Lisp





Submit an Answer

The button opens a form on GitHub, with this exercise filled in; you need a GitHub account. Your answer becomes a pull request, and once a maintainer merges it, it shows under Student Answers.