--- title: ols_regression description: Learn how to perform OLS regression using statsmodels in Python. This documentation explains the parameters required and the object returned. keywords: - OLS regression - statsmodels - perform OLS regression - data - target column - exogenous variables - model - results objects --- import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; Perform OLS regression. This returns the model and results objects from statsmodels. Parameters ---------- data: List[Data] Input dataset. y_column: str Target column. x_columns: str List of columns to use as exogenous variables. Returns ------- OBBject[Dict] OBBject with the results being model and results objects. ```python wordwrap ``` --- ## Parameters This function does not take standardized parameters. --- ## Returns This function does not return a standardized model ---