Skip to content

Commit e94480b

Browse files
committed
Add discrete noise distributions
Adds Poisson, binomial, and negative binomial distributions to the list of noise distributions.
1 parent 6e7ddc8 commit e94480b

1 file changed

Lines changed: 58 additions & 10 deletions

File tree

doc/v2/documentation_data_format.rst

Lines changed: 58 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -521,6 +521,8 @@ Detailed field description
521521
- ``measurement`` [NUMERIC, REQUIRED]
522522

523523
The measured value in the same units/scale as the model output.
524+
If the corresponding ``noiseDistribution`` specifies a discrete distribution,
525+
this value must be integral.
524526

525527
- ``time`` [NUMERIC OR ``inf``, REQUIRED]
526528

@@ -746,11 +748,25 @@ Detailed field description
746748
Noise distributions
747749
~~~~~~~~~~~~~~~~~~~
748750

749-
Denote by :math:`m` the measured value,
751+
The supported continuous and discrete probability distributions to model
752+
measurement noise are listed below.
753+
Those distributions are for a single data point.
754+
For a collection :math:`D=\{m_i\}_i` of data points and corresponding
755+
simulations :math:`Y=\{y_i\}_i`
756+
and noise parameters :math:`\Sigma=\{\sigma_i\}_i`,
757+
the current specification assumes independence, i.e. the full distribution is
758+
759+
.. math::
760+
\pi(D|Y,\Sigma) = \prod_i\pi(m_i|y_i,\sigma_i)
761+
762+
Continuous distributions
763+
++++++++++++++++++++++++
764+
765+
Denote by :math:`m:=\text{measurement}` the measured value,
750766
:math:`y:=\text{observableFormula}` the simulated value
751767
(the location parameter of the noise distribution),
752-
and :math:`\sigma` the scale parameter of the noise distribution
753-
as given via the ``noiseFormula`` field (the standard deviation of a normal,
768+
and :math:`\sigma := \text{noiseFormula}` the scale parameter of the noise
769+
distribution (e.g., the standard deviation of a normal,
754770
or the scale parameter of a Laplace model).
755771
Then we have the following effective noise distributions:
756772

@@ -780,14 +796,46 @@ Then we have the following effective noise distributions:
780796
- .. math::
781797
\pi(m|y,\sigma) = \frac{1}{2\sigma m}\exp\left(-\frac{|\log m - \log y|}{\sigma}\right)
782798

783-
The distributions above are for a single data point.
784-
For a collection :math:`D=\{m_i\}_i` of data points and corresponding
785-
simulations :math:`Y=\{y_i\}_i`
786-
and noise parameters :math:`\Sigma=\{\sigma_i\}_i`,
787-
the current specification assumes independence, i.e. the full distribution is
799+
Discrete distributions
800+
++++++++++++++++++++++
788801

789-
.. math::
790-
\pi(D|Y,\Sigma) = \prod_i\pi(m_i|y_i,\sigma_i)
802+
Denote by :math:`m` the ``measurement`` in the measurement table,
803+
then we have the following effective noise distributions:
804+
805+
.. list-table::
806+
:header-rows: 1
807+
:widths: 10 10 80
808+
809+
* - Type
810+
- ``noiseDistribution``
811+
- Probability density function (PDF)
812+
* - Poisson distribution
813+
- ``poisson``
814+
- .. math::
815+
\pi(m|\lambda) = \frac{\lambda^m\exp(-\lambda)}{m!}
816+
817+
where the rate :math:`\lambda` is given via ``observableFormula``.
818+
``noiseFormula`` must be empty in this case.
819+
The measurement :math:`m` is the number of observed events
820+
and must be a non-negative integer.
821+
* - Binomial distribution
822+
- ``binomial``
823+
- .. math::
824+
\pi(m|n,p) = \binom{n}{m}p^m(1-p)^{n-m}
825+
826+
where :math:`n` is the number of trials given via ``observableFormula``
827+
and :math:`p` the probability of success given via ``noiseFormula``.
828+
The measurement :math:`m` is the number of observed successes
829+
and must be an integer between 0 and :math:`n`.
830+
* - Negative binomial distribution
831+
- ``negative-binomial``
832+
- .. math::
833+
\pi(m|r,p) = \binom{m+r-1}{m}p^r(1-p)^m
834+
835+
where :math:`r` is the number of successes given via ``observableFormula``
836+
and :math:`p` the probability of success given via ``noiseFormula``.
837+
The measurement :math:`m` is the number of observed failures
838+
and must be a non-negative integer.
791839

792840
.. _v2_parameter_table:
793841

0 commit comments

Comments
 (0)