Logo Lanfrica

Bxsaya/kenya-inflation-analysis

Domaine:

socioeconomic

Type de record:

software
Créateur:
Bxs
Hôte:
# Kenya Inflation Analysis Dashboard ## Overview This project provides an interactive dashboard for analyzing and forecasting Kenya's inflation rates using ARIMA, Prophet, and LSTM time series models. The dashboard is built with Streamlit and allows users to upload their own inflation data, view exploratory data analysis (EDA), and compare forecasts from different models. ## Features - **CSV Upload:** Easily upload your own inflation data. - **Data Preprocessing:** Automatic cleaning and validation of input data. - **Exploratory Data Analysis:** Visualize historical trends, summary statistics, and autocorrelation plots. - **Forecasting:** Generate future inflation forecasts using ARIMA, Prophet, and LSTM models. - **Forecast Comparison:** Interactive plots to compare model predictions. - **Configurable Models:** Easily adjust model parameters via `src/model_config.py`. ## Project Structure ``` kenya-inflation-analysis/ ├── src/ │ ├── streamlit_app.py # Main Streamlit dashboard │ ├── preprocess.py # Data cleaning and validation │ ├── arima_forecast.py # ARIMA forecasting logic │ ├── prophet_forecast.py # Prophet forecasting logic │ ├── lstm_forecast.py # LSTM forecasting logic │ ├── eda.py # EDA plots and statistics │ ├── visualize.py # Visualization utilities │ ├── model_config.py # Model parameters and settings ├── README.md # Project documentation ``` ## Getting Started ### Prerequisites - Python 3.8+ - pip ### Installation 1. **Clone the repository:** ```bash git clone github.com cd kenya-inflation-analysis ``` 2. **Install dependencies:** ```bash pip install -r requirements.txt ``` ### Running the Dashboard ```bash streamlit run src/streamlit_app.py ``` Open your browser and navigate to the provided local URL to interact with the dashboard. ## Usage 1. **Upload Data:** Click "Upload CSV" and se …