Calculating Statistics of an Array with A Mask (Masked Array)

This is a pretty common stumbling block, unfortunately: