Skip to content

Commit 91b08d5

Browse files
authored
DOC: correct typo in docstring
Correct the sign of the last term of the log likelihood expression. Clarify the meaning of the (not standard) vertical bars notation.
1 parent 77cb066 commit 91b08d5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

statsmodels/regression/linear_model.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -794,9 +794,10 @@ def loglike(self, params):
794794
-----
795795
.. math:: -\frac{n}{2}\log SSR
796796
-\frac{n}{2}\left(1+\log\left(\frac{2\pi}{n}\right)\right)
797-
-\frac{1}{2}\log\left(\left|W\right|\right)
797+
+\frac{1}{2}\log\left(\left|W\right|\right)
798798
799-
where :math:`W` is a diagonal weight matrix matrix and
799+
where :math:`W` is a diagonal weight matrix matrix,
800+
:math:`\leftW\right|` is its determinant, and
800801
:math:`SSR=\left(Y-\hat{Y}\right)^\prime W \left(Y-\hat{Y}\right)` is
801802
the sum of the squared weighted residuals.
802803
"""

0 commit comments

Comments
 (0)