This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
olpc (author)
Wed Mar 18 16:31:04 -0700 2009
spots / probabilisticModeling
| name | age | message | |
|---|---|---|---|
| .. | |||
| |
README.markdown | ||
| |
probabilisticModeling.fsx | ||
| |
probabilisticModeling.hs | ||
| |
probabilisticModeling.scala |
probabilisticModeling/README.markdown
Probabilistic Modeling
For my induction into Scala, I wanted to translate the probabilistic monad of Chapter 9 of Expert F# (Introducing Language-Oriented Programming). The idea, based on the paper Stochastic Lambda Calculus and Monads of Probability Distributions, is to define a probability monad to compute over distributions of a domain instead of the domain itself. We limit ourselves to distributions over discrete domains characterized by three functions:
- sampling
- support (i.e. a set of values where all elements outside the set have zero chance of being sampled)
- expectation of a function over the distribution
(e.g. the probability of selecting element
Aby evaluating the functionf(x) = 1ifxequalsAand0otherwise)








