Are there generalizations of common hypothesis tests (e.g. t-test, mann-whitney) that can take into account different confidences in the sample measurements?
For example, if I have two sets of measurements:
A = [1, 5, 2, 6, 8, 9, 2]
B = [2, 7, 1, 6, 9, 7, 6]
and a given set of sample-specific measurement errors (different from the sampling error):
e_A = [0.2, 0.3, 0.1, 0.4, 0.1, 0.2, 0.3]
e_B = [0.1, 0.1, 0.1, 0.3, 0.2, 0.2, 0.1]
(these can be a standard deviation or the width of a confidence interval around the measurement, e.g. the true measure of $A[i]$ is inside the interval $[A[i]-e_A[i], A[i]+e_A[i]]$ with some probability $p$)
Is there a way to account for the heterogeneity in confidence/uncertainty concerning each measurement when running such a hypothesis test?
Similarly, are there hypothesis tests that can work with intervals (i.e. instead of a measurement $a$, we are testing sets of intervals $[a_1, a_2]$ that contain the true measurement with some probability)?
I have done some review of the literature and other posts but haven't quite found anything that would address this type of setup. Any help would be greatly appreciated!
