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