bebi103.bootstrap.pearson_r
- bebi103.bootstrap.pearson_r(data_1, data_2)
Compute the Pearson correlation coefficient between two samples.
- Parameters
data_1 (array_like) – One-dimensional array of data.
data_2 (array_like) – One-dimensional array of data.
- Returns
output – The Pearson correlation coefficient between data_1 and data_2.
- Return type
float
Notes
Only entries where both data_1 and data_2 are not NaN are used.
If the variance of data_1 or data_2 is zero, return NaN.