My previous post proposed an economics course built around World of Warcraft. I have much less experience teaching statistics than teaching economics and I suspect the game is less suited for the former than the latter purpose but it does provide quite a lot of opportunities for observing data and trying to infer patterns from it so could be used to both explain and apply statistical inference. And I suspect that, as in the case of economics, application to a world with which the student was familiar and to problems of actual interest to him would have a significant positive effect on attention and understanding.
Consider the question of whether a process is actually random. Human beings have very sensitive pattern recognition software, so sensitive that it often sees patterns that are not there. There is a tradeoff, as any statistician knows, between type 1 and type 2 errors, between seeing something that isn’t there and failing to see something that is. In the environment humans evolved in, there were good reasons to prefer the first sort of error to the second; mistaking a tree branch for a lurking predator is a less costly mistake than misidentifying a lurking predator as a tree branch. One result is that gamblers routinely see patterns in random events: “hot dice,” a “loose” slot machine, or the like.
Players in World of Warcraft see such patterns too. If you are hunting fire elementals, it feels as if there are times when they drop a lot of motes of fire, others when they hardly ever drop any. It feels, in other words, as though the probability of a drop changes over time, slowly enough so that if you are doing well now you will probably be doing well five minutes later, and similarly if you are doing badly.
In the real world it is usually safe to assume that the dice which you have used in the past will continue to produce the same results in the future. In the game it is always possible that the odds have changed, that the latest update increased the drop rate for the items you are questing for from one in four to one in two, even one in one. It is even possible that some mischievous programmer has introduced serial correlation into otherwise random events, that the dice really are sometimes hot and sometimes cold. That might make the game more fun. Human beings enjoy finding patterns, exercising skills, so why not make the game more interesting by building into it subtle patterns of the sort that players will look for?
How would you find out if it had happened, if the pattern you were seeing was real?
A Bayesian Exercise
I was on a quest which required me to acquire five copies of an item dropped by a particular sort of creature. Past experience suggested a drop rate of about one in four. I killed four creatures, got four drops, and began to wonder if something had changed.
The question was one to which statistics, specifically Bayesian statistics, was applicable. Many students, many people who use statistics, have a mistaken view of what statistical results mean, think “significant at the .05. level” means that the theory being tested has a 95% chance of being true. My experience in World of Warcraft provided a nice example of why that is a mistake and how one should go about getting the information that people mistakenly believe a confidence result provides.
The null hypothesis is that the drop rate has not changed, that each creature I kill still has one chance in four of dropping what I want. The alternative hypothesis we are testing is that the latest update has raised the rate to one in one. A confidence result tells us how likely it is that, if the null hypothesis is true, the evidence for the alternative hypothesis will be at least as good as it is: the probability of the evidence conditional on the null hypothesis.
If the null hypothesis is correct, the chance of getting four drops out of four is only one in 256. Hence my experiment supports the alternative hypothesis at (better than) the .01 level. Does that mean that the odds that the drop rate has been raised to one in one are better than 99 to 1? That is how, in my experience, many people interpret such results.
1/256 is not the probability that the drop rate has changed, it is the probability that I would have gotten four drops out of four if it hadn’t. To get from there to the probability that the drop rate has not changed, the probability of the null hypothesis conditional on the evidence, the probability relevant to deciding at what odds I should be willing to bet someone that the fifth kill would give me my final drop, I need to know how likely it was for the drop rate to change. I need that information to compare the probability that it has changed to the probability that I got lucky.
Suppose we determine, by reading the patch notes of past patches or getting a Blizzard programmer drunk and interrogating him, that any particular drop rate has a one in ten thousand chance of being changed in any particular patch. The probability of getting my result via a change in the drop rate in the latest patch is then .0001 (the probability of the change) times 1 (the probability of the result if the change occurred; for simplicity I am assuming that if there was a change it raised the drop rate to 1 and that there has been only one patch since my previous observation of the drop rate). The probability of getting it without a change by random chance is .9999 (the probability that there was no change) x 1/256 (the probability of the result if there was no change). The second number is about forty times as large as the first, so the odds that the drop rate is still the same are about forty to one.
You are unlikely, in the real world, to know enough about the probability distribution to do that calculation, but seeing how you would do it lets you get a feel for how much evidence for a changed drop rate my experience is. It also lets you see why you need more than statistical significance to know how likely something is to be true. And I suspect, although I may be mistaken, that the odds that a student who spent his spare time playing World of Warcraft would find the explanation interesting and manage to follow it are higher than if I were making the same argument in the context of an imaginary series of coin tosses, as I usually do.
There is one other relevant consideration. If you flip a coin eight times and they are all heads, you might suspect that it is not a fair coin. If you flip 300 coins eight times each, you should not be surprised if one or two of them come up all heads. The run of drops I got was unlikely but I was doing versions of that experiment many times over the years I played, so it would not be surprising if I occasionally got an unlikely result. Before interpreting it as evidence that the drop rate changed it is worth asking how many other opportunities there were for similar unlikely experiences that didn’t happen.
How Statistics Gets Used
Your students don’t have, probably cannot get, the data needed to figure which of the weapons they have or can get would produce the most damage used by a player with their stats, but it is a statistical problem, one solved to produce such information on sites such as Ask Mr. Robot or Icy Veins. You could use the question of how, if you had the data, you would use it to answer such questions, not only for gear but for choice of what spells to use and what buffs, all problems of constrained optimization, as problems in multivariate statistics. You might even get players to do simplified versions of such calculations based on data from their own online experience or invented data that you provided.
None of these are questions that can be solved without statistics applied to data. A ring or buff that gives you +4 to strength is unambiguously better than one that gives +3 to strength, but whether +4 to strength is better or worse than +4 to dexterity depends on what kind of fights you get into how often with what opponents.
My web page, with the full text of multiple books and articles and much else
Past posts, sorted by topic
A search bar for past posts and much of my other writing
A draft of my next book, Consequences of Climate Change, webbed for comments. Read it and tell me what I have wrong.
