Do we have a built-in tests to check for the independence of two variables? I’m testing an rng function, one case where the variables, X and Y, are fully correlated (easy to check) and one where their correlation is 0. For the latter, you can compute
and see if they’re close enough. I can code in the proper hypothesis test but I wanted to check if the work had already been done.