RFC: add support for computing the variance of complex array

Open
#1,007 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
48/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Quiet
Tech stack
python
Domain
data

Research direction

Start by reviewing the standard's existing definition of variance and how complex-valued arrays are handled. Check the stated backend support against the standard requirements, then update the specification so the complex variance formula and expected behavior are unambiguous.

Written by the indexing model from the issue text.

Description

RFC topic: Complex Data Types topic: Statistics

The standard should support taking the variance of a complex-valued array, which is statistically well-defined and unambiguous (var(z) = var(z.real) + var(z.imag)). As far as I'm aware, all array backends already support this.

Dominant language
Python
Stars
281
Forks
52
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from data-apis/array-api

All issues in data-apis/array-api

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.