# Compute significance of Pearson Correlation Coefficient

**URL:** <https://discourse.julialang.org/t/compute-significance-of-pearson-correlation-coefficient/49589>\
**Category:** New to Julia\
**Tags:** question, statistics\
**Created:** [November 4, 2020, 3:50pm UTC](https://discourse.julialang.org/t/compute-significance-of-pearson-correlation-coefficient/49589 "2020-11-04T15:50:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jo-fleck](https://avatars.discourse-cdn.com/v4/letter/j/59ef9b/32.png) [@jo-fleck](https://discourse.julialang.org/u/jo-fleck)\
**Post date:** [November 4, 2020, 3:50pm UTC](https://discourse.julialang.org/t/compute-significance-of-pearson-correlation-coefficient/49589/1 "2020-11-04T15:50:31Z")

</div>

Is there an option to compute the significance level (p-value) of the Pearson correlation coefficient using `Statistics.cor` ?

This question was already asked before ([here](https://stackoverflow.com/questions/53345724/how-to-use-julia-to-compute-the-pearson-correlation-coefficient-with-p-value)) but I couldn’t find more recent info on it.

Is there another way than ‘by hand’ as suggested there? (It’s included in other languages, for example Python and Matlab.)

Thanks a lot for answers and hints!

---

<div class="post-metadata">

**Author:** ![pdeffebach](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pdeffebach/32/10320_2.png) [@pdeffebach](https://discourse.julialang.org/u/pdeffebach)\
**Post date:** [November 4, 2020, 3:57pm UTC](https://discourse.julialang.org/t/compute-significance-of-pearson-correlation-coefficient/49589/2 "2020-11-04T15:57:21Z")

</div>

HypothesisTests.jl only seems to have this for a partial correlation… I think this an oversight from HypothesisTests that should be fixed.

---

<div class="post-metadata">

**Author:** ![jo-fleck](https://avatars.discourse-cdn.com/v4/letter/j/59ef9b/32.png) [@jo-fleck](https://discourse.julialang.org/u/jo-fleck)\
**Post date:** [November 5, 2020, 12:36pm UTC](https://discourse.julialang.org/t/compute-significance-of-pearson-correlation-coefficient/49589/3 "2020-11-05T12:36:22Z")

</div>

Thanks a lot for the info @pdeffebach !

I added enhancement suggestions to Statistics and HypothesisTests.
