Install any skill in seconds. Free to start, no credit card required.
Get Started Free →sickn33/statsmodels
Statsmodels is Python's premier library for statistical modeling, providing tools for estimation, inference, and diagnostics across a wide range of statistical methods.
Passed 19 of 22 test cases with the skill, and 17 of 22 without it.
3 fixed16 passed either way2 still failing1 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 3 test cases the skill fixed. Same model, same prompt, with and without the skill.
I have a target array 'y' and a feature matrix 'X_data'. Write the Python code to fit a standard linear regression model using the array API. Ensure the model includes an intercept term.
| Checked | Without skill | With skill |
|---|---|---|
| Invokes the add_constant function from the statsmodels API on the feature matrix | Missed | Passed |
The instructions your model reads when the skill loads.
Statsmodels 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.
This skill should be used when:
import statsmodels.api as sm
import numpy as np
import pandas as pd
# Prepare data - ALWAYS add constant for intercept
X = sm.add_constant(X_data)
# Fit OLS model
model = sm.OLS(y, X)
results = model.fit()
# View comprehensive results
print(results.summary())
# Key results
test cases passed, vs 17 / 22 without
Published skills whose descriptions closely match this one, with their headline benchmark lift.
More skills from the same source and nearby in the registry, with their headline benchmark lift.