Logo

statsmodels.regression.linear_model.GLS.loglike

GLS.loglike(params)[source]

Returns the value of the Gaussian log-likelihood function at params.

Given the whitened design matrix, the log-likelihood is evaluated at the parameter vector params for the dependent variable endog.

Parameters:

params : array-like

The parameter estimates

Returns:

loglike : float

The value of the log-likelihood function for a GLS Model.

Notes

The log-likelihood function for the normal distribution is

System Message: WARNING/2 (-\frac{n}{2}\log\left(\left(Y-\hat{Y}\right)^{\prime}\left(Y-\hat{Y}\right)\right)-\frac{n}{2}\left(1+\log\left(\frac{2\pi}{n}\right)\right)-\frac{1}{2}\log\left(\left|\Sigma\right|\right) )

latex exited with error [stdout] This is pdfTeX, Version 3.14159265-2.6-1.40.15 (TeX Live 2014) (preloaded format=latex) restricted \write18 enabled. entering extended mode (./math.tex LaTeX2e <2011/06/27> Babel <3.9k> and hyphenation patterns for 2 languages loaded. (/usr/share/texlive/texmf-dist/tex/latex/base/article.cls Document Class: article 2007/10/19 v1.4h Standard LaTeX document class (/usr/share/texlive/texmf-dist/tex/latex/base/size12.clo)) (/usr/share/texlive/texmf-dist/tex/latex/base/inputenc.sty ! LaTeX Error: File `utf8x.def’ not found. Type X to quit or <RETURN> to proceed, or enter new name. (Default extension: def) Enter file name: ! Emergency stop. <read *> l.131 \endinput ^^M No pages of output. Transcript written on math.log.

Y and Y-hat are whitened.

Previous topic

statsmodels.regression.linear_model.GLS.initialize

Next topic

statsmodels.regression.linear_model.GLS.predict

This Page