Ask Your Question
2

How does Anova in scipy produce nan as output?

asked 2022-08-15 11:00:00 +0000

ladyg gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2021-05-31 06:00:00 +0000

nofretete gravatar image

ANOVA in scipy can produce NaN (Not a Number) as output when there is missing data (i.e., NaN values) present in the input data or when the sum of squares is negative. NaN values can propagate through calculations and lead to NaN values in the result. This can happen when there are missing values in the data, and the analysis requires complete data, or when there are extreme outliers in the data that cause the sum of squares to be negative. In such cases, it is necessary to preprocess the data to remove the NaN values or handle them appropriately to avoid NaN values in the result.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2022-08-15 11:00:00 +0000

Seen: 18 times

Last updated: May 31 '21