def var_loglike(resid, omega, nobs):
 logdet = logdet_symm(np.asarray(omega))
 neqs = len(omega)
 part1 = ((- ((nobs * neqs) / 2)) * np.log((2 * np.pi)))
 part2 = ((- (nobs / 2)) * (logdet + neqs))
 return (part1 + part2)

def var_loglike ( resid , omega , nobs ) : logdet = logdet_symm ( np . asarray ( omega ) ) neqs = len ( omega ) part1 = ( ( - ( ( nobs * neqs ) / 2 ) ) * np . log ( ( 2 * np . pi ) ) ) part2 = ( ( - ( nobs / 2 ) ) * ( logdet + neqs ) ) return ( part1 + part2 )
returns the value of the var(p) log-likelihood .