We are close to settling the final data analysis for Malin's forthcoming paper about target pursuit behaviour in male hoverflies.
I have tried to understand how two data (e.g., fly speed against bead speed) correlate with each other using functions in Matlab, xcorr and corrcoef. I got confused by the outcomes from those two functions, even reading through function documents in the Matlab help centre; watching youtube videos. They made me more confused, somehow.
To solve this, I googled 'cross-correlation vs correlation coefficient'. As usual, someone had already faced the same question and sought help 10 years and 1 month ago.
https://stackoverflow.com/questions/6284676/a-question-on-cross-correlation-correlation-coefficient
The best answer I have got there was 'I seriously think you need to read up more on cross-correlation functions & correlation coefficient from a statistics book, because your confusion here is more fundamental than related to MATLAB'.
Shame on me!
I found excellent explanations of the correlation coefficient on this web pages too.
https://www.statisticshowto.com/probability-and-statistics/correlation-coefficient-formula/
Karin's lines of code eventually let me achieve the calculations. The result is stunning, and we all are excited to share them as a publication soonish.