Clear Filters
Clear Filters

Lower and upper bounds of correlation coefficient

3 views (last 30 days)
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)

the cyclist
the cyclist on 1 May 2023
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

Community Treasure Hunt

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

Start Hunting!