def z_score(x, avg, sd):
    """Calculate z-score.

    Parameters
    ----------
    x : float
        Standardized variable..
    avg : float
        Average from population.
    sd : float
        Standard deviation from population.

    Returns
    -------
    z : float
        Z-score.
    """
    return (x - avg) / sd