Statistical inference of multivariate time series and functional data using new dependence metrics