{"id":17687803,"url":"https://github.com/gituser12981u2/economic-tensor-pca-modeling--etpca","last_synced_at":"2025-03-30T21:22:01.840Z","repository":{"id":226800127,"uuid":"737403596","full_name":"gituser12981u2/Economic-Tensor-PCA-Modeling--ETPCA","owner":"gituser12981u2","description":"Economic analysis tool using tensor PCA modeling to interpolate GNP values, integrating tensor product, PCA, and linear regression for better interpolation.","archived":false,"fork":false,"pushed_at":"2024-04-27T20:21:21.000Z","size":29,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-06T00:37:16.194Z","etag":null,"topics":["data-science","econometrics","economic-analysis","economic-research","economics-models","principal-component-analysis","python","tensor"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gituser12981u2.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-12-30T22:49:01.000Z","updated_at":"2024-06-19T05:40:14.000Z","dependencies_parsed_at":"2024-11-06T06:33:06.676Z","dependency_job_id":null,"html_url":"https://github.com/gituser12981u2/Economic-Tensor-PCA-Modeling--ETPCA","commit_stats":null,"previous_names":["gituser12981u2/economic-tensor-pca-modeling--etpca"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gituser12981u2%2FEconomic-Tensor-PCA-Modeling--ETPCA","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gituser12981u2%2FEconomic-Tensor-PCA-Modeling--ETPCA/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gituser12981u2%2FEconomic-Tensor-PCA-Modeling--ETPCA/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gituser12981u2%2FEconomic-Tensor-PCA-Modeling--ETPCA/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gituser12981u2","download_url":"https://codeload.github.com/gituser12981u2/Economic-Tensor-PCA-Modeling--ETPCA/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246380318,"owners_count":20767838,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["data-science","econometrics","economic-analysis","economic-research","economics-models","principal-component-analysis","python","tensor"],"created_at":"2024-10-24T11:23:09.051Z","updated_at":"2025-03-30T21:22:01.822Z","avatar_url":"https://github.com/gituser12981u2.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Economic Tensor PCA Modeling (ETPCA)\n\n## Overview\nEconomic Tensor PCA Modeling (ETPCA) is an analysis tool designed for economic data analysis. It employs a combination of tensor product, Principal Component Analysis (PCA), and linear regression to predict Gross National Product (GNP) values, providing a nuanced understanding of economic trends. \n\nNote: the current implementation uses CPI and DJIA, but any known metrics of the time can be substituted in at the users will, though the outcome will change and cannot promised to be as correct. Data that represents the \"economy\" at large will often return best results. \n\n## Methodology\n\n### Data Collection\n- Monthly data for DJIA (Dow Jones Industrial Average) and CPI (Consumer Price Index).\n- Yearly GNP values.\n\n### Preprocessing\n- Conversion of dates to a numerical format for regression analysis.\n- Normalization of data to ensure uniformity in scale.\n\n### Linear Model\n- Initial linear interpolation between the beginning and ending GNP values.\n- Calculation of the slope for monthly GNP estimation.\n\n### Tensor Product\n- Creation of a multidimensional array (tensor) from DJIA and CPI vectors.\n- Captures interaction effects between these two economic indicators.\n\n### Principal Component Analysis (PCA)\n- Orthogonal transformation of the tensor product.\n- Extraction of primary components, reducing dimensionality while retaining key data variations.\n\n### Linear Regression Model\n- Mapping PCA data back to a readable GNP scale.\n- Training a regression model with PCA components to predict monthly GNP values.\n\n## Economic Interpretation\n1. **Tensor Product**: Represents the interaction effect between CPI and DJIA, reflecting the \"economy\" in relation to GNP.\n2. **PCA**: Extracts underlying trends and patterns from the tensor data.\n3. **Regression Model**: Translates these trends into predicted monthly GNP values.\n\n## Running the Application\n1. Clone the repository:\n   ```bash\n   git clone https://github.com/gituser12981u2/Economic-Tensor-PCA-Modeling--ETPCA-.git\n\n2. Navigate to the 'src' directory:\n   ```\n   cd Economic-Tensor-PCA-Modeling--ETPCA-/src\n\n3. Run the main script:\n   ```\n   python main.py\n\n## Contributing\nContributions to the ETPCA project are welcome. Feel free to fork the repository, make your changes, and submit a pull request.\n\n## License\nThis project is available under the [GPL license](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgituser12981u2%2Feconomic-tensor-pca-modeling--etpca","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgituser12981u2%2Feconomic-tensor-pca-modeling--etpca","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgituser12981u2%2Feconomic-tensor-pca-modeling--etpca/lists"}