{"enrichment":{"faq":[{"a":"Statsmodels is Python's statistical modeling library that provides OLS (ordinary least squares) regression for fitting linear models with full statistical inference. Use statsmodels when you need detailed coefficient estimates, standard errors, confidence intervals, and hypothesis tests\u2014not just predictions. The library outputs publication-quality tables showing t-statistics, p-values, and model fit diagnostics automatically.","q":"What is statsmodels OLS regression and how do I use it?"},{"a":"Statsmodels includes ARIMA and SARIMAX classes for time series modeling and forecasting. You specify (p,d,q) orders for ARIMA or add seasonal components for SARIMAX. The library handles differencing, lag selection, and produces forecasts with confidence intervals. It also provides residual diagnostics to validate that your model captures temporal structure properly.","q":"How do I fit an ARIMA time series model with statsmodels?"},{"a":"Statsmodels provides rigorous diagnostic tools to test statistical assumptions: residual plots, normality tests, heteroskedasticity tests, autocorrelation tests (Durbin-Watson, Ljung-Box), and influence diagnostics. After fitting any model, access these diagnostics through the results object to verify linearity, constant variance, independence, and normality before trusting your inference.","q":"How can I check model assumptions with statsmodels?"},{"a":"Yes. Statsmodels' GLM class fits generalized linear models including logistic regression, Poisson regression for count data, negative binomial regression, and more. You specify the family (Binomial, Poisson, NegativeBinomial) and link function. Each model produces full inference: coefficients, standard errors, confidence intervals, and hypothesis tests for publication.","q":"Does statsmodels support generalized linear models and count data?"},{"a":"Statsmodels supports mixed effects models through its MixedLM class for random intercepts and slopes. For clustered standard errors without random effects, use robust covariance estimators with clustering options in OLS and GLM. This accounts for within-group correlation and produces valid inference when observations are not independent.","q":"Can statsmodels handle mixed effects and clustered data?"},{"a":"Statsmodels prioritizes statistical inference and diagnostics over prediction accuracy. It provides p-values, confidence intervals, hypothesis tests, and detailed model diagnostics\u2014essential for research and causal analysis. Scikit-learn focuses on predictive performance. Choose statsmodels when coefficients and their uncertainty are your goal; choose scikit-learn for pure prediction tasks.","q":"What makes statsmodels different from scikit-learn for regression?"}],"shadow_tags":["econometrics-toolkit","inference-focused","time-series-modeling","diagnostic-testing","coefficient-interpretation","hypothesis-testing","assumption-checking","publication-ready-output"],"summary_rewrite":"Statsmodels is Python's statistical modeling library for fitting regression, generalized linear, time series, and discrete outcome models with full inference capabilities. It delivers detailed diagnostics, residuals analysis, hypothesis tests, and publication-ready output\u2014ideal when coefficients and their uncertainty matter more than prediction alone."},"files":[{"bytes":9867,"path":"skills/statsmodels/SKILL.md","sha256":"bf67fe14237de502151a33ed62c77a4716cc096ede7f501adbeab46179774054","url":"https://skillfed.io/files/K-Dense-AI/scientific-agent-skills/statsmodels/0cd1f116/SKILL.md"}],"id":"K-Dense-AI/scientific-agent-skills/statsmodels","links":{"html":"https://skillfed.io/K-Dense-AI/scientific-agent-skills/statsmodels","md":"https://skillfed.io/K-Dense-AI/scientific-agent-skills/statsmodels.md","repo":"https://github.com/K-Dense-AI/scientific-agent-skills"},"meta":{"agents_supported":[],"first_seen":"2026-07-28","forks":3173,"language":"Python","last_updated":"2026-07-28","license":"MIT","name":"statsmodels","publisher":"K-Dense-AI","stars":31940},"relations":{"similar":[{"id":"synthetic-sciences/openscience/statsmodels"},{"id":"foryourhealth111-pixel/Vibe-Skills/statsmodels"},{"id":"zLanqing/codex-claude-academic-skills/statsmodels"},{"id":"LeonChaoX/qinyan-academic-skills/statsmodels"},{"id":"drshailesh88/integrated_content_OS/statsmodels"},{"id":"beita6969/ScienceClaw/statsmodels"},{"id":"jaechang-hits/SciAgent-Skills/statsmodels-statistical-modeling"},{"id":"tondevrel/scientific-agent-skills/statsmodels"},{"id":"DrugClaw/DrugClaw/stat-modeling-tools"},{"id":"HKUDS/Vibe-Trading/quant-statistics"}]},"slug":{"owner":"K-Dense-AI","repo":"scientific-agent-skills","skill":"statsmodels"},"version":"0cd1f116"}
