Revision 71891428245690d59fc43431c4ddd4a582b01999 authored by null-a on 05 July 2017, 08:06:50 UTC, committed by null-a on 05 July 2017, 08:06:50 UTC
1 parent 4da45df
Raw File
distributions.rst
.. _distributions:

Distributions
=============

Distribution objects represent probability distributions, they have
two principle uses:

1. Samples can be generated from a distribution by passing a
   distribution object to the :ref:`sample <sample>` operator.

2. The logarithm of the probability (or density) that a distribution
   assigns to a value can be computed using ``dist.score(val)``. For
   example::

     Bernoulli({p: .1}).score(true); // returns Math.log(.1)

Several :ref:`primitive distributions <primitive-distributions>` are
built into the language. Further distributions are created by
performing :ref:`marginal inference <inference>`.

.. _primitive-distributions:

Primitives
----------

.. include:: primitive-distributions.txt
back to top