Skip to content

orbitize.lnlike._chi2_2x2cov cannot handle -1 corr values #393

@manduhmia

Description

@manduhmia

Describe the bug
For data correlations of exactly 1 or -1 the ._chi2_2x2cov will return lnlikelihood values of -inf

Expected behavior
I guess this is expected behavior considering the function has (1- corr**2) inside, but maybe should be mentioned/ warned in the documentation that having -1, 1 correlations will result in loglikelihood values of -infs

Desktop (please complete the following information):

  • macOS 15.7.4
  • orbitize! Version 3.1.0

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