Skip to content

Add linear regression to the math functions #11392

@lrdickson

Description

@lrdickson

Related problem

Perform linear regression over data in nu.

Describe the solution you'd like

Add a linear regression sub command to the math command that can either take a table or a list as an input. If a table is provided as input, then the names of the columns the regression is being done over should also be provided. If a list is provided, then the index is used for the x values.

Describe alternatives you've considered

This could also be implemented as a plugin, but it would be nice to have it there with the rest of the math functions, several of them statistics related.

Additional context and details

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    category:enhancementNew feature or requestnew-commandstatus:needs-triageAn issue that hasn't had any proper lookstatus:should-be-pluginThe proposed feature is either experimental or has a niche audience and should be a plugin first

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions