shana-logan
Uploaded by
2 SLIDES
124 VUES
20LIKES

Understanding Semantics of Probabilistic Programs in Literature

DESCRIPTION

Explore the approaches and practical issues surrounding probabilities, expectations, and implementations in probabilistic programs. Learn how Haskell implementation uses type classes for generalization and assertion of domain classes.

1 / 2

Télécharger la présentation

Understanding Semantics of Probabilistic Programs in Literature

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Semantics of Probabilistic Programs • Approaches discussed in literature • E1pE2 => E1 (with prob. p) => E2 (with prob. (1-p)) • Probability of a specific output is not explicit. • [E1pE2]s = (p)*[E1]s + (1-p)*[E2]s • [E]s is a measure function from events to probabilities. • Forward or Backward? • Practical Issues • Backward implementation is difficult. (inverses, representation of sets). • Need to be able to compute probabilities, expectations inside of the program.

  2. Haskell Implementation • Using type classes to realize a general parameterized type (Prob a). • Has capability to generalize to product types (a  b). • data (DomainClass a) => (Prob a) = … • (DomainClass a) is an assertion that ‘a’ must be an instance of DomainClass. • Still must provide ‘instance DomainClass T’ declaration, which defines functions to operate on values of type T. • Underlying representation • Dimensions: exact/interpolated countable/uncountable • Sample sets and functions considered.

More Related
SlideServe
Audio
Live Player
Audio Wave
Play slide audio to activate visualizer