'Get chi squared from cartesian points

I have a table with x, y columns

 x  y
10  12
23  24
12  43
34  15
74  18
...

How can I know if they have a random distribution or if there is a dependency between them?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source