samples.mean()
, samples.std()
etc. are not correctly ignoring nan
values
#392
Labels
bug
Something isn't working
Describe the bug
Simple summary statistics such as
samples.mean()
orsamples.std()
are not correctly computed when the data containsnan
despite theskipna=True
flag.My suspicion is that this is happening when the data contains
nan
values, but the weights do not (e.g. when computing derived parameters that don't work for part of the parameter space).To Reproduce
Output:
Expected behavior
Any
nan
values should be completely ignored in the computation.Additional context
This will also affect computation of things like the Gelman--Rubin statistic.
The text was updated successfully, but these errors were encountered: