Question: how to calculate variance from probability?
Answer: square each value and multiply by its probability. sum them up and we get Σx2p. then subtract the square of the Expected Value μ