Calculate sum on basis of columns: Still the highlighted area corresponds to the expected value of X. The sum of the rightmost column is equal to 1 as it contains all possible probabilities for X. Moving to the left, each column-sum deaceases as the cumulative distribution function grows. This gives rise to the alternative formula!