Skip to content

the game needs a certain amount of unpredictability in order to really test player decision making

Goumindong··2 votes·540 views

No. No it does not.

If you would like to have a longer discussion on the properties of random walks and why they're super bad for games like league go ahead and talk to your statistics department. You have one, they are almost certainly versed in the properties of non-stationary systems. Or me; I would be happy to educate you.

4 Comments

Puddytat2 votes

I know nothing of non-stationary systems (and very little of statistics beyond the basics), but I'm interested in hearing this.

Goumindong1 votes

OK. So so before we begin lets talk about a bog standard random walk.

A random walk is, essentially, the sum of independent random variables(we will call this variable e). The expected value of the random walk is the sum of the expected values of the random variables. And the variance of the random walk is the sum of the variances of the random values.

So X1=X0+e is a random walk. E(X) = nE(e) and V(X) = nV(e). Were e = 1 with probability p, and 0 with probability (1-p) [That is, you either crit, or you don't and we sum the total number of crits]

A random walk is not stationary because E(e1|e0) = E(e). and so E(X|X0) =/= E(X). Or another way to say it is that, if we roll a "crit" for the first attack, and the expected average of all the rest of the attacks is proper then the expected sum of the walk is now 1+ (n-1)E(X) =/= nE(X). Basically its a fancy way of saying that we can't erase the past. The expected value and/or the variance changes when we shift the start point of the sequence thus a random walk is not stationary.

Now, the base component of this is our random variable. And the random variable itself can be stationary. Any binary random variable which is independent would be stationary if the sequence were just re-polling that random variable.

The easy way to say this is that while we expect the average of crits that a player gets in a game to be close to the average of crits he should have gotten we do not expect that the average number of crits to be close to the average number of crits he should have gotten. The average of crits will have an expected value of p and a variance of p(1-p)/n. As n gets high, p(1-p)/n goes to zero and so we expect to be close to the expected value. The average number of crits will be nP where n is the number of attacks. But the variance of the number of crits will be np(1-p). Or for an example in a game where you attack 1000 times with a critical strike rate of 50% you will expect to get 500 crits with a variance of 250.

OK, so that being said, riot has introduced code to reduce the power of this situation. They do this by modifying the RNG so that E(e1|e0) =/= E(e). That is, if you've just crit you're less likely to crit the next attack and if you haven't crit you're more likely to crit the next attack. There are a number of ways to do this so lets just talk about how they cannot work over the short term.

The basic idea is to structure the formula in order to minimize the time it takes the sequence to converge. The minimum value for for any specific probability is 1/p. [I.E you hit the correct average when you have 1 crit for every 2 attempts at 50% crit rate]. But what about 3 attacks at a 50% crit rate? Doesn't work. Any value where the total number of attacks isn't divisible by 1/p does not have a whole number of successes which is equal to the expected value. Thus for any amount of randomness, one player will necessarily have an advantage (defined as "result better than the expected value in whichever direction they want) so long as the total number of attacks in a fight isn't divisible by 1/p.

This gets better as we get closer to p = .5. But it can't ever be fixed because we cannot set the number of attacks needed to end a fight as a function of a players critical strike rate. Lets use a fully deterministic example. Suppose that a player has 50% crit, and so after each crit they are guaranteed to not crit. Suppose they don't know whether or not they will start with a crit or not.

Well if they start with a crit p=.5 then the sequence is 1+0+1+1+0 and so on so forth. And if they don't start with a crit then its 0+1+0+1+0+1 and so on. The difference between these sequence is 1,0,1,0,1,0,1. So with 50% crit and a fully deterministic system, half the time this player has a 1 crit advantage. This type of structure exists for any critical strike rate and for any algorithm to attempt to smooth out crits. Simply because the structure is both discrete, and because we care about the sum, and not the average.

Things don't get better if we talk about RNG effects like Ashe's double slow or Phages slow. Any advantage can be used to make more advantage and so we're back into the same structure as before. If you start with the advantage you will likely continue the advantage until the end of the fight and the best you can do by modifying crits is to set who has the advantage and for how long.

It used to be joked that Cop was the best AD in the world because he always got the first phage proc. And this more or less necessitated changing the Phage bonus from a random slow to a guaranteed speed up. Yet here we are back with adding a random slow crit onto skills and making more AD's crit reliant if its not going to add any problems.

Puddytat1 votes

Thanks!

Now I'm wondering how exploitable this is.

Goumindong1 votes

Its not. If you have an advantage its random, which is the problem.

More from Gameplay

More by Goumindong