Sub topic 6
Power-to-Cost Ratio and Spotting Outliers
Prerequisites and the basic ratio
This chapter assumes you know basic game design terms such as stats, resources, abilities, and tiers. You should also be comfortable with simple arithmetic and short Python programs.
A cost curve maps content power to a price. The power-to-cost ratio is a quick audit tool built on that mapping:
power-to-cost ratio = power / cost
A higher ratio means the player receives more measured power for each unit of cost. A unit with a much higher ratio than its peers may be overpowered or underpriced. A unit with a much lower ratio may be weak or overpriced.
The ratio is useful for finding candidates for investigation. It is not proof of balance or imbalance. Context, counters, range, reliability, and team composition can change practical power.
Establish a comparable measurement
Before calculating ratios, put power and cost in compatible forms.
- Use the same power model for every unit in the group.
- Use the same cost resource, such as gold, energy, or build time.
- Compare content with similar roles or progression tiers.
- Record assumptions about uptime, accuracy, range, and required conditions.
- Avoid mixing early-game costs with late-game costs unless progression is part of the analysis.
Suppose a unit has attack worth 2 points each, health worth 0.5 points each, and speed worth 3 points each. A unit with 4 attack, 10 health, and 1 speed has this power score:
4 × 2 + 10 × 0.5 + 1 × 3 = 16
The score is an accounting model. It gives different stats a common currency so that they can be compared.
STAT_VALUE = {"attack": 2.0, "health": 0.5, "speed": 3.0}
def raw_power(stats):
return sum(STAT_VALUE[name] * amount for name, amount in stats.items())
units = {
"Archer": ({"attack": 4, "health": 10, "speed": 1}, 10),
"Knight": ({"attack": 6, "health": 24, "speed": 0}, 20),
"Mage": ({"attack": 8, "health": 10, "speed": 1}, 20),
}
for name, (stats, cost) in units.items():
power = raw_power(stats)
print(name, "power:", power, "ratio:", round(power / cost, 2))Compare ratios with a baseline
A raw ratio is difficult to interpret by itself. Compare each ratio with the group average or with a target ratio from your cost curve.
For the three units above, the ratios are:
| Unit | Power | Cost | Power-to-cost ratio |
|---|---|---|---|
| Archer | 16.0 | 10 | 1.60 |
| Knight | 24.0 | 20 | 1.20 |
| Mage | 22.0 | 20 | 1.10 |
The average ratio is 1.30. The Archer is about 23 percent above the average. The Mage is about 15 percent below it.
A relative ratio makes this comparison explicit:
relative ratio = unit ratio / average ratio
A relative ratio of 1.0 matches the average. Values above 1.0 indicate higher measured efficiency. Choose a tolerance before looking at results. For example, a tolerance of 0.15 flags units more than 15 percent above or below the average.
def flag_outliers(units, tolerance=0.15):
ratios = {
name: power / cost
for name, (power, cost) in units.items()
}
mean = sum(ratios.values()) / len(ratios)
relative = {
name: ratio / mean
for name, ratio in ratios.items()
}
return {
name: round(value, 2)
for name, value in relative.items()
if abs(value - 1) > tolerance
}
units = {
"Archer": (16, 10),
"Knight": (24, 20),
"Mage": (22, 20),
}
print(flag_outliers(units))Investigate before changing the price
Use this sequence when a ratio looks unusual:
- Verify the input data and cost value.
- Check that the unit is compared with the right group.
- Review the stat valuations.
- Add important effects such as range, crowd control, or durability.
- Test matchups and team combinations.
- Adjust the cost, power, or condition only after identifying the cause.
Exercise
Exercise
A unit has measured power 36 and cost 20. The comparison group has an average ratio of 1.5. Is the unit more than 15 percent above average?
Show answer
Its ratio is 36 / 20 = 1.8. Its relative ratio is 1.8 / 1.5 = 1.2, so it is 20 percent above average and exceeds the tolerance.