def aicc(log_likelihood, df, n_samples):
    """Calculate AICc given log-liikelihoood, degrees of freedom, and number of samples."""
    return -2 * log_likelihood + 2 * df * n_samples / (n_samples - df - 1)