def chiSquared(vector1, vector2):
    """Return :math:`$\chi^2$` (chi-squared) of two vectors"""

    return np.sum(np.power(vector1-vector2, 2))
dataset/ETHPy150Open OSCAAR/OSCAAR/oscaar/mathMethods.py/chiSquared/original