Lower and upper bounds of correlation coefficient

What is the algorithm that MATLAB uses to estimate lower and upper bounds of the correlation coefficients when using:
[R,P,RL,RU] = corrcoef(___)
And is that equivalent to perform bootstrapping?

Answers (1)

You can look at the code of corrcoef by typing
edit corrcoef
In R2022b, the computation is done in lines 158-172.
I didn't find a particularly definitive source for that calculation, but I was able to find it in many places, e.g. here.
I don't think it is strictly equivalent to bootstrapping, but I expect that under typical assumptions (normality of something or other, limit of lots of data, etc) they are going to be close.

Products

Release

R2023a

Asked:

on 1 May 2023

Answered:

on 1 May 2023

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!