def calculate_sensitivity(lr, clip, data_size):
    """
    Calculate the sensitivity of the privacy mechanism.
    :param lr: learning rate
    :param clip: clipping bound
    :param data_size: data size
    :return: the sensitivity of the privacy mechanism
    """
    return 2 * lr * clip / data_size