concept relational uncertainty in category probabilistic programming

appears as: relational uncertainty
Practical Probabilistic Programming

This is an excerpt from Manning's book Practical Probabilistic Programming.

Now suppose you don’t know the topic of a given post p. Maybe you’re using natural language processing to identify the topic, and your algorithms aren’t perfect. You have uncertainty about the value of p.topic, which is a complex attribute. In other words, you have uncertainty about the relationship between the post and its topic, which could be one of a number of instances of Topic. This kind of situation is called relational uncertainty. It’s also sometimes called reference uncertainty, because you don’t know to which object p.topic refers.

Similarly, going back to the printer example, you might not know what type of printer you have. Maybe you’re working at a help desk and a user has called in and not told you what kind of printer he’s using. Technically, this means that the class of the printer argument to the PrintExperience object is unknown. This situation is known as type uncertainty. Type uncertainty is a special case of relational uncertainty, because you can handle it by creating putative printers of each possible class, with uncertainty over which is the printer.

Conceptually, relational uncertainty and type uncertainty are simple to understand, but it turns out that some extra machinery is needed to handle them in Figaro. This machinery, called element collections and references, is useful for various purposes. In this chapter, you’ll see the number-one purpose, which is handling relational uncertainty. In the next chapter, you’ll see another important purpose, which is working with dynamic models. This section first presents the basics of element collections and references, and then shows you how to implement the social media example with the unknown topic, and finally the printer example with type uncertainty.