Skip to content

Glossary: Regression

Formula (formula API)

Also written: formula, smf, statsmodels.formula.api, patsy, ~

Text such as `"orders ~ ad_spend"` describing a model, with the outcome left of `~` and predictors on the right. statsmodels' formula API, imported as `smf`, reads it using the patsy package.

Where the book teaches it

Related terms

OLS (ordinary least squares)C()