(づ•ᴥ•)づ┬─┬

Notes on math and machine learning.

Quadratic forms of standard normal variables and estimates of trace

I should have known this fact! If you have u~N(0,I) and some matrix A, then E[uTAu]=trace(A).

The corresponding estimator of the trace is called the Girard–Hutchinson estimator.