Opened 13 years ago

Closed 13 years ago

## #450 closed defect (fixed)

# pearson_p_value returns NaN when correlation is unity

Reported by: | Peter | Owned by: | Peter |
---|---|---|---|

Priority: | major | Milestone: | yat 0.5 |

Component: | statistics | Version: | 0.4.2 |

Keywords: | Cc: |

### Description

The problem is that the calculation of *t* involves a r/sqrt(1-r*r), which isn't sound when r is 1.

### Change History (2)

### comment:1 Changed 13 years ago by

Status: | new → assigned |
---|

### comment:2 Changed 13 years ago by

Resolution: | → fixed |
---|---|

Status: | assigned → closed |

**Note:**See TracTickets for help on using tickets.

(In [1553]) fixes #450