Slot Machine Standard Deviation

The “one play strategy” is when you play once with the highest amount possible, and if you win you play again — but if you do not win you try another slot machine. Standard Deviation Strategy. This is the most difficult strategy of all. In order to follow through with this strategy you need to use an advanced mathematical equation.

Jim123
Slot
Does anyone know the formula for calculating the SD of slot machine. Specifically the red white and blue example on the Wizzard of Odds website with a SD of 9.03 for 1 and 2 coins and 10.8 for 3.
Thanks in advance
JIM
Slot Machine Standard Deviation
miplet

Standard Deviation Formula

I get 10.8560991087 for three coin and 9.06179830482 for 1 or 2 coins so I might be wrong(maybe a rounding error).
First calculate the return. (.865761 for 1 coin).
Next for each line of the paytable take the pays and subtract the return and square that result. multply that number by the probiblity. Using one coin a getting Red 7, white 7, blue 7:
(2400 - .865761)^2 * 0.000004 = 23.0233
Then add up all these numbers.
Then take the squareroot. This is the Standard Deviation.