def AIC(params, log_likelihood_fun, data):
    """Calculates the AIC (akaike criterion)
    Parameters
    _________
    params : tuple
    MLE parameters for distribution

    log_likelihood_fun : function
    calculates the log likelihood for the desired distribution

    data : array
    empirical dataset to calculate log likelihood with respect to

    Returns
    _________
    output : float
    AIC value
    """

    L = log_likelihood_fun(params, data);
    return -2*(L) + 2*len(params)