Consider five consecutive integers, for example: 1, 2, 3, 4, 5.
The random variable X represents the absolute difference between any two randomly chosen integers from this set.
Possible absolute differences between any two chosen numbers are:
All possible differences and their probabilities are determined by counting occurrences.
After computing the probability distribution of X, the expected value (mean) is found to be:
E(X) = 2
Using the variance formula:
Var(X) = E(X²) - (E(X))²
After calculations, the variance of X is determined to be:
Var(X) = 1