Click the ⋮ on each trait. Both the rarity of traits and group can be edited, you don't need to manually calculate the exact ratio, simply change 1 or several and click "UPDATE TRAIT", the ratio will be calculated automatically.
The rarity of the whole group can also be edited.