@alexv

FUNCTIONAL PEARLS: Probabilistic Functional Programming in Haskell

, and . J. Funct. Program., 16 (1): 21--34 (January 2006)
DOI: 10.1017/s0956796805005721

Abstract

At the heart of functional programming rests the principle of referential transparency, which in particular means that a function f applied to a value x always yields one and the same value y=f(x). This principle seems to be violated when contemplating the use of functions to describe probabilistic events, such as rolling a die: It is not clear at all what exactly the outcome will be, and neither is it guaranteed that the same value will be produced repeatedly. However, these two seemingly incompatible notions can be reconciled if probabilistic values are encapsulated in a data type.

Links and resources

Tags

community

  • @alexv
  • @dblp
@alexv's tags highlighted