I would like to compute a "generalization of the Pearson correlation coefficient", the nth- comomentum that could work for n time series.
In short, I would like to have a function that receives n different time series and: for n=2 gives me the Pearson correlation coefficient between two time series; for n=3 gives the coskew between three different time series, for n=4 gives the cokurtosis between 4 different time series, and so on. A good starting point is already in the post: how to calculate coskew and cokurtosis . However, in this previous post, It is only considered coskew and cokurtosis between two different time series.
Thanks a lot for the help!