Skip to content

Use ddof=1 for std & var #8566

Open
Open
@max-sixty

Description

@max-sixty

What is your issue?

I've discussed this a bunch with @dcherian (though I'm not sure he necessarily agrees, I'll let him comment)

Currently xarray uses ddof=0 for std & var. This is:

  • Rarely what someone actually wants — xarray data is almost always a sample of some underlying distribution, for which ddof=1 is correct
  • Inconsistent with pandas

OTOH:

  • It is consistent with numpy
  • It wouldn't be a painless change — folks who don't read deprecation messages would see values change very slightly

Any thoughts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic-arraysrelated to flexible array support

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions