Individual skill
evo-macro-cycle-correlation
Deflates nominal series to real values using CPI, applies log transformation and Hodrick-Prescott filter to extract cyclical components, and computes Pearson correlation between two cyclical series.
tasks-evolved/econ-detrending-correlation/environment/skills/evo-macro-cycle-correlation/SKILL.md
Source commit 84ca182da055fafb6453dcec4a6defdbbfd987c1
What was checked
- Matches the observed repository HEAD
- Yes
- Scanner rules are current
- Yes
- Repository scan complete
- No
- Skill scan complete
- No
- Observed behavior
- Local scripts
- Last checked
- Nov 6, 2026
These are observations at the recorded commit, not a guarantee of safety. Review the source before running it.
Install this skill
Choose an agent in your Stack or copy a command below. Commands fetch the pinned commit and copy only this skill directory. Existing destinations are refused. Copying a command does not install anything.
An install command is unavailable: current rules, complete repository and skill scans, an eligible behavior level and a permitted license are required.
Repository context
- Repository stars (not skill ratings)
- 97
- Repository last updated
- Sep 10, 2026
- License
- Apache-2.0
Observed agent integration: No specific integration evidence. Standard SKILL.md installation does not imply verified compatibility.
- agent-skills Repository topic
- ai-agents Repository topic
- llm-agents Repository topic
- open-world Repository topic
- self-evolving-agents Repository topic
- engineering Derived category
Files and excerpt
File metadata and permitted, redacted excerpts come from the recorded scan. Source links are pinned to that commit.
Browse files
SKILL.mdcore · 2,274 bytesSKILL.mdcore · 2,274 bytesscripts/utils.pyruns · 5,437 bytes
Read excerpt
# evo-macro-cycle-correlation
Deflates nominal macroeconomic series, applies HP filter for cycle extraction, and computes Pearson correlation between cyclical components.
## Key Functions
### `deflate_nominal_to_real(nominal, cpi)`
Converts nominal to real values: Real_t = (Nominal_t / CPI_t) * 100
### `extract_hp_cycle(real_series, lamb=100)`
Applies np.log() then HP filter (statsmodels hpfilter) to extract cyclical component.
- Uses natural log (np.log, NOT np.log10)
- hpfilter returns (cycle, trend) - parameter name is `lamb`
- lamb=100 for annual data (standard)