def aic(X, k, likelihood_func):
    """Akaike information criterion.

    Args:
        X (np.ndarray): Data to fit on.
        k (int): Free parameters.
        likelihood_func (function): Log likelihood function that takes X as input.
    """
    return 2 * k - 2 * likelihood_func(X)