Crit damage and crit rate and Genshin
Crit damage and crit rate are one of thr most wanted attributes in genshin. Almost everybody heard about 2:1 ratio but it's not true. Things are more complicated. Lets start with general equation for expected damage
This can be simplified in case of crit analysis to this:
Using this we can use derivatives to find extreme. Let's assume exiting of constant
This equation symbolizes alternative cost and limit how far in terms of crit can we go. Now with constrain we can write lagrangian function.
Results shows that one to one ration gives most damage. It's quite intuitive, if we want rectangle to have as much area with smallest circumference, we would draw square. But what about well known 2:1?!!. Constrain written above is lying.
Max artifacts attributes
5 star circlet of logos boost crit dmg up 62.2% or 31.1% crit rate. Minor stats follow same rule. With this we need to modify constrain. Twice as much effort is needed to get the same in stat for
And re-calculating gives
We got 2:1 ratio. Yay!! but's everyone knew about it already. Bear with me thats not all. We forgot about weapons and characters themselves. Providing that we choose weapon mostly based on it's skill we can assume that it's excluded from this exchange 2:1. So now we define artifacts crit rate and artifacts crit damage and rate as
Where ar
means artifacts and cr
means character(weapon + character attributes). Lets skip boring parts. Da-da!
This is general solution. Still we have ratio 2:1 but offset by character attributes. Now with that we can get specific solution.As example I will use my Arlecchino. She on her 90lvl has 88.4% crit dmg as her base stat. And her weapon Deathmatch gives another 36.8% crit rate
Those offsets are not that big tho
Characters with special talents
Some characters have talents that boost crit or changes behavior on crit hit. Each character has complexly different way of calculating expected dmg. Let's focus on beloved Yanfei. Her talent "blazing eye" deals additional hit equal to 80% of her attack when charged hit crits. This makes dealing crits more important than crit damage. And this changes expected damage equation. We must add constant attack. For simplicity sake I don't consider her skills in this and use charged hit after third normal hit. In real world scenario I believe that ratio is closer of chared to normal attacks 1:2 or 1:3 not 1:4 but it's simplest case
This monster is result of calculating with skill multipliers and all things mentioned above. Lagrangian function is even more awful. It's following the same rule like above. Just subtract lambda times constrain so we omit this frankenstein. And so general solution for Yanfei is this.
For my Yanfei (she was my first main ❤️). I have a weapon "Lost Prayer" with 33.1% crit rate bonus and i have quite generous 2255 ATK. Plugging it int my formula i get
So having two crit points I should invest target crit rate on artifacts 37% and crit damage on artifacts 126% and overall crit rate keep around 70% and around 126% crit damage.
Afterword
I planned to write about since some time. After year on a uni I got to know math enough to put this into motion. This only scratching surface of optimization in genshin. Elemental reactions, artifacts farming and many more. Things are quite complicated maybe approaching them with numerical methods is better option. Wast majority of calculation were done using sympy. Script can be found on my gitlab CLICK HERE