Let's say I have 3 groups of data A, B, C.
A has two datapoints
B has three datapoints
C has five datapoints
I want to assign some weight to each datapoint so that each datapoint is used down the line for some analysis and is not biased by the size of the group it belongs to.
Hence the criteria I wish to satisfy here is the sum of the weights in each group is equal to 10 / 3 (total number of data points / total num groups). Hence my weights for datapoints in A: 10 / 6, B: 10 / 9, C: 10 / 15