trend-analysis

Detect long-term trends in time-series data using linear regression, Sen's slope, and Mann-Kendall tests.

4|Updated Feb 22, 2026
One-click install
npx skills add https://github.com/GeneralReasoning/env-skillsbench --skill trend-analysis-generalreasoning
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: trend-analysis
Source: https://github.com/GeneralReasoning/env-skillsbench/tree/main/lake-warming-attribution/environment/skills/trend-analysis
Command: npx skills add https://github.com/GeneralReasoning/env-skillsbench --skill trend-analysis-generalreasoning

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps researchers and data scientists identify statistically significant long-term trends in time-series data using both parametric and non-parametric methods.

Core Features & Use Cases

  • Parametric Trend Detection: Linear regression to estimate slope and significance.
  • Non-Parametric Trend Detection: Sen's slope with Mann-Kendall test for robustness to outliers.
  • Use Case: Analyze environmental time series (e.g., temperature, precipitation) to determine if trends are present and significant.

Quick Start

Input your time-series data and run the trend analysis to obtain slope estimates and significance for long-term trends.

Frequently Asked Questions about trend-analysis

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I detect statistically significant trends in environmental time-series data?

You can detect statistically significant trends in environmental time-series data by applying linear regression alongside non-parametric Mann-Kendall tests and Sen's slope calculations. This quantifies trend strength and significance while handling basic data preprocessing automatically.

What is the best way to analyze climate data trends while handling outliers?

The best way to analyze climate data trends while handling outliers is to use non-parametric methods like Sen's slope combined with the Mann-Kendall test. These techniques provide robust trend detection without being skewed by extreme environmental measurement values.

Does this trend analysis approach work for general scientific measurements?

Yes, this trend analysis approach works for general scientific measurements. It implements parametric and non-parametric techniques to identify long-term trends, calculate slopes, and determine significance across various scientific datasets beyond just environmental data.

How do I calculate Sen's slope and p-values for a time-series dataset?

To calculate Sen's slope and p-values for a time-series dataset, you input your time-series data into a trend analysis process that implements the Mann-Kendall test. It outputs the Sen's slope estimate, p-values, and a trend classification.

When should I use linear regression instead of the Mann-Kendall test for trend detection?

Use linear regression for trend detection when your data meets parametric assumptions and you need a direct slope estimate. Use the Mann-Kendall test instead when your data has outliers or non-normal distributions, requiring non-parametric robustness.

Why does my time-series trend analysis need basic data preprocessing?

Your time-series trend analysis needs basic data preprocessing to format measurements correctly before applying linear regression or the Mann-Kendall test. Proper preprocessing ensures accurate slope estimation and valid p-value calculation for long-term trends.