Chalkboard - v3.0.4
    Preparing search index...

    Function chiSquared

    • Calculates the chi-squared test of two arrays.

      Parameters

      • arr1: number[]

        The first array

      • arr2: number[]

        The second array

      Returns number[]

      const result = Chalkboard.stat.chiSquared([20, 30, 50], [25, 25, 50]); // Returns the componentwise chi-squared contributions