How subhan-liaqat/google-stock-price-prediction-using-arima-model works
Main Components
• Data Source & Ingestion: Represent the external data source (Yahoo Finance API) which supplies historical stock data.
• Data Collection & Preprocessing: Show the process where the notebook retrieves the data, selects relevant columns (e.g., “Date” and “Close”), and resets the index.
• Data Visualization: Include the module that produces time series plots using matplotlib (noting the 'fivethirtyeight' style).
• Time Series Analysis: Highlight additional analysis steps such as seasonal decomposition, autocorrelation, and partial autocorrelation plotting.
• Modeling and Prediction: Emphasize the construction and evaluation of ARIMA and SARIMAX models for predictions.
• Notebook Execution Environment: Represent the Jupyter Notebook (main.ipynb) that ties everything together, allowing for iterative analysis within the Python ecosystem.
Relationships and Interactions
• From “Data Collection & Preprocessing,” indicate data flowing into both the “Data Visualization” component and the “Time Series Analysis” component.
• From “Time Series Analysis,” branch the flow into “ARIMA Modeling” and “SARIMAX Modeling,” then converge both into “Prediction Generation.”
• Finally, converge both prediction outcomes into a “Data and Predictions Visualization” module that displays a comparison graph.
Architectural Patterns and Design Principles
• Use a layered approach: the bottom layer handles data ingestion/preprocessing, the middle layer focuses on analysis (visualization and statistical modeling), and the top layer deals with predictions and output visualization.
• Incorporate a modular design perspective even within a single notebook; each section is a “module” that performs a self-contained task.
Relevant Technologies and Their Roles
• Python & Jupyter Notebook: The entire workflow is executed in an interactive environment.
• External Libraries:
• pandas: Data manipulation and cleaning.
• yfinance: Data collection from Yahoo Finance.
• matplotlib: Data visualization.
• statsmodels: Time series decomposition, ARIMA, SARIMAX modeling.
• datetime: Handling date-time data.