Skip to content

AthulyaSG/Crop_Production_Time_Series_Analysis-ARIMA

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 

Repository files navigation

Rice Production Forecast Using ARIMA Model

Introduction

Plotting Rolling Statistics

  • To understand trends and patterns [upward or downward trend]
  • To detect changes in variance [shift in the underlying process (depending on SD changes)]
  • To assess stationarity [statistical properties do not change over time]
  • To improve forecasting accuracy [smooth out the data]

image

Augmented Dickey-Fuller (ADF) test

  • To check whether the time series is stationary or not

image

Coupling AD-Fuller check with MA and moving SD

  • To identify the trend and volatility of the data

    image

Data Transformation

Logarithmic Transformation

  • To stabilize the variance of the data
  • To convert multiplicative relationships into additive relationships
  • To make the data more normally distributed

image

Removing Trend With Moving Average

  • To identify seasonal patterns
  • To stabilize the variance of the data
  • To make the time series stationary

image

Exponential Decay Transformation

  • To stabilize the variance of the data
  • To model and analyze the data using traditional time series techniques

image

Time Shift Transformation

  • To compare and analyze data at different lags
  • To identify the time delay between the two variables
  • To better understand the relationship between them

image

Data Visualization

Line Chart

  • To visualize crop prodction from 1990 to 2020

image

Histogram

  • To find the frequency

image

Decompose

  • To separate a time series into trend, seasonality, and residual (or noise)

image

Auto Correlation Function and Partial Auto Correlation

  • ACF: the correlation of the time series with its past values over different lags
  • PACF: the correlation of the time series with its past values over different lags, but without the influence of other lags

image

Auto Regression (AR) Model

  • Uses past values of a variable to predict its future values
  • Parameters
    • p, the number of lagged values (order of autoregression)
    • q, the number of past errors q (order of moving average)
    • d, the number of times the time series is differenced to make it stationary (order of differencing)

image

Moving Average Model

  • Used to identify trends and patterns in data
  • Used to make predictions about future trends

image

ARIMA (Auto Regression Integrated Moving Average)

  • Used for time series analysis and forecasting 

image

Model Performance

Mean Square Errors

  • To compare the predictions of the model against the actual data
  • Calculated as the average of the squared forecast error values

image

Prediction and Reverse Transformation

  • Prediction: the process of using a model to make an educated guess about an outcome or result
  • Reverse transformation: the process of converting a transformed value back to its original form

image

Convert to Cumulative

  • To transform the data so that each data point represents the cumulative sum of the previous data points

image

Inverse of Log is Exp

  • To transform a logarithmic transformation back to its original scale

    image

Forecast

  • To visualize the forecasted values of an ARIMA model

image

image

Conclusion

  • By implementing ARIMA Model predictive values are almost accurate to the actual outcomes
  • Though the prediction from ARIMA model nearly is accurate, if there is a major breakdown in climatic conditions this model can not predict the accurate values

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published