To illustrate the basics of the Decision-Theoretic ProbLog language, we take an example from
Given a set of probabilistic facts, rules, rewards and decisions to be made, the engine finds the optimal decision set that maximizes the expected reward. The decision fact d is notated in the form ? :: d where the label ? indicates d’s value needs to be determined. The rewards are specified with the specicial predicate utility/2. Decision facts and rewards can be non-ground.
Here’s a small example illustrating Decision-Theoretic ProbLog. The program states there is a chance that it will rain and will be windy, respectively. Rewards are given for several atoms. The decisions are whether to bring an umbrella or a raincoat. Queries are not needed because the goal here is to maximize the overall expected reward.
To try this example, press the ‘Evaluate’ button. The decision set that leads to the highest expected reward is to bring an umbrella and not a raincoat. The resulting score, i.e. expected reward, is 43.