18: Linear Operators

Author

Derek Sollberger

Published

March 6, 2023

Previously, in Math 32,
  • X is a random variable with PDF f
  • Y is a random variable with PDF g

E[X]=xf(x)dx,E[Y]=yg(y)dy

Var(X)=E[X2](E[X])2,Var(Y)=E[Y2](E[Y])2

Let a, b, and c be constants.

Linear Operators

Linear Operators

We say that L is a linear operator if

L(af(x))=aL(f(x))L(f(x)+g(x))=L(f(x))+L(g(x))

Linear Operators

Loosely translated, L is a linear operator if

  • we can factor out a scalar multiple
  • we can split the operator across a sum or difference

Calculus Review

  • Show that the derivative operator is a linear operator.
  • Show that the integral operator is a linear operator.

Proof

ddx(af(x)+bg(x))=ddxaf(x)+ddxbg(x) =addxf(x)+bddxg(x)

ddx(af(x)+bg(x))=addxf(x)+bddxg(x),

so ddx is a linear operator.

Proof

(af(x)+bg(x))dx=af(x)dx+bg(x)dx =af(x)dx+bg(x)dx

(af(x)+bg(x))dx=af(x)dx+bg(x)dx,

so is a linear operator.

Expected Value

Is the expectation operator E a linear operator?

Proof

E[aX]=axf(x)dx=axf(x)dx=aE[X]

We have shown that we can factor out a scalar multiple across the expectation operator.

Proof

E[X+c]=(x+c)f(x)dx =xf(x)dx+cf(x)dx =xf(x)dx+cf(x)dx =E[X]+c

We have shown that a horizontal shift of c units in the data also affects the expected value by c units

Proof

E[X+Y]=(x+y)f(x,y)dydx =xf(x,y)dydx+yf(x,y)dxdy =xfX(x)dx+yfY(y)dy =E[X]+E[Y]

We have shown that the expected value of a sum \ is the sum of the expected values.

Combining the above results, since

E[aX+bY]=aE[X]+bE[Y]

we have shown that the expectation operator E is a linear operator.

Also,

E[aX+bY+c]=aE[X]+bE[Y]+c

Variance

Is the variance Var(X) function a linear operator?

Counterpoint:

Recall the ``practical formula for variance’’

Var(X)=E[X2](E[X])2

and tracking the scaling factor proceeds as follows

Var(aX)=E[(aX)2](E[aX])2 =(ax)2f(x)dx(aE[X])2 =a2x2f(x)dxa2(E[X])2 =a2[x2f(x)dx(E[X])2] =a2(E[X2](E[X])2) =a2Var(X)

When factoring out a scalar from the variance function, the factor is squared.

Furthermore, since Var(aX)aVar(X), we have shown that the variance function is not a linear operator.

Counterpoint:

Recall the ``practical formula for variance’’

Var(X+c)=E[(X+c)2](E[X+c])2 =E[X2+2cX+c2](E[X]+c)2 =E[X2]+E[2cX]+E[c2](E[X])22cE[X]c2 =E[X2]+2cE[X]+c2(E[X])22cE[X]c2 =E[X2](E[X])2 =Var(X)

We have shown that Var(X+c)=Var(X). That is, variance is not affected by a horizontal shift (phase shift)!

Furthermore, since Var(X+c)Var(X)+c, we have shown that the variance function is not a linear operator.

Counterpoint:

Var(X+Y)=E[(X+Y)2](E[X+Y])2 =E[X2+2XY+Y2](E[X]+E[Y])2 =E[X2]+E[2XY]+E[Y2](E[X])2+2E[X]E[Y]+(E[Y])2 =E[X2](E[X])2+E[Y2](E[Y])2+2E[XY]2E[X]E[Y] =Var(X)+Var(Y)+2(E[XY]E[X]E[Y])

We have shown that Var(X+Y)Var(X)+Var(Y). That is, the variance of the sum is not the sum of the variances (unless …?)

Furthermore, since Var(X+Y)Var(X)+Var(Y), we have shown that the variance function is not a linear operator.

We have shown that the variance function is not a linear operator.

Next time: working with

E[XY]E[X]E[Y]

which is called the covariance!

Looking Ahead

  • due Fri., Mar. 10:

    • WHW7
    • LHW6
    • Internet Connection (survey)
  • Exam 2 will be on Mon., Apr. 10

  • no lecture on Mar. 10, Mar. 24