There is such a rule in the game "Genshin Impact": Every three materials a can be fused into one material b.
Suppose the amount of original material are a, which is the corresponding $\dfrac{b}{3}$
There are two talents to choose from:
One is double output with a 10% chance:
This is the binomial distribution,like the table
| left | center | right |
|---|---|---|
| X | $\dfrac{2b}{3}$ | $\dfrac{b}{3}$ |
| P | 10% | 90% |
$$ E_{\text{double}}(\dfrac{b}{3})=0.1\times \dfrac{2b}{3} + 0.9 \times \dfrac{b}{3} = \dfrac{11b}{30} $$
$$ Var_{\text{double}}=E(X^2)-(E(X))^2 =(\dfrac{2b}{3})^2\times 0.1+ (\dfrac{b}{3})^2\times 0.9 -(\dfrac{11b}{30})^2=\dfrac{1}{100}b^2 $$
The other is 25% chance to return part material a:
Every time a material is used, that is, $\dfrac{b}{3}$ material, there may be a 25% probability to return $\dfrac{b}{3} \times \dfrac{1}{3} $ material.
$$ E_{\text{return}}\left(\frac{b}{3}\right) = \frac{b}{3} + \frac{b}{3} \times 0.25 \times \frac{1}{3} + \ldots + \frac{b}{3} \times \left(\frac{1}{12}\right)^n = \frac{b}{3} \times (1+{\frac{1}{12}}+{\frac{1}{12}}^2+...+{\frac{1}{12}}^n) = \frac{b}{3} \times \frac{1 \times (1-{\frac{1}{12}}^n)}{1-\frac{1}{12}} $$ $$ \lim_{n\rightarrow + \infty}E_{\text{return}}=\frac{b}{3} \times \frac{1 \times (1-{\frac{1}{12}}^n)}{1-\frac{1}{12}}=\frac{4b}{11} $$
Regarding the variance, I would like to handle it like this
$$\lim_{n\rightarrow + \infty}E_{\text{return}}({\frac{1}{9}}b^2)={\frac{1}{9}}b^2 \times \frac{1 \times (1-{\frac{1}{12}}^n)}{1-\frac{1}{12}}=\frac{4b}{11}\times \frac{b}{3} =\frac{4}{33}b^2$$
However,,,,,,
$$Var_{\text{return}}(\frac{b}{3})=E(X^2)-(E(X))^2=\frac{4}{33}b^2-(\frac{4b}{11})^2=-\frac{4}{363}b^2$$
May I ask where is wrong, how to find the correct variance? Thanks for your reply and help!
I get this
$$ E_{\text{return}}\left(\frac{1}{9}b^2\right) = \sum_{i=1}^{n-1} \frac{3}{4^{i}} \times \frac{1}{9}b^2 \left(\frac{1-\left(\frac{1}{3}\right)^i}{1-\frac{1}{3}}\right)^2 $$
this is my mind map, We just need to add up the red part