Sub topic 13
Measuring and Tuning a Live Game Economy
Assume you understand sources, sinks, currencies, and basic arithmetic with rates. This chapter uses a live economy model: players create balances through sources, reduce balances through sinks, and reveal problems through telemetry, which is recorded data about player actions.
What to Measure
A balance alone does not explain an economy. Track the flow that created the balance.
| Metric | What it shows | Useful warning sign |
|---|---|---|
| Currency earned per active player | How quickly currency enters the game | Rapid growth without matching spending |
| Currency spent per active player | How quickly currency leaves | Spending falls while balances rise |
| Median balance | The typical player's stored wealth | A sharp increase over several weeks |
| Time to afford an item | Whether pacing matches your design | Players reach goals much earlier or later |
| Source and sink share | Which features control the economy | One source or sink dominates |
Use both averages and medians. A few wealthy players can make an average balance look healthy while most players have very little. Segment the data by player age, activity level, platform, and game mode. A new player and a veteran should not be treated as one population.
Build Useful Telemetry
Record every economy transaction with a reason, amount, player segment, and timestamp. For a source, record events such as quest_reward. For a sink, record events such as weapon_repair. Never rely only on a final balance snapshot because it cannot show where currency entered or left.
from collections import defaultdict
events = [
("earn", "quest_reward", 500),
("earn", "daily_bonus", 100),
("spend", "weapon_repair", 120),
("spend", "upgrade", 250),
]
totals = defaultdict(int)
for action, reason, amount in events:
if amount <= 0:
raise ValueError("amount must be positive")
totals[(action, reason)] += amount
earned = sum(amount for (action, _), amount in totals.items()
if action == "earn")
spent = sum(amount for (action, _), amount in totals.items()
if action == "spend")
print("earned:", earned)
print("spent:", spent)
print("net flow:", earned - spent)
print("by reason:", dict(totals))A positive net flow does not always mean inflation. Players may be saving for a known purchase. Compare net flow with balances, purchase rates, and time-to-earn. Look for trends across cohorts rather than reacting to one unusual day.
Tune Through Controlled Changes
Change one major variable at a time. You might reduce a reward, add a repair cost, or adjust an item price. Record the intended effect before deploying the change. Use a limited rollout or an experiment group when possible, then compare it with a control group.
Common errors include balancing around the most active players, counting unspent currency as proof of success, and changing several sources and sinks together. These choices make it difficult to identify the cause of a result. Also watch for delayed effects. A sink may look ineffective until players accumulate enough currency to use it.
Exercise
Median balances are rising, but item purchases and player retention are stable. What should you inspect before reducing rewards?
Show answer
Inspect player segments, savings goals, source and sink shares, and time-to-earn. Rising balances alone do not prove harmful inflation.