![]() |
[Math] Stat Equivalence and Taylor Series
Theorycrafters spend no small amount of effort on the computation of how much of one stat is equivalent to some specific amount of another, at least in terms of some objective function. However, most of the approaches used are brute-force numeric methods; though most are sound, they are nevertheless approximations. This post will merely demonstrate why these approximations work for small stat changes, in addition to more exact symbolic solutions (that, granted, are also more difficult to work with).
Let us, then, consider some objective function Now, the idea of computing stat equivalence is based on some original starting point, which we can call What's relevant for the purposes of a stat comparison is a function... Where A Taylor series expansion would be helpful here: indeed, we can see that everything after the zeroth-order term in a Taylor expansion would neatly yield the value of the function However, this is, quite obviously, a multivariable Taylor series. As such it can be written in multi-index notation... Where the notation is consistent with Wikipedia's page on multi-index notation. I personally prefer something based more on the concept of tensors: Where It should be noted that there are very few functions (that I can think of, anyway) that would have derivatives higher than second-order for any single stat, and for the most part, anything beyond the first-order could be ignored--in essence, this is the foundation for most approximations we see: linear approximations of the function An Example: Damage and Crit for Casters At any rate, this is all a bit esoteric, so perhaps it's good to see an example in practice: Consider an expected damage/cast function In this case, all we need to calculate Since only two variables are changing, we can imagine that this is just a function of two-variables. This is just a cosmetic shortcut: in truth, all we're doing is ignoring irrelevant parts of the gradient (and hessian, and so on) that have to do with variables that aren't changing--that is, with elements that, when put through the Hadamard product, are just going to be multiplied with elements that are zero and won't contribute to the sum. Thus... Which yields... Which is exactly what an algebraic expansion would tell you. The benefit, of course, is that this method can be used when algebra would fail. Application to Stat Equivalence In terms of stat equivalence, the power of this symbolic method can lead to vast generalizations. Using the function above, it's pretty easy to show that... Using these expressions, we can set the two equal and thus see how much That is, setting the two expressions equal... Which can be converted to raw stats just by considering the rating conversion from crit chance to rating. And the expression can be solved in reverse to find how much crit chance is needed to be equivalent to a given amount of +damage. These are, however, among the simpliest possible expressions imaginable. Once more than one spell in rotation is considered, they grow much more complicated. It is for this reason that the symbolic generalizations are terribly limited. |
I can still kick your ass.
|
You got me on the first equation... not good at maths :O
|
Quote:
You just can't transform everything to a simple F function. For exemple the warlock dps calculation leads to a differential equation (you need X mana/s to cast your spells -> Y lifetaps to cover it -> you spend some time lifetaping -> you need X2 mana/s -> ...). But essentially, why bother with complicated (leading to unsolvable ?) equations, when you just can calculate |
I don't even know how to use the math systems here at EJ, but I'm wondering if I was the only person whose first response to this post was to post something along the lines of
I wish I understood the math behind half of the things that go on in this game or at least _what_ math is behind it, but I can’t even fathom it. Damn you, arts background. |
I dare you to post this on the official forums.
|
Was I the only person who quickly scrolled to the bottom of his post when I saw he was using a function F and a vector u to make sure I didn't waste 5 minutes reading that his equation would wind up being some math nerd joke?? I was just waiting to see variables C or K.
Oh i'll never forgive my algebra teacher for that wonderful "= R D R R " |
eh, F and u are pretty common. F is the general function notation and u can be the x component of a vector or more commonly a vector itself defined by the i, j and k directions. But no, I did the same thing ><'.
|
Quote:
|
Quote:
I think it's meant to be read "Hardy Har Har". |
If you would be so kind as to post a key for your "simple" equation that would be nice.
|
Quote:
Quote:
But, even a simple spreadsheet can outperform such an analysis for all practical purposes. Beyond being a theoretical curiosity, though, the Taylor expansion--and the utter intractability of even most simple functions when expanded--tells me one thing: that Blizzard haven't a clue what they're doing. It's their job to balance classes not just now but at a wide range of gear levels. I didn't even get into optimization over a given boundary curve (which would be the item point allocation function), but it's clear it would be nigh on impossible to do. Quote:
|
I think he means identifying the variables
Question: Why you are using a fully multivariable Taylor product instead of just taking partial derivatives with respect to various variables? It seems to me that the reason you would use the more complex operation, the interaction between various partials, is immediately being ignored when you ignore the complicated parts of the formula. In fact, taking the partials of Also regarding your initial hypotheses: proc-based uptimes (like flurry and improved shadowbolt) tend to have n-order polynomial sections, where n is the number of charges on the proc, 3 and 4 in those cases, so there are cases with very important higher-order derivatives. I'm trying to come up with exponential or logarithmic functions and can't, but I wouldn't be surprised to see exponential decay towards a cutoff. EDIT: Apparently on forums $ does not automagically create LaTeX formatting -_-. |
Quote:
Quote:
The ratio is just How is "just taking partial derivatives" different from the Taylor series as a whole? Quote:
I think ultimately any theoretical model of such effects will be too woefully simplistic. You need an average rate of consumption to compare against the rate of reapplication. |
Quote:
|
| All times are GMT -4. The time now is 10:21 PM. |
Forum Infrastructure by vBulletin 3.6.12 ©2000-2007, Jelsoft Enterprises Ltd.