Statsmodel API OLS Model Example
Here’s an example of how to load and analyze the “tips” dataset using both pandas and statsmodels libraries in Python: OLS Regression Results ============================================================================== Dep. Variable: tip R-squared: 0.457 Model: OLS Adj. R-squared: 0.454 Method: Least Squares F-statistic: 203.4 Date: Wed, 22 Feb 2023 Prob (F-statistic): 6.69e-34 Time: 22:02:24 Log-Likelihood: -350.54 No. Observations: 244 AIC: …
