def bayesian_info_criterion_lsq(ssr, n_params, n_samples):
 return bayesian_info_criterion((((-0.5) * n_samples) * np.log((ssr / n_samples))), n_params, n_samples)

def bayesian_info_criterion_lsq ( ssr , n_params , n_samples ) : return bayesian_info_criterion ( ( ( ( - 0.5 ) * n_samples ) * np . log ( ( ssr / n_samples ) ) ) , n_params , n_samples )
computes the bayesian information criterion assuming that the observations come from a gaussian distribution .