Skip to content

Variance and mean could be calculated in a better way #190

@vks

Description

@vks

Currently the mean is calculated in a very naive way, which has numerical problems. Also it is possible to calculate the variance (and higher moments) in a single pass over the data, instead of two passes (see Wikipedia). (I implemented such an algorithm in Rust in this crate.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions