TLinearModel.nloglikeobs()

statsmodels.miscmodels.tmodel.TLinearModel.nloglikeobs

TLinearModel.nloglikeobs(params) [source]

Loglikelihood of linear model with t distributed errors.

Parameters:

params : array

The parameters of the model. The last 2 parameters are degrees of freedom and scale.

Returns:

loglike : array, (nobs,)

The log likelihood of the model evaluated at params for each observation defined by self.endog and self.exog.

Notes

\ln L=\sum_{i=1}^{n}\left[-\lambda_{i}+y_{i}x_{i}^{\prime}\beta-\ln y_{i}!\right]

The t distribution is the standard t distribution and not a standardized t distribution, which means that the scale parameter is not equal to the standard deviation.

self.fixed_params and self.expandparams can be used to fix some parameters. (I doubt this has been tested in this model.)

© 2009–2012 Statsmodels Developers
© 2006–2008 Scipy Developers
© 2006 Jonathan E. Taylor
Licensed under the 3-clause BSD License.
http://www.statsmodels.org/stable/generated/statsmodels.miscmodels.tmodel.TLinearModel.nloglikeobs.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部