Skills for Real Engineers. Straight from my .agents directory.
statsmodels
Agent skill fromzLanqing/codex-claude-academic-skills
Statistical models library for Python. Use when you need specific model classes (OLS, GLM, mixed models, ARIMA) with detailed diagnostics, residuals, and inference. Best for econometrics, time series, rigorous inference with coefficient tables. For guided statistical test selection with APA reporting use statistical-analysis.
How to install statsmodels
npx skills add zLanqing/codex-claude-academic-skills# or add only this skill to Claude Code: copy the folder
scientific-toolkit-skill/references/scientific-skills/statsmodels/
# into
~/.claude/skills/statsmodels/ (all projects)
.claude/skills/statsmodels/ (one project)
1# Statsmodels: Statistical Modeling and Econometrics23## Overview45Statsmodels is Python's premier library for statistical modeling, providing tools for estimation, inference, and diagnostics across a wide range of statistical methods. Apply this skill for rigorous statistical analysis, from simple linear regression to complex time series models and econometric analyses.67## When to Use This Skill89This skill should be used when:10- Fitting regression models (OLS, WLS, GLS, quantile regression)11- Performing generalized linear modeling (logistic, Poisson, Gamma, etc.)12- Analyzing discrete outcomes (binary, multinomial, count, ordinal)13- Conducting time series analysis (ARIMA, SARIMAX, VAR, forecasting)14- Running statistical tests and diagnostics15- Testing model assumptions (heteroskedasticity, autocorrelation, normality)16- Detecting outliers and influential observations17- Comparing models (AIC/BIC, likelihood ratio tests)18- Estimating causal effects19- Producing publication-ready statistical tables and inference2021## Quick Start Guide2223### Linear Regression (OLS)2425```python26import statsmodels.api as sm27import numpy as np28import pandas as pd2930# Prepare data - ALWAYS add constant for intercept31X = sm.add_constant(X_data)3233# Fit OLS model34model = sm.OLS(y, X)35results = model.fit()3637# View comprehensive results38print(results.summary())3940# Key results41print(f"R-squared: {results.rsquared:.4f}")42print(f"Coefficients:\\n{results.params}")43print(f"P-values:\\n{results.pvalues}")44…
Excerpt shown under the repository's MIT license.
More skills in codex-claude-academic-skills
Similar skill repositories
An agentic skills framework & software development methodology that works.
Public repository for Agent Skills
Makes your AI agent think like the laziest senior dev in the room. The best code is the code you never wrote.
Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More
Production-grade engineering skills for AI coding agents.
