Explain how error measures can help to optimize moving averages, weighted moving

Explain how error measures can help to optimize moving averages, weighted moving averages, and exponential smoothing methods.