Calculate the expected value (mean) of a random variable based on its probability distribution.
Value (x) | Probability P(X = x) | Actions |
---|---|---|
For a discrete random variable, the expected value is calculated as:
Where:
The variance is calculated as:
The standard deviation is the square root of the variance: