You are here: Project Scarlet » Probability and Distributions » Categorical Discrete Distribution » Variance
Categorical Distributions
You are given a discrete random variable named X. Its sample space is S = {0, 1, 2, 3, 4}. The probability mass function for X is:
xi | 0 | 1 | 2 | 3 | 4 |
P[X = xi] | 0.23 | 0.13 | 0.15 | 0.26 | 0.23 |
For those who like pictures, here is a graphic of the probability mass function:
With this information, calculate the variance of the random variable X, σ² or V[X].
In the box below, please enter the variance of the random variable given above, then click on the “Check your answer!” button. Please round your answer to the ten-thousandths place.
Show Formula
Show Solution
Show the R Code
Show the Excel Code
© Ole J. Forsberg, Ph.D. 2024. All rights reserved. | . | |