statsmodels.regression.linear_model.WLS.loglike¶
-
WLS.
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 Y.
Parameters: params (array-like) – The parameter estimates. Returns: llf – The value of the log-likelihood function for a WLS Model. Return type: float Notes
−n2log(Y−ˆY)−n2(1+log(2πn))−12log(|W|)where W is a diagonal matrix