Skip to content

corrcoef[1, 0] != corrcoef[0, 1] #6793

@arokem

Description

@arokem

On Python 3.5 (from Anaconda) with numpy 1.10.1, the following test fails:

import numpy as np
import numpy.testing as npt

np.random.seed(100)  # Only happens sometimes! 
t = np.arange(1024)
x = np.sin(10 * t) + np.random.rand(t.shape[-1])
y = np.sin(10 * t) + np.random.rand(t.shape[-1])
cc = np.corrcoef(x, y)
npt.assert_equal(cc[0, 1], cc[1, 0])

Is this by design?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions