{"enrichment":{"faq":[{"a":"Statsmodels provides the OLS class for ordinary least squares regression with detailed statistical inference. Import `statsmodels.api`, prepare your data with an intercept column, instantiate `OLS(y, X)`, call `.fit()`, and access the results object for coefficients, standard errors, t-statistics, p-values, and confidence intervals via `.summary()`. The results include R-squared, F-statistics, and diagnostic information for publication-quality reporting.","q":"How do I fit an OLS regression model with statsmodels?"},{"a":"Statsmodels' ARIMA class enables time series forecasting with autoregressive, integrated, and moving average components. Specify (p, d, q) parameters, fit the model with `.fit()`, and generate forecasts using `.get_forecast()` or `.fittedvalues`. Statsmodels handles differencing, lag selection diagnostics, and residual analysis to validate stationarity and model assumptions before deployment.","q":"What's the best way to fit ARIMA time series models?"},{"a":"Statsmodels' Logit class handles binary outcomes with maximum likelihood estimation. Build your model with `Logit(y, X)`, fit it, and extract marginal effects, odds ratios, and classification metrics from the results. The framework supports robust standard errors, clustering adjustments, and detailed coefficient tables suitable for econometric and epidemiological applications.","q":"How can I perform logistic regression for binary outcomes?"},{"a":"Statsmodels offers comprehensive diagnostic tools including Breusch-Pagan and White tests for heteroskedasticity, Durbin-Watson for autocorrelation, and influence statistics (leverage, Cook's distance). Access these via the results object's `.get_robustcov_results()` for robust covariance, `.resid_pearson` for standardized residuals, and plotting functions for visual assumption validation.","q":"How do I test for heteroskedasticity and validate residual diagnostics?"},{"a":"Yes. Statsmodels' GLM framework supports Poisson regression for count outcomes and NegativeBinomial for overdispersed data. Zero-inflated variants (ZeroInflatedPoisson, ZeroInflatedNegativeBinomial) model excess zeros. Fit with `.fit()`, inspect dispersion parameters, and extract marginal effects to quantify covariate impact on expected counts.","q":"Can statsmodels handle count data like Poisson and negative binomial?"},{"a":"Statsmodels reports AIC and BIC in all results summaries for model comparison. Lower values indicate better fit; use these criteria alongside likelihood ratio tests to rank competing specifications. The framework supports nested and non-nested comparisons, enabling rigorous model selection for regression, GLM, and time series applications.","q":"How do I compare models and select the best fit using information criteria?"}],"shadow_tags":["econometric-inference","time-series-forecasting","regression-diagnostics","causal-estimation","count-data-modeling","hierarchical-modeling","publication-ready-tables","robust-covariance","model-diagnostics"],"summary_rewrite":"Statsmodels delivers rigorous statistical modeling for regression, generalized linear models, time series, and discrete outcomes. Access comprehensive diagnostics, robust standard errors, influence statistics, and publication-quality inference tables. Ideal for econometrics, causal estimation, and hypothesis testing."},"files":[{"bytes":19887,"path":"backend/cli/skills/coding/statsmodels/SKILL.md","sha256":"9cedd001a473563d4ce3b3dfc173e60a609c268dd0e5f0bdde6a9889c47a82b3","url":"https://skillfed.io/files/synthetic-sciences/openscience/statsmodels/e2e36571/SKILL.md"}],"id":"synthetic-sciences/openscience/statsmodels","links":{"html":"https://skillfed.io/synthetic-sciences/openscience/statsmodels","md":"https://skillfed.io/synthetic-sciences/openscience/statsmodels.md","repo":"https://github.com/synthetic-sciences/openscience"},"meta":{"agents_supported":[],"first_seen":"2026-07-28","forks":403,"language":"TypeScript","last_updated":"2026-07-27","license":"Apache-2.0","name":"statsmodels","publisher":"synthetic-sciences","stars":2896},"relations":{"similar":[{"id":"foryourhealth111-pixel/Vibe-Skills/statsmodels"},{"id":"drshailesh88/integrated_content_OS/statsmodels"},{"id":"zLanqing/codex-claude-academic-skills/statsmodels"},{"id":"LeonChaoX/qinyan-academic-skills/statsmodels"},{"id":"beita6969/ScienceClaw/statsmodels"},{"id":"K-Dense-AI/scientific-agent-skills/statsmodels"},{"id":"jaechang-hits/SciAgent-Skills/statsmodels-statistical-modeling"},{"id":"tondevrel/scientific-agent-skills/statsmodels"},{"id":"HKUDS/Vibe-Trading/quant-statistics"},{"id":"beita6969/ScienceClaw/statsmodels-stats"}]},"slug":{"owner":"synthetic-sciences","repo":"openscience","skill":"statsmodels"},"version":"e2e36571"}
