https://github.com/amineouerfellii/econometron

A modular Python package for solving, simulating, and estimating economic and Timeseries models, supporting DSGE, VAR, VARIMA, and N-BEATS

https://github.com/amineouerfellii/econometron

Science Score: 26.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (12.8%) to scientific vocabulary

Keywords

data-science deep-learning dsge-models econometrics prediction projection-methods time-series
Last synced: 9 months ago · JSON representation

Repository

A modular Python package for solving, simulating, and estimating economic and Timeseries models, supporting DSGE, VAR, VARIMA, and N-BEATS

Basic Info
  • Host: GitHub
  • Owner: AmineOuerfellii
  • License: mit
  • Language: Jupyter Notebook
  • Default Branch: main
  • Homepage: http://econometron.netlify.app
  • Size: 17.9 MB
Statistics
  • Stars: 1
  • Watchers: 0
  • Forks: 0
  • Open Issues: 0
  • Releases: 1
Topics
data-science deep-learning dsge-models econometrics prediction projection-methods time-series
Created about 1 year ago · Last pushed 10 months ago
Metadata Files
Readme License

README.md

Econometron Logo

Econometron: A Python package for Econometric and Time Series Analysis

PyPI Version Python 3.10+

Introduction

Econometron is a Python library designed for econometric modeling, time series analysis, and dynamic stochastic general equilibrium (DSGE) model solving and estimation. It provides a wide range of tools for researchers, economists, and data scientists to build, estimate, and analyze complex multivariate time series models and non-linear DSGE models. With a focus on flexibility and performance, Econometron supports both classical and modern approaches, including state-of-the-art neural network-based forecasting and robust statistical methods.

Whether you're modeling economic time series, performing impulse response function (IRF) analysis, or solving non-linear DSGE models, Econometron offers a unified and efficient framework to streamline your workflow.

Key Features

Multivariate Statistical Time Series Models

  • VAR (Vector Autoregression): Model the dynamic relationships between multiple time series.
  • SVAR (Structural Vector Autoregression): Incorporate structural restrictions for causal inference and policy analysis.
  • VARMA (Vector Autoregressive Moving Average): Combine autoregressive and moving average components for enhanced flexibility.
  • VARIMA (Vector Autoregressive Integrated Moving Average): Handle non-stationary time series with differencing.

VARMA Identification

  • Echelon Form Identification: Implements the echelon form approach for identifying VARMA models, ensuring robust and unique parameter estimation in Python.

Neural Network-Based Forecasting

  • N-BEATS (Neural Basis Expansion Analysis for Time Series): A state-of-the-art deep learning model for univariate and multivariate time series forecasting.
  • N-BEATS + RevIN: Enhances N-BEATS with Reversible Instance Normalization (RevIN) for improved generalization and robustness.

State Space Models

  • Flexible framework for modeling complex dynamic systems using state space representations, suitable for both linear and non-linear systems.

Estimation Methods

  • Bayesian Estimation: Leverage Bayesian techniques for parameter estimation, incorporating prior knowledge and uncertainty quantification.
  • Maximum Likelihood Estimation (MLE): Optimize model parameters using likelihood-based methods for precise inference.

Impulse Response Functions (IRF)

  • Local Projection IRF: Compute impulse response functions using local projection methods, ideal for non-linear and robust analysis.

Non-Linear DSGE Model Solving

  • Projection Methods: Solve non-linear DSGE models using advanced numerical techniques:
    • Galerkin Method: Project solutions onto a basis of functions for accurate approximation.
    • Collocation Method: Solve at specific points to approximate the policy function.
    • Least Squares Method: Minimize residuals to find optimal solutions.

Getting Started

To use Econometron, install it via pip:

bash pip install econometron `

Example: Fitting a VAR Model

```python from econometron.Models.VectorAutoReg import VAR

Load your time series data

data = ... # Your multivariate time series data model = VAR(data=data,maxp=2,checkstationnarity=True) results = model.fit() ```

For detailed documentation, tutorials, and examples, visit the Econometron Documentation.

Why Econometron?

  • Comprehensive: Covers a wide range of econometric models, from classical VAR to cutting-edge neural network approaches.
  • Flexible: Supports both statistical and machine learning-based methods for time series analysis.
  • Robust: Implements state-of-the-art estimation and identification techniques for reliable results.
  • User-Friendly: Designed with Python's ecosystem in mind, integrating seamlessly with libraries like NumPy, Pandas, and PyTorch.

Code of Conduct

We are committed to fostering a welcoming and inclusive community. All participants are expected to:

  • Be respectful and considerate in interactions.
  • Avoid harassment or discriminatory behavior.
  • Use constructive feedback and maintain professionalism.
  • Respect the community and project’s guidelines.

Violations may result in removal from the project or community channels. Please read the full Code of Conduct for details.

Contributing

Contributions are highly valued. To contribute:

  1. Fork the repository.
  2. Create a new branch for your feature or bug fix.
  3. Implement your changes with clear, well-documented code.
  4. Run all tests to ensure stability.
  5. Submit a pull request describing your changes in detail.

For more information, see the full Contributing Guide.

License

Econometron is licensed under the MIT License. See the LICENSE file for more information.

Owner

  • Name: AmineOuerfelli
  • Login: AmineOuerfellii
  • Kind: user

GitHub Events

Total
  • Watch event: 1
  • Delete event: 1
  • Push event: 85
  • Create event: 4
Last Year
  • Watch event: 1
  • Delete event: 1
  • Push event: 85
  • Create event: 4

Packages

  • Total packages: 1
  • Total downloads:
    • pypi 100 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 3
  • Total maintainers: 1
pypi.org: econometron

A Python library for econometric modeling and multivariate time series forecasting,providing a precise and extensible framework for statistical analysis and computational simulations.

  • Versions: 3
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 100 Last month
Rankings
Dependent packages count: 9.0%
Average: 30.0%
Dependent repos count: 51.0%
Maintainers (1)
Last synced: 10 months ago

Dependencies

.github/workflows/python-package.yml actions
  • actions/checkout v4 composite
  • actions/setup-python v3 composite
econometron.egg-info/requires.txt pypi
  • matplotlib >=3.8.4
  • numpy >=1.23.5
  • pandas >=1.5.3
  • scipy >=1.13.0
  • statsmodels >=0.14.1
  • sympy >=1.14.0
setup.py pypi
  • matplotlib >=3.8.4
  • numpy >=1.23.5
  • pandas >=1.5.3
  • scipy >=1.13.0
  • statsmodels >=0.14.1
  • sympy >=1.14.0
requirements.txt pypi
  • colorama *
  • matplotlib >=3.8.4
  • numpy >=1.23.5
  • pandas >=1.5.3
  • scipy >=1.13.0
  • statsmodels >=0.14.1
  • sympy >=1.13.0
  • torch >=1.13.1