Hello, If you're looking for a more powerful alternative to corr(X, Y), I just open - sourced an vasco [0]
vasco is a Postgres extension that helps you discover hidden correlations in your data. It is based on the MIC and MINE family of statistics. [0] https://github.com/Florents-Tselai/vasco