Function of a random variable

  • Consider operations on a random variable is X
    • this shifts/scales X
      • Assuming that X has a mean and varince
    • Let c be a constant in this operation
    • Addition and subtraction
      • we define this new random varible by adding c:
      • mean and varince of Y becomes
        • the variance does not change
    • Multiplication and division
      • we define the random varible as
      • mean and variance of Y becomes
        • mean is shifted by c
        • variance is scaled by c aswell
          • variance scales with X by c

Linear Functions of random varibles

  • Different cases when the random variables are not independent

    • consider being not independent
        • since mean is additive we know that
        • However since its variance and the formula is the square along the square product
            • and since we know that

General Linear function for Dependent random variables

  • Generally we have n random variables

    • X is actually vectors or column matrix with x values
    • this gives us data for all the data points
    • each X has its own mean and variance
    • Consider we have n+1 constants c
      • The Mean is additive so its just the same as before where its scaled by c
      • However we must consider covariance
        • where i < j
        • general variance becomes