1515
1616
1717class Beta (ContinuousDistribution ):
18- """Class for the four-parameteric beta distribution.
19- Parameters
20- ----------
21- alpha : float
22- The first shape parameter. Must be positive or zero.
23- beta : float
24- The second shape parameter. Must be positive or zero.
25- left_border : float
26- Left border of section [a, b]. Can be any real number.
27- right_border : float
28- Right border of section [a, b]. Can be any real number.
29-
30- Attributes
31- ----------
32- loc : float
33- Location parameter.
34- scale : float
35- Scale parameter.
36- scale : float
37- Scale parameter (gamma). Must be positive.
38- scale : float
39- Scale parameter (gamma). Must be positive.
40-
41- Methods
42- -------
18+ """Class for the four-parametric beta distribution.
19+
20+ Parameters
21+ ----------
22+ alpha : float
23+ The first shape parameter. Must be positive or zero.
24+ beta : float
25+ The second shape parameter. Must be positive or zero.
26+ left_border : float
27+ Left border of section [a, b]. Can be any real number.
28+ right_border : float
29+ Right border of section [a, b]. Can be any real number.
30+
31+ Attributes
32+ ----------
33+ alpha : float
34+ The first shape parameter.
35+ beta : float
36+ The second shape parameter.
37+ left_border : float
38+ Left border of the distribution support [a, b].
39+ right_border : float
40+ Right border of the distribution support [a, b].
41+
42+
43+ Methods
44+ -------
4345
4446 .. autosummary::
4547 :toctree: generated/
@@ -99,7 +101,7 @@ def pdf(self, X):
99101 where :math:`a` is the left_border parameter, :math:`b` is the
100102 right_border parameter, :math:`\\ alpha` is the first shape parameter and
101103 :math:`\\ beta` is the second shape parameter,:math:`B(\\ alpha, \\ beta) =
102- \f rac{\\ Gamma(\\ alpha)\\ Gamma(\\ beta)}{\\ Gamma(\\ alpha + \\ beta)}`
104+ \\ frac{\\ Gamma(\\ alpha)\\ Gamma(\\ beta)}{\\ Gamma(\\ alpha + \\ beta)}`
103105 is the Beta function.
104106
105107 Parameters
@@ -112,7 +114,6 @@ def pdf(self, X):
112114 DType | NDArray[DType]
113115 The PDF values corresponding to each point in :attr:`X`.
114116 Return a scalar when given a scalar, and to return an array when given an array.
115-
116117 """
117118
118119 X = np .asarray (X , dtype = self .dtype )
@@ -177,7 +178,7 @@ def lpdf(self, X):
177178 where :math:`a` is the left_border parameter, :math:`b` is the
178179 right_border parameter, :math:`\\ alpha` is the first shape parameter and
179180 :math:`\\ beta` is the second shape parameter, :math:`B(\\ alpha, \\ beta) =
180- \f rac{\\ Gamma(\\ alpha)\\ Gamma(\\ beta)}{\\ Gamma(\\ alpha + \\ beta)}`
181+ \\ frac{\\ Gamma(\\ alpha)\\ Gamma(\\ beta)}{\\ Gamma(\\ alpha + \\ beta)}`
181182
182183 Parameters
183184 ----------
@@ -211,7 +212,7 @@ def _dlog_alpha(self, X):
211212
212213 .. math::
213214
214- \f rac{\\ partial \\ ln f(x | \\ alpha, \\ beta, a, b)}{\\ partial \\ alpha} =
215+ \\ frac{\\ partial \\ ln f(x | \\ alpha, \\ beta, a, b)}{\\ partial \\ alpha} =
215216 \\ ln(x - a) - \\ ln(b - a)
216217 - \\ psi(\\ alpha) + \\ psi(\\ alpha + \\ beta)
217218
0 commit comments