# statistics – Adding the probabilities of multiple outcomes in AnyDice

I don’t know if this has been answered before. I’ve certainly looked for similar questions for a few hours, but even if I find similar ones, I still cannot work out the answer to this problem.

In a game you could have various outcomes:
fail is 3-9, low success is 10-14, high success is 15-17, critical success is 18.

Let’s say that you could also add a modifier to your dice roll so that a 3d6 could go below 3 or above 18.

So a 3d6 with the dice results added give the following probabilities:
for { 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18}
we get { 0.46, 1.39, 2.78, 4.63, 6.94, 9.72, 11.57, 12.50, 12.50, 11.57, 9.72, 6.94, 4.63, 2.78, 1.39, 0.46 }

How can I get the probabilities for the four success groups? Example:
for { <=9, (>=10 & <=14), (>=15 & <=17), (>=18)}
we get { (0.46 + 1.39 + 2.78 + 4.63 + 6.94 + 9.72 + 11.57), (12.50 + 12.50 + 11.57 + 9.72 + 6.94), (4.63 + 2.78 + 1.39), 0.46 }

So I would like the probabilities to be added and displayed as bars in the graph. Is this possible with AnyDice?