I am trying to compare two array of frequencies, such as:
x A B a 100 50 2 90 45 b 70 35 4 120 60 5 50 25
I want a test that, where B is proportionally equivalent to A, the test returns a p-value close to 1 (Null hypothesis is that for each point on x axis, percentage frequencies of B are the same of percentage frequencies of A).
First I tried Chi squared test but I decided not to use it because it seems that it need at least a value of 5 in each cell of the array.
So I switched to Kolmogorov-Smirnov test but I didn't find anything that allows using it on frequencies with categorical values on x-axis.
Can it be used?