Skip to content

Commit 7dc1a81

Browse files
committed
Fix (Cumulative|Discrete) => Histogram description
The =>Histogram formulas are fixed. The text looks very confusing and out-of-place, being a sign that these distributions should be provided separately.
1 parent 9b58b6b commit 7dc1a81

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

mef/stochastic_layer.rst

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -696,32 +696,31 @@ Histograms
696696
E(x) = \dfrac{\sum_{i=1}^{n}\tfrac{1}{2}(b_i + b_{i-1}) \cdot w_i}{\sum_{i=1}^{n}w_i}
697697
698698
Both Cumulative Distribution Functions
699-
and Density Probability Distributions can be translated into histograms.
699+
and Discrete Probability Distributions can be translated into histograms.
700700

701701
A Cumulative Distribution Function is a list of pairs
702-
:math:`(p_1, v_1), \ldots, (p_n, v_n)`,
702+
:math:`(p_1, b_1), \ldots, (p_n, b_n)`,
703703
where the :math:`p_i`'s are
704-
such that :math:`p_i < p_{i+1} \text{ for } i=1, \ldots, n \text{ and } p_n=1`.
704+
such that :math:`p_i < p_{i+1} \text{ for } i=0, \ldots, n-1 \text{ and } p_n=1, p_0=0`.
705705
It differs from histograms in two ways.
706-
First, :math:`X` axis values are normalized (to spread between 0 and 1);
706+
First, :math:`Y` axis values are normalized (to spread between 0 and 1);
707707
second, they are presented in a cumulative way.
708708
The histogram that corresponds to a Cumulative Distribution Function
709-
:math:`(p_1, v_1), \ldots, (p_n, v_n)`
710-
is the list of pairs :math:`(b_1, v_1), \ldots, (b_n, v_n)`,
711-
with the initial value
712-
:math:`b_0 = 0, b_1 = p_1, \text{ and } b_i = p_i - p_{i-1} \text{ for all } i>1`.
709+
:math:`(p_1, b_1), \ldots, (p_n, b_n)`
710+
is the list of pairs :math:`(b_1, w_1), \ldots, (b_n, w_n)`,
711+
where :math:`w_i = p_i - p_{i-1}`.
713712

714713
A Discrete Probability Distribution is a list of pairs
715714
:math:`(d_1, m_1), \ldots, (d_n, m_n)`.
716715
The :math:`d_i`'s are probability densities.
717-
However, they could be any kind of values.
716+
However, they could be any kind of non-negative values.
718717
The :math:`m_i`'s are midpoints of intervals
719-
and are such that :math:`m_1 < m_2 < \ldots < m_n < 1`.
718+
and are such that :math:`0 < m_1 < m_2 < \ldots < m_n`.
720719
The histogram that corresponds to a Discrete Probability Distribution
721720
:math:`(d_1, m_1), \ldots, (d_n, m_n)`
722721
is the list of pairs :math:`(b_1, d_1), \ldots, (b_n, d_n)`,
723-
with the initial value
724-
:math:`b_0 = 0, b_1 = 2m_1, \text{ and } b_i = b_{i-1} + 2(m_i - b_{i-1})`.
722+
with the initial boundary :math:`b_0 = 0`,
723+
:math:`b_i = b_{i-1} + 2(m_i - b_{i-1})`.
725724

726725

727726
XML Representation

0 commit comments

Comments
 (0)