linear-regression
Skill0 starsChanged 5 months agoMITView on GitHub
Fit a linear regression (OLS) on tabular data and produce a rigorous report — coefficient table with confidence intervals, standardized betas, plain-English interpretation of each coefficient (transform-aware), fit statistics, and a standalone HTML report. Use this skill whenever the user wants to model a continuous outcome from one or more predictors, asks to "fit a regression" or "run OLS" or "model Y from X", or hands over tabular data with a continuous target. Outputs are both a structured JSON (LinearRegressionReport) and a self-contained HTML deliverable. Pair this skill with the diagnostics skill to check assumptions and identify influential observations.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- muralidharsoth-tech/andrew-ng-ml-claude-skillstheir own version, first seen Oct 15, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- muralidharsoth-tech/andrew-ng-ml-claude-skills★ 40same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository5 other files it gives its agents.
- diagnosticsSkill
- logistic-regressionSkill
- model-comparisonSkill
- pre-analysisSkill
- regularized-regressionSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 47
Read the headline field aloud first, then walk through the top 2-3 interpretation facts ordered by absolute coefficient size, attaching …
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
linear-regression
Fits an OLS linear regression with statsmodels, produces a LinearRegressionReport JSON validating against the pack schema, and renders a standalone HTML report.
When this skill fires
- User wants to fit a linear regression on tabular data
- User has identified a continuous target and one or more predictors
- User asks for OLS, multiple regression, or "model Y from X"
- A previous skill (e.g. pre-analysis) recommended linear regression
Inputs
- A CSV or Parquet file with the data
- The target column name (must be numeric)
- A list of predictor column names (numeric or categorical — categoricals are one-hot encoded with the first level dropped)
Optional:
--log-targetto fit on log(target) — useful for skewed positive targets--robust-se {HC0|HC1|HC2|HC3}for heteroscedasticity-robust standard errors--standardizeto also report standardized β coefficients
How to invoke
uv run python linear-regression/scripts/fit.py \
--data path/to/data.csv \
--target price \
--features sqft,bedrooms,bathrooms,neighborhood \
--output results/Outputs results/report.json (LinearRegressionReport) and results/report.html.
Verbalising the output
The interpretations field contains a list of InterpretationFact objects. Each has:
fact— the canonical claimconfidence— high/medium/low based on p-value and CI widthcaveats— list of qualifiers ("ceteris paribus", "not causal", scale notes)
Read the headline field aloud first, then walk through the top 2-3 interpretation facts ordered by absolute coefficient size, attaching caveats appropriate to the user's apparent sophistication. Do not invent statistics; only verbalise what's in the report.
Diagnostics
This skill performs the fit — it does not run the full assumption battery. After fitting, recommend the user run the diagnostics skill on the fitted model:
uv run python diagnostics/scripts/diagnose.py --fit-report results/report.json --data path/to/data.csv --output results/Reference files
references/interpretation.md— when each interpretation_type applies and how to phrase itreferences/robust_se.md— when to use each HC variant
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

