def _scalar_quadratic_form(variance, mean):
    """Computes a quadratic form.

    Equivalent to squared Z-score.

    Parameters
    ----------
    variance, mean : (...) ndarray.
    """
    return mean ** 2 / variance
