Can I know when time series analysis is used? Also can you give an example problem statement with steps on how to solve it?
Aug 2, 2019 2,596 views

## 1 answer to this question.

With machine learning and analysis, its always analyzing the data and finding out the statistics. Time series analysis is used when you need to analyze and bring out statistics and predictions using machine learning. Time series are widely used for non-stationary data, like economic, weather, stock price, and retail sales.

Select a dataset

Organize and process the data

Plot the values and visualize it

observe the kind of distribution. There are three types of distributions - Trends, Seasonal, noise

Select the best model accordingly. One of the best methods or best algorithms of all times is ARIMA(Autoregressive Integrated Moving Average)

Get the optimal set of parameters that gives the yields the best performance for the selected model.

Finally, fit the ARIMA model using the .fit() and start predicting.

example:

```mod = sm.tsa.statespace.SARIMAX(y,
order=(1, 1, 1),
seasonal_order=(1, 1, 0, 12),
enforce_stationarity=False,
enforce_invertibility=False)results = mod.fit()print(results.summary().tables[1])
```

Hope this will help.

If you need to know more, Its recommended to go for Machine Learning with Python course today.

Thank you!

answered Aug 2, 2019 by Vinod

## What are some real-time applications of Machine Learning?

Hi@akhtar, There are lots of examples of Machine ...READ MORE

## how can i randomly select items from a list?

You can also use the random library's ...READ MORE

+1 vote

## how can i count the items in a list?

Syntax :            list. count(value) Code: colors = ['red', 'green', ...READ MORE

## Can you give LassoLars python example?

Hey @Vivek, Try something like this: >>> from ...READ MORE