Purely out of curiosity, I wanted to determine the probability of winning a dice game when each set of dice is not the same. For example, Player 1 has a dice set of $[d_{20}, d_{4}]$, and Player 2 has $[d_6, d_6, d_6, d_6]$. I can get the average outcome of both sets (13 and 14, respectively), but I can't seem to figure out a way to get the exact probability of one player winning.
When I simulate this scenario in a program, the average win rate is approximately 52.5% in favor of Player 2. I was wondering if there is a way to figure out the average win rate for this scenario and if I could generalize this for any two sets of dice.
If a player throws $\ d\ $ dice, then his score $\ S\ $ is the sum of $\ d\ $ independent random variables: $$ S=\sum_{i=1}^dT_i\ , $$ where $\ T_i\ $ is the number appearing on the uppermost face of the $\ i^\text{th}\ $ die. If player $1$'s score is $\ S_1\ $, player $2$'s is $\ S_2\ $, and the difference $\ Z=$$\,S_2-S_1\ $ has probability mass function $\ \zeta:\mathbb{Z}\rightarrow[0,1]\ $ then the probability that player $2$ wins is just \begin{align} \mathbb{P}(Z>0)&=\sum_{i=1}^\infty\mathbb{P}(Z=i)\\&=\sum_{i=1}^\infty\zeta(i)\ . \end{align} Although the above sums have an upper limit of $\ \infty\ $, in fact they're only finite, because $\ \zeta\ $ has only a finite number of non-zero values.
Now the probability mass function $\ \sigma\ $ of the sum $\ X_1+X_2\ $ of two independent random variables $\ X_1,X_2\ $, with probability mass functions $\ \chi_1, \chi_2\ $ respectively, is just the convolution of $\ \chi_1\ $ and $\ \chi_2\ $: \begin{align} \sigma(j)&=\mathbb{P}(X_1+X_2=j)\\ &=\sum_{i=-\infty}^\infty\mathbb{P}(X_1=i,X_2=j-i)\\ &=\sum_{i=-\infty}^\infty\mathbb{P}(X_1=i)\,\mathbb{P}(X_2=j-i)\\ &=\sum_{i=-\infty}^\infty\chi_1(i)\,\chi_2(j-i)\\ &=(\chi_1*\chi_2)(j)\ . \end{align} The operation of convolution is associative and commutative, so the individual convolution operations in a series of convolutions $\ \chi_1*$$\,\chi_2*$$\,\dots*$$\,\chi_d\ $ can be carried out in any order.
Thus, the probability mass functions of $\ S_1\ $ and $\ S_2\ $ are just the convolutions of the probability mass functions of the summands of which they are the sum. When an $\ n$-faced fair die labelled with the numbers $\ 1,2,\dots,n\ $ is thrown, the probability mass function $\ \mu_n\ $ of the number appearing on its uppermost face is given by $$ \mu_n(i)=\cases{\frac{1}{n}&if $\ 1\le i\le n$\\ 0&if $\ i\le0\text{ or }\ n+1\le i\ $.} $$ If player $1$ throws $\ d_1\ $ dice with $\ n_1,n_2,\dots,n_{d_1}\ $ faces and player $2$ throws $\ d_2\ $ dice with $\ m_1,m_2,\dots,m_{d_2}\ $ faces, then the probability mass functions of $\ S_1\ $ and $\ S_2\ $ will be \begin{align} \sigma_1&=\mu_{n_1}*\mu_{n_2}*\dots*\mu_{n_{d_1}}\ \text{ and}\\ \sigma_2&=\mu_{m_1}*\mu_{m_2}*\dots*\mu_{m_{d_2}} \end{align} respectively. The probability mass function $\ \zeta\ $ of $\ Z=S_2-S_1\ $ will be given by $$ \zeta=\sigma_2*\sigma_1^-\ .\, $$ where $\ \sigma_1^-(i)=\sigma_1(-i)\ $ for all $\ i\in\mathbb{Z}\ $. For the specific problem posed in the question we'll have $\ \sigma_1=\mu_{20}*\mu_4\ $ and $\ \sigma_2=\mu_6*\mu_6*\mu_6*\mu_6\ $.
Thus, in principle there's nothing really very complicated in calculating the probability of each of the player's winning the game or the probability of a tie. The messiness mentioned in user2661923's answer is really just that of calculating the necessary convolutions by hand. It's not difficult to write a computer program or script to do the job.
The R statistical package incorporates several procedures for computing convolutions. Unfortunately, none that I found seems capable of directly calculating the convolution of two probability mass functions that assign positive probabilities to negative integers. With a little bit of fiddling, it would be possible to adapt gconv to do this, but since I'm not all that familiar with the R scripting language, I guessed I would probably find it easier to write a Magma script to do all the calculations. The script below calculates the probabilities of each of the two player's winning the game described in the question. If you copy and paste it into the online Magma calculator and press submit, it produces the following output:
in good agreement with the result you obtained by simulation.
You can play around with what happens when the players are given different sets of dice by modifying the values of the variables
p1diceandp2dicein the first two lines.