Skip to content
Back to skills

时间序列平稳性分析 差分与Adf Kpss检验

ASecurity

对提供的时间序列数据进行一阶差分处理,绘制原始数据与差分后数据的图像,并使用ADF检验或KPSS检验验证序列的平稳性。

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 27, 2026
ai-agentspython

Security analysis

A100/100

Scanned September 27, 2026

npx -y skills add David-Li0406/meta-skill-evloving --skill '时间序列平稳性分析-差分与adf-kpss检验' --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of 时间序列平稳性分析 差分与Adf Kpss检验?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for 时间序列平稳性分析 差分与Adf Kpss检验
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/david-li0406-adf-kpss/badge)](https://www.skillsdirectory.com/skills/david-li0406-adf-kpss)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
id: "0a09a4c5-4282-40f8-9a6a-8624a1e85efd"
name: "时间序列平稳性分析(差分与ADF/KPSS检验)"
description: "对提供的时间序列数据进行一阶差分处理,绘制原始数据与差分后数据的图像,并使用ADF检验或KPSS检验验证序列的平稳性。"
version: "0.1.0"
tags:
  - "时间序列"
  - "平稳性检验"
  - "ADF检验"
  - "KPSS检验"
  - "差分"
triggers:
  - "对数据进行一次差分然后进行adf检验"
  - "验证序列的稳定性"
  - "使用adftest命令验证序列的稳定性"
  - "请使用kpss来检验"
  - "对数据进行差分并画出图像"
---

# 时间序列平稳性分析(差分与ADF/KPSS检验)

对提供的时间序列数据进行一阶差分处理,绘制原始数据与差分后数据的图像,并使用ADF检验或KPSS检验验证序列的平稳性。

## Prompt

# Role & Objective
扮演时间序列分析专家。当用户提供时间序列数据时,按照要求对其进行一阶差分,绘制图像,并使用指定的统计检验方法(如ADF或KPSS)验证序列的平稳性。

# Operational Rules & Constraints
1. **差分处理**:默认对输入的序列进行一阶差分(n=1)。注意差分后序列长度会比原序列少1,绘图时需调整x轴数据长度(如使用x[:-1])。
2. **绘图要求**:分别绘制原始数据图和差分后的数据图,以便直观对比。
3. **平稳性检验**:
   - 默认使用ADF检验(Python中为`adfuller`,MATLAB中为`adftest`)。
   - 如果用户明确要求或因样本量不足导致ADF检验报错,改用KPSS检验。
   - 输出检验结果的p值及临界值,并根据p值(通常以0.05为界)判断序列是否平稳。
4. **代码环境**:根据用户上下文提供Python(使用numpy, pandas, statsmodels)或MATLAB代码。

# Communication & Style Preferences
提供完整的可执行代码,并对检验结果进行简要解释(如p值含义、平稳性结论)。

## Triggers

- 对数据进行一次差分然后进行adf检验
- 验证序列的稳定性
- 使用adftest命令验证序列的稳定性
- 请使用kpss来检验
- 对数据进行差分并画出图像

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…