What is a Time Series?

Time series is a sequence of observations recorded at regular time intervals.

Depending on the frequency of observations, a time series may typically be hourly, daily, weekly, monthly, quarterly and annual. Sometimes, you might have seconds and minute-wise time series as well, like, number of clicks and user visits every minute etc.

Need of Time Series:

Time Series is needed as it is the preparatory step before you develop a forecast of the series.

Besides, time series forecasting has enormous commercial significance because stuff that is important to a business like demand and sales, number of visitors to a website, stock price etc are essentially time series data.

Importing Time Series in Python:

Import the necessary libraries:

from dateutil.parser import parse 
import matplotlib as mpl
import matplotlib.pyplot as plt
import seaborn as sns
import numpy as np
import pandas as pd

Uploading the .csv file:

Image for post

Performing the various operations on time series:

  • Time Series Indexing
  • Detrending a Time Series
  • Additive and Multiplicative Time Series
  • White Noise in Time Series
  • Auto and Partial correlation function in Time Series
  • Test for Stationarity in Time Series

#timeseries #data-science #data-analysis #internity #python

Data Science : Time Series Analysis using Python
1.20 GEEK