- Navigate to root level directory of project
- Run ant all
- Run run.bat
There will be a series of prompts to ask what probabilies need to be solved for and then what is known about the problem to be solved.
- Identify query conditions in order
by selecting the associated number with the node then say whether its true or false.
- Say 'No' to stop identifying query conditions. - Do the same for given conditions.
- Say 'No' to stop identifying given conditions. - The query will then be run.
Note: Progamatically written sample are commented out in the main() function. To see their result, comment out the getUser..() functions and uncomment the test code.
The Bayesian network accepts a statement consisting of the query (the conditions for which we want to know the probability for) and the given conditions (what we know already).
For example, the first sample query in BayesianNetwork.java is Probability(SlipperyRoad = false | Winter = true)
In English question form, this question would be "What is the probability of the road not being slippery during winter?"