statsmodels

Fit statistical models and run diagnostics with the statsmodels Python library.

2|Updated Feb 2, 2026
One-click install
npx skills add https://github.com/Weiwei-Mao/hydrology-skills --skill statsmodels-weiwei-mao
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: statsmodels
Source: https://github.com/Weiwei-Mao/hydrology-skills/tree/main/hydrology-skills/statsmodels
Command: npx skills add https://github.com/Weiwei-Mao/hydrology-skills --skill statsmodels-weiwei-mao

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a comprehensive suite of statistical modeling tools for fitting complex models, performing rigorous inference, and conducting detailed diagnostic checks on data.

Core Features & Use Cases

  • Model Fitting: Supports OLS, GLM, ARIMA, VAR, and many other statistical models.
  • Inference & Diagnostics: Offers robust standard errors, hypothesis testing, and detailed residual analysis.
  • Use Case: Analyze hydrological time series data to build a forecasting model using ARIMA, assess its statistical significance, and validate its assumptions with diagnostic plots and tests.

Quick Start

Use the statsmodels skill to fit an OLS regression model with y as the dependent variable and x1, x2 as independent variables.

Frequently Asked Questions about statsmodels

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

FAQPage Schema
How do I build an ARIMA model for time series forecasting in Python?

To build an ARIMA model for time series forecasting, you can use a Python library that supports fitting ARIMA and VAR models. This Skill enables time series analysis by providing tools to fit models, assess statistical significance, and validate assumptions with diagnostic tests.

What is the best way to perform rigorous statistical inference and diagnostic checks?

The best way to perform rigorous statistical inference and diagnostic checks is using a Python library designed for econometrics. This Skill offers robust standard errors, hypothesis testing, and detailed residual analysis to validate model assumptions.

Can I fit generalized linear models (GLM) and discrete choice models like Logit and Probit?

Yes, you can fit generalized linear models (GLM) and discrete choice models like Logit and Probit. This Skill supports fitting GLM, OLS, WLS, GLS, and mixed effects models, utilizing a formula API for rigorous data analysis.

Does this tool support linear regression with robust standard errors?

Yes, this tool supports linear regression with robust standard errors. It enables fitting OLS, WLS, and GLS linear models while providing robust inference and hypothesis testing to ensure rigorous data analysis.

When do I need econometrics and mixed effects models for data analysis?

You need econometrics and mixed effects models when analyzing complex data with hierarchical structures or temporal dependencies. This Skill provides a comprehensive suite of statistical modeling tools for fitting these models and conducting detailed diagnostic checks on data.