Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 26 additions & 1 deletion pymc/distributions/continuous.py
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,32 @@ def rng_fn(cls, rng, size):


class HalfFlat(PositiveContinuous):
"""Improper flat prior over the positive reals."""
r"""
Improper flat prior over the positive reals.

This is an unnormalized distribution and should be used only as
a vague, uninformative prior. It is not a valid probability
distribution and cannot be used for posterior predictive sampling.

The pdf of this distribution is

.. math::

f(x) \propto \begin{cases} 1 & \text{if } x > 0 \\ 0 & \text{otherwise} \end{cases}

======== ============================
Support :math:`x \in [0, \infty)`
Mean undefined
Variance undefined
======== ============================

Examples
--------
.. code-block:: python

with pm.Model():
x = pm.HalfFlat("x")
"""

rv_op = halfflat

Expand Down