About 83 results
Open links in new tab
  1. confidence and prediction intervals with StatsModels

    Jul 10, 2013 · I do this linear regression with StatsModels: import numpy as np import statsmodels.api as sm from statsmodels.sandbox.regression.predstd import wls_prediction_std n = 100 x = …

  2. ImportError: No module named statsmodels - Stack Overflow

    Aug 3, 2012 · great answer. but why pip3 install statsmodels installs the module but then inside python3 it cannot be imported? I only managed to solve this problem using python 3-m pip install statsmodels .

  3. How to retrieve model estimates from statsmodels?

    How to retrieve model estimates from statsmodels? Ask Question Asked 8 years, 1 month ago Modified 5 years, 7 months ago

  4. Using categorical variables in statsmodels OLS class

    Apr 18, 2019 · I want to use statsmodels OLS class to create a multiple regression model. Consider the following dataset: import statsmodels.api as sm import pandas as pd import numpy as np dict = …

  5. python - How to choose the correct arguments of statsmodels STL ...

    Feb 5, 2021 · If you have set a frequency in your index, statsmodels will inherit this frequency and automatically use this to determine a period. It makes use of the freq_to_period method internally, …

  6. How to plot statsmodels linear regression (OLS) cleanly

    Statsmodels has a variety of methods for plotting regression (a few more details about them here) but none of them seem to be the super simple "just plot the regression line on top of your data" -- plot_fit …

  7. How to predict new values using statsmodels.formula.api (python)

    Aug 15, 2016 · How to predict new values using statsmodels.formula.api (python) Ask Question Asked 9 years, 6 months ago Modified 4 years, 8 months ago

  8. python - statsmodels add_constant for OLS intercept, what is this ...

    Dec 31, 2016 · statsmodels ' sm.add_constant is the same as the parameter fit_intercept in scikit-learn 's LinearRegression(). If you don't do sm.add_constant or if you do …

  9. How to extract the regression coefficient from statsmodels.api?

    Nov 20, 2017 · Cribbing from this answer Converting statsmodels summary object to Pandas Dataframe, it seems that the result.summary () is a set of tables, which you can export as html and then use …

  10. Statsmodels.api.tsa.seasonal_decompose plot figsize

    Dec 16, 2021 · Statsmodels.api.tsa.seasonal_decompose plot figsize Ask Question Asked 4 years, 2 months ago Modified 4 years, 2 months ago