statsmodels

Fit and diagnose statistical models on tabular and time series data.

74|5|Updated Dec 10, 2025
One-click install
npx skills add https://github.com/dralkh/seerai --skill statsmodels-dralkh
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: statsmodels
Source: https://github.com/dralkh/seerai/tree/main/skills/statsmodels
Command: npx skills add https://github.com/dralkh/seerai --skill statsmodels-dralkh

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps you build, diagnose, and interpret statistical models when you need reliable inference, not just predictions. It reduces the complexity of choosing the right model for continuous, binary, count, categorical, or time series data.

Core Features & Use Cases

  • Regression and Inference: Fit OLS, WLS, GLS, mixed effects, and quantile regression models with coefficient tables and confidence intervals.
  • Generalized and Discrete Models: Run GLM, logit, probit, multinomial, Poisson, negative binomial, zero-inflated, and ordinal analyses.
  • Time Series Forecasting: Use ARIMA, SARIMAX, VAR, ETS, and state space methods for forecasting and temporal analysis.
  • Diagnostics and Testing: Check residuals, heteroskedasticity, autocorrelation, normality, influence, multicollinearity, and model fit.
  • Use Case: A researcher can analyze clinical or econometric data, compare competing models, validate assumptions, and produce publication-ready statistical results from one workflow.

Quick Start

Use the statsmodels skill to fit the appropriate model to your dataset, then return the summary output, diagnostics, and a plain-English interpretation of the key coefficients and test results.

Frequently Asked Questions about statsmodels

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

FAQPage Schema
How do I run hypothesis testing and regression analysis on tabular data?

Hypothesis testing and regression analysis on tabular data are executed by fitting OLS, WLS, or GLS models with formula support, generating coefficient tables, confidence intervals, and summary outputs for statistical inference.

What's the best way to forecast time series data using ARIMA and SARIMAX models?

Forecasting time series data with ARIMA and SARIMAX models involves using state space methods and ETS to capture temporal patterns, returning prediction intervals and forecast summaries for time-ordered datasets.

Can I fit generalized linear models and Poisson regression for count data?

Generalized linear models and Poisson regression for count data are supported through GLM, negative binomial, and zero-inflated analyses, allowing you to model discrete and binary outcomes with robust standard errors.

How do I check residuals, heteroskedasticity, and autocorrelation after fitting a model?

Checking residuals, heteroskedasticity, and autocorrelation is performed through built-in diagnostics that validate model assumptions, test normality, measure influence, and detect multicollinearity in your fitted regression results.

Does this statistical modeling workflow support formula syntax and robust standard errors?

This statistical modeling workflow supports formula syntax and robust standard errors, requiring statsmodels-compatible Python environments to produce publication-ready inference, model comparison metrics, and plain-English interpretations.

When should I use quantile regression or mixed effects models instead of standard OLS?

Quantile regression or mixed effects models are used instead of standard OLS when your data violates ordinary least squares assumptions, requiring robust handling of hierarchical structures, outliers, or non-normal residual distributions.