Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stephanielees/clustercpi_president
time series clustering for Consumer Price Index series that has been sliced based on the US presidents
https://github.com/stephanielees/clustercpi_president
Last synced: 17 days ago
JSON representation
time series clustering for Consumer Price Index series that has been sliced based on the US presidents
- Host: GitHub
- URL: https://github.com/stephanielees/clustercpi_president
- Owner: stephanielees
- Created: 2024-03-27T11:05:52.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-03-28T14:00:05.000Z (10 months ago)
- Last Synced: 2024-11-08T15:12:39.285Z (2 months ago)
- Language: Python
- Size: 17.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# clusterCPI_president
time series clustering for Consumer Price Index (CPI) series that has been sliced based on the US presidents## Datasets
`usa_inflation_series_bls.xlsx` is the CPI data. The data is obtained from [The Bureau of Labor Statistics](bls.gov). The series starts from January 1913 to January 2024, but I segmented it using the USA presidents' term. Thus, we have 19 time series in our dataset. This dataset has unequal lengths of series since the duration of each presidency may vary.The dataset `us-presidents.csv` is used to get the starting term of the presidents.
The video for `USAinflation_tslearn` is [here](https://youtu.be/WcnTyKP55Z8). This video talks about using agglomerative clustering for clustering CPI. The input for a clustering algorithm is a distance matrix, and the details of it is discussed in [here](https://youtu.be/OAS6ttB7u-Y). The code for that video is `ddtw_tslearn`.