def mean(sample):
    """
    Computes the mean for the univariate sample.
    :param sample: (list(float)) univariate sample.
    :return: (float) the mean.
    """
    return sum(sample) / len(sample)