What's the standard (or a cool non-standard) way to compute the expected value of a matrix, e.g., a covariance matrix? Using this code:
restart; with(LinearAlgebra): e1 := Statistics:-RandomVariable(Normal(0, sigma)); L := [seq(e1*cos(pi*t), t = 1 .. 3)]; convert(L, Matrix); Transpose(convert(L, Matrix)); M := Multiply(%, %%); S := map(Statistics:-Mean, M)
how do I simplify S to the matrix of +/- one's and factor out sigma^2 outside the matrix? Thanks.

Pi
The constant 3.14... is Pi, not pi. As for taking out the factor sigma^2, you could try factrix in my Maple Advisor Database
www.math.ubc.ca/~israel/advisor
doh! I had this line close
Your advisor resourse is great, thank you!