How to Calculate a 2D Empirical CDF via histogram2d
I am trying to obtain a matrix representation of an empirical 2 dimensional CDF given two data samples of the same size. I have two sorted data samples of the same size: sorted_sample1 and sorted_sample2 . I want a matrix which represents their 2 dimensional empirical cdf. Currently I have hist_values, x_edges, y_edges = np.histogram2d(sorted_sample1, … Read more