[Python] Why does np.sum on z-scores of [10, 20, 3, 40, 50] return -8.89 instead of 0?

Discussão em 'Python' iniciado por Stack, Setembro 26, 2024.

  1. Stack

    Stack Membro Participativo

    enter image description here

    np.sum function is not returning expected output.

    It should be 0 but it return -8.89 something.

    The array is actually z-scores of [10,20,3,40,50]

    Can someone figure out that what's wrong in this standardization, I'm trying to do it with numpy.

    [​IMG]

    Continue reading...

Compartilhe esta Página