Explain the use of time series forecasting in relation to market analysis and give an example to illustrate your answer

Explain the use of time series forecasting in relation to market analysis and give an example to illustrate your answer.