Expectation and Variance of Linear Transformations of Discrete Random Variables