Time series analysis - Machine learning python

0 votes
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 in Machine Learning by Harsh

1 answer to this question.

0 votes

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.

Follow these steps:

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.


mod = sm.tsa.statespace.SARIMAX(y,
                                order=(1, 1, 1),
                                seasonal_order=(1, 1, 0, 12),
                                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

Related Questions In Machine Learning

0 votes
1 answer

Real-time applications of machine learning on an industrial level

Traffic Alerts (Maps) Now, Google Maps is probably THE app we use ...READ MORE

answered Nov 21, 2019 in Machine Learning by Kisley
0 votes
1 answer
0 votes
1 answer

What is semi-supervised machine learning?

Hi@Ganesh, Semi-supervised machine learning is a combination of ...READ MORE

answered Jul 19, 2020 in Machine Learning by MD
• 95,300 points
0 votes
2 answers
+1 vote
2 answers

how can i count the items in a list?

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

answered Jul 7, 2019 in Python by Neha
• 330 points

edited Jul 8, 2019 by Kalgi 2,405 views
0 votes
0 answers
0 votes
1 answer

Real world applications of Machine Learning

Few real-world applications of machine learning are  Have ...READ MORE

answered May 10, 2019 in Machine Learning by Jinu
0 votes
1 answer