linear functions of random variables