def get_sampling_error(mu, xbar):
    """
    Sampling error is defined as the difference between mean of the population and mean of the sample.

    Parameters
    ----------
    mu: mean of the parameter
    xbar: mean of the sample

    Returns
    -------
    The sampling error mu-xbar.
    """

    return mu - xbar