Statistical errors in measurement of coherence functions and input/output quantities