Sub topic 13
Checking the model against playtest data
This chapter assumes you have a working balance workbook with a Params sheet, calculations, and outputs such as expected damage and time to kill (TTK). It also assumes you know basic descriptive statistics (mean, standard deviation, percentile). The earlier chapters gave you predictions. Here you test those predictions against what real players did, and you decide what to change when they disagree.
What validation is for
A spreadsheet model is a set of claims: "this enemy dies in 8.4 seconds," "this drop appears once per 50 attempts." Playtest data tests those claims. Validation does not prove the model is right. It tells you where the model is wrong and by how much, so you can fix the right thing.
A mismatch can come from four places:
- Wrong input: a parameter value in Params does not match the build that was played.
- Wrong structure: the formula leaves out something real, such as misses, dodging, or time spent moving.
- Noise: the sample is too small to say anything yet.
- Wrong goal: the model is accurate, but the target value you set does not produce the experience you want.
Most of the work is telling these apart.
Log what the model predicts
You can only compare quantities that both the model and the playtest produce. Before a session, list the model outputs you want to check, then make sure the game or the tester records the matching raw values.
| Model output | What to log in a playtest |
|---|---|
| Time to kill | Seconds from first hit to death, per fight |
| Expected damage per attack | Damage dealt per hit, plus hit and crit flags |
| Drop probability | Attempts and drops per tester |
| Economy income | Currency earned per minute at each level |
| Level pacing | Minutes played when each level was reached |
Also record the build version and the player's experience level on every row. Without a version column you cannot tell whether a gap came from the model or from a patch. Without an experience column, a few expert players can hide a problem that new players hit constantly.
Set up a comparison sheet
Create a Playtest sheet. Each row is one fight. Column C holds the model's predicted TTK for that enemy, column D the observed TTK, and column E the error.
| Row | A | B | C | D | E | F |
|---|---|---|---|---|---|---|
| 1 | Session | Enemy | Predicted TTK | Observed TTK | Error (s) | Error (%) |
| 2 | 1 | Goblin | 8.4 | 9.1 |
Fill these formulas down:
=D2 - C2=(D2 - C2) / C2Positive error means the fight took longer than predicted. Keep the sign. The sign tells you the direction of the bias, and you will need it later.
Then add summary cells. These assume 100 data rows (rows 2 to 101):
=AVERAGE(E2:E101)This is the mean error, or bias. If it is far from zero, the model is systematically off.
=SUMPRODUCT(ABS(F2:F101)) / COUNT(F2:F101)This is the mean absolute percentage error. Bias can hide behind cancellation: one fight 5 seconds too long and another 5 seconds too short average to zero. Absolute error shows the typical miss size regardless of direction. Report both.
Decide whether the gap is real
Playtest data is noisy. A mean error of +0.7 seconds could be a real model error or luck. A confidence interval puts a number on that.
=CONFIDENCE.T(0.05, STDEV.S(E2:E101), COUNT(E2:E101))This returns the half-width of a 95% interval around the mean error. If the absolute mean error is smaller than this half-width, the data does not show a gap, and you should not change anything yet. A single cell can make that call:
=IF(ABS(AVERAGE(E2:E101)) <= CONFIDENCE.T(0.05, STDEV.S(E2:E101), COUNT(E2:E101)), "within noise", "investigate")This works in Excel and Google Sheets.
Note that "within noise" does not mean "correct." With 5 fights the interval is wide enough to hide almost any error. The interval width shrinks with the square root of the sample size, so halving it takes four times the data. To plan a session, estimate how many fights you need for a margin you care about. Here sd is the standard deviation of the error from a pilot run, and margin is the largest error you want to be able to detect, in seconds:
=ROUNDUP((1.96 * sd / margin) ^ 2, 0)For example, if sd is 3 seconds and you want to detect a 0.5 second bias, you need about (1.96 × 3 / 0.5)² ≈ 138 fights.
Break the error down by group
A mean error near zero can still hide big problems. If goblins run 3 seconds short and ogres run 3 seconds long, the overall bias is zero but both enemies are mis-modeled. Compute the error per group:
=AVERAGEIF($B$2:$B$101, "Goblin", $E$2:$E$101)Do the same by level band, class, or tester experience. A pattern in the groups often points straight to the cause:
| Pattern in the error | Likely cause |
|---|---|
| Observed always longer, by a similar percentage | A missing multiplier, such as time spent not attacking |
| Error grows with level | The growth curve exponent does not match the real stat gain |
| Error only against armored enemies | The armor formula or an armor value is wrong |
| Error only for new players | The model assumes skilled play |
| Large spread but near-zero bias | Variance the model ignores, such as crit streaks |
Compare more than the average
Players do not experience the average fight. They experience the slow ones. If you built a Monte Carlo sheet in the simulation chapter, compare its percentiles to the observed ones:
=PERCENTILE.INC(D2:D101, 0.9)If the model predicts a 90th percentile TTK of 14 seconds and testers saw 22, the model underestimates how bad unlucky fights get. The cause may be a missing source of variance, such as enemies that heal or players who miss targets.
Check probabilities with a binomial test
Drop rates need a different test, because the data is counts. Suppose a drop has probability 2% per attempt. Testers made 150 attempts and saw 1 drop. The model expected 3. Is that evidence of a problem?
Ask how likely 1 or fewer drops would be if the model were correct:
=BINOM.DIST(1, 150, 0.02, TRUE)The result is about 0.20. Getting 1 or fewer drops happens roughly one time in five by chance, so this sample gives no reason to doubt the 2% rate. A common rule is to investigate when the cumulative probability falls below 0.025 or rises above 0.975, which gives a two-sided check at about the 5% level.
To check a rate with cell references, where B2 is the drops observed, C2 is the attempts, and D2 is the modeled probability:
=IF(OR(BINOM.DIST(B2, C2, D2, TRUE) < 0.025, BINOM.DIST(B2 - 1, C2, D2, TRUE) > 0.975), "investigate", "consistent")The second test uses B2 - 1 so that the check asks whether seeing B2 or more drops is unusually likely to be too high. If B2 is 0, BINOM.DIST(-1, ...) returns an error, so wrap that term in IF(B2 = 0, 0, ...) when you expect zero-drop rows.
Rare drops need large samples. At 0.5%, you need on the order of 1,000 attempts before the data can distinguish 0.5% from 1%. For rare events, pool attempts across all testers and keep a running total.
Fix the model one change at a time
When the test says a gap is real, resist adjusting several things at once. Pick the most likely cause and make one change.
Suppose the mean observed TTK is consistently about 25% longer than predicted, across all enemies. A common cause is that players are not attacking for the whole fight: they move, dodge, and wait for cooldowns. Add an uptime parameter to Params, say in Params!B10, and extend the TTK formula from the derived metrics chapter:
=Targets!B2 / F2 * G2 / Params!$B$10A first estimate for uptime is the ratio of mean predicted TTK to mean observed TTK:
=AVERAGE(C2:C101) / AVERAGE(D2:D101)If this gives 0.8, players spend about 80% of the fight attacking. This is a calibrated parameter. It is fitted to data, not derived from design, so label it that way in your Params sheet.
The risk is overfitting: tuning a model until it matches one dataset perfectly, then watching it fail on the next. To guard against this, fit on one subset of sessions and check the calibrated model on sessions you held back. If the error on the held-back sessions is close to the fitted error, the correction is likely real.
Common errors
- Comparing different builds. Always filter rows to the build the model represents.
- Treating a small sample as proof. Check the interval width before reacting to a mean.
- Averaging across very different groups. Break the error down by enemy, level, and skill first.
- Using playtest data from the designers. They know the game too well, so their results will not match new players.
- Recording only outcomes, such as "won" or "lost." Outcomes alone cannot tell you which formula is off. Log the raw numbers the model predicts.
- Changing the model and the design in the same round. You will not be able to tell which change fixed the problem.
Keep a validation log
Add a Changes sheet with one row per round: date, build version, what the data showed, what you changed, and the new error. After a few rounds you will see whether the error is falling or whether you are chasing noise. It also lets you undo a calibration that turned out to be wrong.
Exercise
Testers made 400 attempts at a drop with a modeled chance of 1% and saw 9 drops. Write the formula that tells you how likely 9 or more drops would be if the model were correct, and say what the result suggests. (Expected drops: 4.)
Show answer
Use =1 - BINOM.DIST(8, 400, 0.01, TRUE). This gives the probability of 9 or more drops, which is about 0.02. That is below the 0.025 threshold, so the observed rate is higher than the model's 1% and is unlikely to be chance alone. Investigate whether the build used a higher drop rate, whether attempts were logged correctly, or whether the modeled rate should be higher.
Exercise
Your Playtest sheet shows a mean TTK error of +0.4 seconds, and CONFIDENCE.T returns 0.9. Should you change the model? What would you do next?
Show answer
No. The absolute mean error (0.4) is smaller than the half-width of the 95% interval (0.9), so the data does not show a real gap. Collect more fights to narrow the interval, and check the error by enemy and level group in case opposite errors are canceling out.
Exercise
Observed TTK is about 20% longer than predicted for every enemy. Which parameter would you add to the model, and what is a first estimate for it?
Show answer
Add an uptime parameter, the fraction of time players spend attacking, and divide the TTK formula by it. A first estimate is mean predicted TTK divided by mean observed TTK, which is about 0.83 here. Then check the corrected model on sessions you held back from the fit.