Notice how row 3 (with bin [8.50, 9.50)) has Std different than 0. Since the only age that falls on that bin is 8, I don't understand how the std could be different than 0. The other statistics are also quite odd/don't make sense.
Please let me know if there is an issue when using weights or if I'm understanding the results wrong.
I created a simple dataframe with age, salary, and num_obs:
Better displayed as:
I then generated optimal bins using num_obs as sample weights:
Which results in:
Notice how row 3 (with bin [8.50, 9.50)) has Std different than 0. Since the only age that falls on that bin is 8, I don't understand how the std could be different than 0. The other statistics are also quite odd/don't make sense.
Please let me know if there is an issue when using weights or if I'm understanding the results wrong.
Thanks!
Ps: this might be related to this issue: https://github.com/guillermo-navas-palencia/optbinning/issues/323