Skip to content

Why does pandas dataframe.var() method return unbiased variance by default?? #27202

Closed
@y-vectorfield

Description

@y-vectorfield

Why does pandas dataframe.var() method return "unbiased variance" by default?
I think variance implies "sample variance" in general.
Off course, I know this method can return "sample variance" if we provide ddof=0 option.
However, this setting option is very confusing.
Why don't you add new methods sample_var() and unbiased_var() or return "sample variance" by default?
Other data analysis OSS such as numpy, R and so on, their method return "sample variance" by default.
I think pandas is outstanding library for data analysis with Python! Therefore, I would like to know about this confusing specification.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions