def aic(llf, nobs, df_modelwc):
 return (((-2.0) * llf) + (2.0 * df_modelwc))

def aic ( llf , nobs , df_modelwc ) : return ( ( ( - 2.0 ) * llf ) + ( 2.0 * df_modelwc ) )
akaike information criterion parameters llf : float value of the loglikelihood nobs : int number of observations df_modelwc : int number of parameters including constant returns aic : float information criterion references URL .