mean of a matrix

May 13 2009 by Scimann 496
Maple

0

0


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. 

 

 
Loading Comments & Answers

You must be log into your MaplePrimes account in order to post a comment. If you don't have an account, you can create an account here.

     

Forgot Your Password? Create an Account