def variance(rv, *args, **kwargs):
    """
    Returns the variance `rv`.

    In general computed using `mean` but may be overridden.

    :param rv: RandomVariable
    """
    return rv.variance(*args, **kwargs)