I wonder what kind of method better to use to see outliers on z value of 2D plot. For example, I have measurements of x and y values both in range of 1 to 16 with step of 1. Next I calculate how many observations each pair of x and y (x_n, y_n) have. That give me a grid of 16 by 16 with number of observations per pair (z). Because x and y are correlated we expect to see some pattern - some group of dots more often presented then others. Sometimes in areas where few observations expected, many can be presented. This due to equipment error. Sensor erroneously stamp some value again and again and again. What is the best method to find those errors in large data? If the grid is not 16 by 16 but 9000 x 9000. Also it is possible to use raw data - repeated x and y observations (in case of KDE). Here is some hard-coded sandbox example: import pandas as pd import random import matplotlib.pyplot as plt # Let's make data x, y, z. # x and y are coordinates similar to matrix coordinate x = [i for i in range(1, 17) for j in range(16)] y = list(range(1, 17)) * 16 # z is a set of random integer values in some range def r_num(base_value: int, n_numbers: int): return [random.randint(base_value, base_value + 700) for i in range(n_numbers)] def z_make(): _z = ((r_num(2000, 16)) + (r_num(2000, 16)) + (r_num(2000, 2) + r_num(5000, 12) + r_num(2000, 2)) + (r_num(2000, 2) + r_num(5000, 12) + r_num(2000, 2)) + (r_num(2000, 2) + r_num(5000, 2) + r_num(7000, 8) + r_num(5000, 2) + r_num(2000, 2)) + (r_…

Full article content could not be extracted automatically. Read the original below.