def bic(llf, nobs, df_modelwc):
 return (((-2.0) * llf) + (np.log(nobs) * df_modelwc))

def bic ( llf , nobs , df_modelwc ) : return ( ( ( - 2.0 ) * llf ) + ( np . log ( nobs ) * df_modelwc ) )
bayesian information criterion or schwarz criterion parameters llf : float value of the loglikelihood nobs : int number of observations df_modelwc : int number of parameters including constant returns bic : float information criterion references URL .