I have a math problem related to peptide mass spectrometry which I am unable to solve myself. Hopefully some of you guys will find it to be an interesting challenge. I have expressed it below in terms of beads on a necklace so that you hopefully won't need to understand the technology to solve the problem.
You have bags containing a near infinite number (for our purposes) of strings with an equal number of beads; lets call them necklaces. There are two types of beads; white and black. There is a certain abundance of white and black beads respectively which is the same in all conceivable bags, and these beads are randomly distributed on the necklaces. The necklaces are taken out of the bag and sorted into categories depending on the number of black beads they contain. This means that for a bag with necklaces of length five (five beads) there are six categories:
w = white
b = black
0: wwwww
1: bwwww, wbwww, wwbww, wwwbw, wwwwb
2: bbwww, bwbww, bwwbw, bwwwb, wbbww, wbwbw, wbwwb, wwbbw, wwbwb, wwwbb
3: bbbww, bbwbw, bbwwb, bwbbw, bwbwb, bwwbb, wbbbw, wbbwb, wbwbb, wwbbb
4: wbbbb, bwbbb, bbwbb, bbbwb, bbbbw
5: bbbbb
The necklaces have direction, meaning that wwwwb is not identical to bwwww.
Each category is more or less abundant, solely dependent on the abundance of black and white beads respectively. The relative abundances amount to 1 if summed:
I0 + I1 + I2 + I3 + I5 + ... = 1
After the necklaces are sorted, a subset of the first categories (containing least number of black beads; say category 0-3, or 0-2) are removed from the rest of the necklaces and each necklace is cut once at a random position, giving rise to a lot of smaller necklaces, that we will call fragments. These are again put in new bags depending on their new length and whether the fragment is the right or the left part of the original necklace. Each and every new bag will thus contain fragments of identical length, though still with different combinations of black and white beads. Consider a fragment of length four where a subset of category 0-2 was chosen earlier:
0: wwww
1: bwww, wbww, wwbw, wwwb
2: bbww, bwbw, bwwb, wbwb, wwbb, wbbw
Category 3 and 4 are not included, as these were not included in the chosen subset in this scenario.
Considering any of these bags with fragments, the question is: What are the relative abundances of the different categories? Are they equal to the relative abundances if one would just have chosen a necklace of the fragments's length and chosen the same subset?
For example:
1. A bag with necklaces of length 16 is chosen.
A subset of category 0-2 (0-2 black beads) is chosen.
The necklaces in the subset are fragmented.
For a specific fragment of length 6 the relative abundances between the
catogories are I0, I1 and I2 (sum 1).
2. A bag with necklaces of length 6 is chosen.
A subset of category 0-2 (0-2 black beads) is chosen, which has the relative
abundances between the catogories I0', I1' and I2' (sum 1).
Is I0'=I0, I1'=I1, I'2=I2?
Let me know if you need anything else. I myself find it difficult to pose this question in a way that is easily understandable while still giving an answer to the real question. Any answer is greatly appreciated.
EDIT1: Bonus questions: What if we introduce more colors of beads? What if we introduce colors that count as double value regarding category (e.g. one of these beads on a necklace would raise the category by 2 instead of 1)?
wbbw
. $\endgroup$