I am solving a problem from 17th Kolmogorov competition.
Let $X_1,X_2,\dots,X_{50}$ be IID discrete random variables s.t. the probability of $X_1=-1$ equals $\frac 1 9$, the probability of $X_1=- \frac 2 5$ equals $\frac 4 9$, and the probability of $X_1= \frac 1 5$ equals $\frac 4 9$. What is the probability of $X_1+X_2+\cdots +X_{50}=-17$?
Here is the straightforward approach with Mathematica 13.2 on Windows 10.
data = {-1, -2/5, 1/5};weights = {1, 4, 4};
distr=EmpiricalDistribution[weights->data];
Probability[Sum[x[j], {j, 1, 50}] == -17,
Table[x[j] \[Distributed] distr, {j, 1, 50}]]
There are many many variants for Sum[x[j], {j, 1, 50}]
, so the execution of
the latest command takes forever.
How can I calculate this probability?