find y of discrete distribution curve x_y_list given p