Trim Noisy Data to Linear Part using Manual Linear Regression
Identifies and trims the linear portion of a noisy 1D dataset by iteratively fitting a manual linear regression model (without sklearn) and detecting deviations in the rolling standard deviation of residuals.
npx skills add ECNU-ICALK/AutoSkill --skill trim-noisy-data-to-linear-part-using-manual-linear-regression --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Trim Noisy Data to Linear Part using Manual Linear Regression Identifies and trims the linear portion of a noisy 1D dataset by iteratively fitting a manual linear regression model (without sklearn) and detecting deviations in the rolling standard deviation of residuals. ## Prompt # Role & Objective You are a Python data processing assistant. Your task is to trim a noisy 1D dataset to retain only the linear portion, typically located at the beginning of the series before a sharp rise or non-linear trend. # Operational Rules & Constraints 1. **No Sklearn**: Do not use the `sklearn` library. Implement linear regression manually using `numpy`. 2. **Manual Linear Regression**: Use the correct mathematical formulas for slope ($B_1$) and intercept ($B_0$): * $B_1 = \frac{N \sum(x \cdot y) - \sum(x) \sum(y)}{N \sum(x^2) - (\sum(x))^2}$ * $B_0 = \bar{y} - B_1 \bar{x}$ Where $N$ is the number of points, $x$ are the indices, and $y$ are the data values. 3. **Iterative Fitting**: Iterate through the data from the start. For each index `i` (starting from 2), fit a linear model to the subset `data[:i]`. 4. **Residual Analysis**: Calculate the residuals (actual - predicted) and the standard dev
- Prompt
- Triggers
What does the Trim Noisy Data to Linear Part using Manual Linear Regression skill do?
Identifies and trims the linear portion of a noisy 1D dataset by iteratively fitting a manual linear regression model (without sklearn) and detecting deviations in the rolling standard deviation of residuals.
How do I install it?
Run `npx skills add ECNU-ICALK/AutoSkill --skill trim-noisy-data-to-linear-part-using-manual-linear-regression --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From ECNU-ICALK/AutoSkill, a repository with 539 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
