---
title: "statsmodels 0.15.0 Breaking Changes on PyPI | Since.dev"
description: "What each statsmodels release removed, renamed or changed: 956 breaking changes in 3 versions on PyPI, each with its source."
canonical_url: https://since.dev/packages/pypi/statsmodels
last_updated: 2026-12-04
---

# statsmodels breaking changes

statsmodels 0.15.0 (August 27, 2026) is its newest release with breaking changes, 671 of them. The first: Randomness control standardized on rng, replacing seed and random_state in statsmodels 0.15.0. Every breaking API change we have recorded in statsmodels on PyPI: 956 breaking changes in 3 versions. Below, its 3 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `0.15.0`, released August 27, 2026. [Source repository](https://github.com/statsmodels/statsmodels)

Packages on PyPI run on Python. [Python end of life dates](https://since.dev/calendar/python.md).

- From [0.13.0](#v-0-13-0) to [0.15.0](#v-0-15-0): 817 breaking changes in 2 versions.

## statsmodels 0.15.0 breaking changes

statsmodels 0.15.0, released August 27, 2026: 671 breaking changes.

- **Renamed**  

Functions that took seed or random_state for randomness now use rng instead. Update calls that pass seed or random_state to pass rng. [github.com](https://github.com/statsmodels/statsmodels/releases/tag/v0.15.0)
- **Behavior changed**  

Functions that returned variable-length tuples now return documented NamedTuple objects. Code that unpacks a fixed number of values or depends on the tuple length may need to change. [github.com](https://github.com/statsmodels/statsmodels/releases/tag/v0.15.0)
- **Behavior changed**  

Many string-valued options now validate their input and raise a clear ValueError for invalid values, where they previously failed silently or with a confusing error. Code passing invalid option values must be corrected. [github.com](https://github.com/statsmodels/statsmodels/releases/tag/v0.15.0)
- **Behavior changed**  

Several bugs in seldom-used code paths were corrected, and some of these change the numerical results of affected models. Users of those models may see different output. [github.com](https://github.com/statsmodels/statsmodels/releases/tag/v0.15.0)
- **Configuration changed**  

The release raises the minimum supported versions of NumPy, SciPy, and pandas. Environments with older versions of these libraries must upgrade them. [github.com](https://github.com/statsmodels/statsmodels/releases/tag/v0.15.0)
- **Configuration changed**  

The package is now built with meson-python instead of setuptools. Source builds and packaging setups that depend on setuptools may need to change. [github.com](https://github.com/statsmodels/statsmodels/releases/tag/v0.15.0)
- **Signature changed** `statsmodels.api.BayesGaussMI.__init__`  

Was def \_\_init\_\_(self, data, mean_prior=None, cov_prior=None, cov_prior_df=1); now def \_\_init\_\_(self, data, mean_prior=None, cov_prior=None, cov_prior_df=1, rng=None). [pypi.org](https://pypi.org/project/statsmodels/0.15.0/)
- **Signature changed** `statsmodels.api.BinomialBayesMixedGLM.fit_map`  

Was def fit_map(self, method='BFGS', minim_opts=None, scale_fe=False); now def fit_map(self, method='BFGS', minim_opts=None, scale_fe=False, rng=None). [pypi.org](https://pypi.org/project/statsmodels/0.15.0/)
- **Signature changed** `statsmodels.api.BinomialBayesMixedGLM.fit_vb`  

Was def fit_vb(self, mean=None, sd=None, fit_method='BFGS', minim_opts=None, scale_fe=False, verbose=False); now def fit_vb(self, mean=None, sd=None, fit_method='BFGS', minim_opts=None, scale_fe=False, verbose=False, rng=None). [pypi.org](https://pypi.org/project/statsmodels/0.15.0/)
- **Signature changed** `statsmodels.api.ConditionalMNLogit.fit`  

Was def fit(self, start_params=None, method='BFGS', maxiter=100, full_output=True, disp=False, fargs=(), callback=None, retall=False, skip_hessian=False, \*\*kwargs); now def fit(self, start_params=None, method='BFGS', maxiter=100... [pypi.org](https://pypi.org/project/statsmodels/0.15.0/)
- **Signature changed** `statsmodels.api.Factor.fit`  

Was def fit(self, maxiter=50, tol=1e-08, start=None, opt_method='BFGS', opt=None, em_iter=3); now def fit(self, maxiter=50, tol=1e-08, start=None, opt_method='BFGS', opt=None, em_iter=3, rng=None). [pypi.org](https://pypi.org/project/statsmodels/0.15.0/)
- **Signature changed** `statsmodels.api.GLM.predict`  

Was def predict(self, params, exog=None, exposure=None, offset=None, which='mean', linear=None); now def predict(self, params, exog=None, exposure=None, offset=None, which='mean'). [pypi.org](https://pypi.org/project/statsmodels/0.15.0/)
- **Signature changed** `statsmodels.api.GLMGam.select_penweight_kfold`  

Was def select_penweight_kfold(self, alphas=None, cv_iterator=None, cost=None, k_folds=5, k_grid=11); now def select_penweight_kfold(self, alphas=None, cv_iterator=None, cost=None, k_folds=5, k_grid=11, rng=None). [pypi.org](https://pypi.org/project/statsmodels/0.15.0/)
- **Signature changed** `statsmodels.api.MICEData.__init__`  

Was def \_\_init\_\_(self, data, perturbation_method='gaussian', k_pmm=20, history_callback=None); now def \_\_init\_\_(self, data, perturbation_method='gaussian', k_pmm=20, history_callback=None, rng=None). [pypi.org](https://pypi.org/project/statsmodels/0.15.0/)
- **Signature changed** `statsmodels.api.MNLogit.predict`  

Was def predict(self, params, exog=None, which='mean', linear=None); now def predict(self, params, exog=None, which='mean'). [pypi.org](https://pypi.org/project/statsmodels/0.15.0/)
- **Signature changed** `statsmodels.api.NegativeBinomial.predict`  

Was def predict(self, params, exog=None, exposure=None, offset=None, which='mean', linear=None, y_values=None); now def predict(self, params, exog=None, exposure=None, offset=None, which='mean', y_values=None). [pypi.org](https://pypi.org/project/statsmodels/0.15.0/)
- **Signature changed** `statsmodels.api.Poisson.predict`  

Was def predict(self, params, exog=None, exposure=None, offset=None, which='mean', linear=None, y_values=None); now def predict(self, params, exog=None, exposure=None, offset=None, which='mean', y_values=None). [pypi.org](https://pypi.org/project/statsmodels/0.15.0/)
- **Signature changed** `statsmodels.api.PoissonBayesMixedGLM.fit_map`  

Was def fit_map(self, method='BFGS', minim_opts=None, scale_fe=False); now def fit_map(self, method='BFGS', minim_opts=None, scale_fe=False, rng=None). [pypi.org](https://pypi.org/project/statsmodels/0.15.0/)
- **Signature changed** `statsmodels.api.PoissonBayesMixedGLM.fit_vb`  

Was def fit_vb(self, mean=None, sd=None, fit_method='BFGS', minim_opts=None, scale_fe=False, verbose=False); now def fit_vb(self, mean=None, sd=None, fit_method='BFGS', minim_opts=None, scale_fe=False, verbose=False, rng=None). [pypi.org](https://pypi.org/project/statsmodels/0.15.0/)
- **Signature changed** `statsmodels.api.qqplot_2samples`  

Was def qqplot_2samples(data1, data2, xlabel=None, ylabel=None, line=None, ax=None); now def qqplot_2samples(data1, data2, xlabel=None, ylabel=None, line=None, ax=None, \*\*kwargs). [pypi.org](https://pypi.org/project/statsmodels/0.15.0/)
- **Signature changed** `statsmodels.api.RLM.fit`  

Was def fit(self, maxiter=50, tol=1e-08, scale_est='mad', init=None, cov='H1', update_scale=True, conv='dev', start_params=None); now def fit(self, maxiter=50, tol=1e-08, scale_est='mad', cov='H1', update_scale=True, conv='dev'... [pypi.org](https://pypi.org/project/statsmodels/0.15.0/)
- **Signature changed** `statsmodels.base.data.cache_readonly`  

Was cache_readonly; now class cache_readonly. [pypi.org](https://pypi.org/project/statsmodels/0.15.0/)
- **Signature changed** `statsmodels.base.distributed_estimation.LikelihoodModelResults.conf_int`  

Was def conf_int(self, alpha=0.05, cols=None); now def conf_int(self, alpha=0.05). [pypi.org](https://pypi.org/project/statsmodels/0.15.0/)
- **Signature changed** `statsmodels.base.distributed_estimation.LikelihoodModelResults.wald_test`  

Was def wald_test(self, r_matrix, cov_p=None, invcov=None, use_f=None, df_constraints=None, scalar=None); now def wald_test(self, r_matrix, cov_p=None, invcov=None, use_f=None, df_constraints=None, scalar=True). [pypi.org](https://pypi.org/project/statsmodels/0.15.0/)
- **Signature changed** `statsmodels.base.distributed_estimation.LikelihoodModelResults.wald_test_terms`  

Was def wald_test_terms(self, skip_single=False, extra_constraints=None, combine_terms=None, scalar=None); now def wald_test_terms(self, skip_single=False, extra_constraints=None, combine_terms=None, scalar=True). [pypi.org](https://pypi.org/project/statsmodels/0.15.0/)
- **Signature changed** `statsmodels.base.elastic_net.cache_readonly`  

Was cache_readonly; now class cache_readonly. [pypi.org](https://pypi.org/project/statsmodels/0.15.0/)
- **Signature changed** `statsmodels.base.elastic_net.fit_elasticnet`  

Was def fit_elasticnet(model, method='coord_descent', maxiter=100, alpha=0.0, L1_wt=1.0, start_params=None, cnvrg_tol=1e-07, zero_tol=1e-08, refit=False, check_step=True, loglike_kwds=None, score_kwds=None, hess_kwds=None); now def... [pypi.org](https://pypi.org/project/statsmodels/0.15.0/)
- **Signature changed** `statsmodels.base.model.approx_fprime`  

Was def approx_fprime(x, f, epsilon=None, args=(), kwargs={}, centered=False); now def approx_fprime(x, f, epsilon=None, args=(), kwargs=None, centered=False). [pypi.org](https://pypi.org/project/statsmodels/0.15.0/)
- **Signature changed** `statsmodels.base.model.cache_readonly`  

Was cache_readonly; now class cache_readonly. [pypi.org](https://pypi.org/project/statsmodels/0.15.0/)
- **Signature changed** `statsmodels.base.model.ResultMixin.bootstrap`  

Was def bootstrap(self, nrep=100, method='nm', disp=0, store=1); now def bootstrap(self, nrep=100, method='nm', disp=0, store=1, rng=None). [pypi.org](https://pypi.org/project/statsmodels/0.15.0/)
- **Signature changed** `statsmodels.base.tests.test_data.make_dataframe`  

Was def make_dataframe(); now def make_dataframe(generator=None). [pypi.org](https://pypi.org/project/statsmodels/0.15.0/)
- **Signature changed** `statsmodels.base.tests.test_generic_methods.CheckGenericMixin`  

Was class CheckGenericMixin; now class CheckGenericMixin(CheckGenericMixinBase). [pypi.org](https://pypi.org/project/statsmodels/0.15.0/)
- **Signature changed** `statsmodels.base.tests.test_generic_methods.TestWaldAnovaGLM.initialize`  

Was @classmethod def initialize(cls); now def initialize(self). [pypi.org](https://pypi.org/project/statsmodels/0.15.0/)
- **Signature changed** `statsmodels.base.tests.test_generic_methods.TestWaldAnovaNegBin.initialize`  

Was @classmethod def initialize(cls); now def initialize(self). [pypi.org](https://pypi.org/project/statsmodels/0.15.0/)
- **Signature changed** `statsmodels.base.tests.test_generic_methods.TestWaldAnovaNegBin1.initialize`  

Was @classmethod def initialize(cls); now def initialize(self). [pypi.org](https://pypi.org/project/statsmodels/0.15.0/)
- **Signature changed** `statsmodels.base.tests.test_generic_methods.TestWaldAnovaOLS.initialize`  

Was @classmethod def initialize(cls); now def initialize(self). [pypi.org](https://pypi.org/project/statsmodels/0.15.0/)
- **Signature changed** `statsmodels.base.tests.test_generic_methods.TestWaldAnovaOLSF.initialize`  

Was @classmethod def initialize(cls); now def initialize(self). [pypi.org](https://pypi.org/project/statsmodels/0.15.0/)
- **Signature changed** `statsmodels.base.tests.test_generic_methods.TestWaldAnovaPoisson.initialize`  

Was @classmethod def initialize(cls); now def initialize(self). [pypi.org](https://pypi.org/project/statsmodels/0.15.0/)
- **Signature changed** `statsmodels.base.tests.test_optimize.test_full_output`  

Was def test_full_output(reset_randomstate); now def test_full_output(method). [pypi.org](https://pypi.org/project/statsmodels/0.15.0/)
- **Signature changed** `statsmodels.base.tests.test_optimize.test_full_output_false`  

Was def test_full_output_false(reset_randomstate); now def test_full_output_false(method). [pypi.org](https://pypi.org/project/statsmodels/0.15.0/)
- **Signature changed** `statsmodels.base.tests.test_penalties.approx_fprime`  

Was def approx_fprime(x, f, epsilon=None, args=(), kwargs={}, centered=False); now def approx_fprime(x, f, epsilon=None, args=(), kwargs=None, centered=False). [pypi.org](https://pypi.org/project/statsmodels/0.15.0/)
- **Signature changed** `statsmodels.base.tests.test_penalties.approx_hess`  

Was approx_hess; now def approx_hess(x, f, epsilon=None, args=(), kwargs=None). [pypi.org](https://pypi.org/project/statsmodels/0.15.0/)
- **Signature changed** `statsmodels.base.transform.mad`  

Was def mad(a, c=Gaussian.ppf(3 / 4.0), axis=0, center=np.median); now def mad(a, c=GAUSSIAN_3_4, axis=0, center=np.median). [pypi.org](https://pypi.org/project/statsmodels/0.15.0/)
- **Signature changed** `statsmodels.compat.pandas.Appender`  

Was from pandas.util.\_decorators import Appender; now class Appender. [pypi.org](https://pypi.org/project/statsmodels/0.15.0/)
- **Signature changed** `statsmodels.compat.pandas.frequencies`  

Was from pandas.tseries import frequencies; now from pandas.tseries import offsets as frequencies. [pypi.org](https://pypi.org/project/statsmodels/0.15.0/)
- **Signature changed** `statsmodels.compat.pandas.is_numeric_dtype`  

Was from pandas.core.common import is_numeric_dtype; now from pandas.api.types import is_numeric_dtype. [pypi.org](https://pypi.org/project/statsmodels/0.15.0/)
- **Signature changed** `statsmodels.compat.pandas.make_dataframe`  

Was def make_dataframe(); now def make_dataframe(generator=None). [pypi.org](https://pypi.org/project/statsmodels/0.15.0/)
- **Signature changed** `statsmodels.compat.pandas.Substitution`  

Was from pandas.util.\_decorators import Substitution; now class Substitution. [pypi.org](https://pypi.org/project/statsmodels/0.15.0/)
- **Signature changed** `statsmodels.compat.pandas.testing`  

Was from pandas.util import testing; now from pandas import testing. [pypi.org](https://pypi.org/project/statsmodels/0.15.0/)
- **Signature changed** `statsmodels.discrete.conditional_models.MultinomialResults.conf_int`  

Was def conf_int(self, alpha=0.05, cols=None); now def conf_int(self, alpha=0.05). [pypi.org](https://pypi.org/project/statsmodels/0.15.0/)

And 621 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## statsmodels 0.14.0 breaking changes

statsmodels 0.14.0, released May 5, 2023: 146 breaking changes.

- **Signature changed** `statsmodels.api.__version__`  

Was \_\_version\_\_; now version. [pypi.org](https://pypi.org/project/statsmodels/0.14.0/)
- **Signature changed** `statsmodels.api.GEE.predict`  

Was def predict(self, params, exog=None, exposure=None, offset=None, linear=False); now def predict(self, params, exog=None, exposure=None, offset=None, which='mean', linear=None). [pypi.org](https://pypi.org/project/statsmodels/0.14.0/)
- **Signature changed** `statsmodels.api.GeneralizedPoisson.predict`  

Was def predict(self, params, exog=None, exposure=None, offset=None, which='mean'); now def predict(self, params, exog=None, exposure=None, offset=None, which='mean', y_values=None). [pypi.org](https://pypi.org/project/statsmodels/0.14.0/)
- **Signature changed** `statsmodels.api.Logit.__init__`  

Was def \_\_init\_\_(self, endog, exog, check_rank=True, \*\*kwargs); now def \_\_init\_\_(self, endog, exog, offset=None, check_rank=True, \*\*kwargs). [pypi.org](https://pypi.org/project/statsmodels/0.14.0/)
- **Signature changed** `statsmodels.api.Logit.predict`  

Was def predict(self, params, exog=None, linear=False); now def predict(self, params, exog=None, which='mean', linear=None, offset=None). [pypi.org](https://pypi.org/project/statsmodels/0.14.0/)
- **Signature changed** `statsmodels.api.MANOVA.mv_test`  

Was def mv_test(self, hypotheses=None); now def mv_test(self, hypotheses=None, skip_intercept_test=False). [pypi.org](https://pypi.org/project/statsmodels/0.14.0/)
- **Signature changed** `statsmodels.api.MNLogit.predict`  

Was def predict(self, params, exog=None, linear=False); now def predict(self, params, exog=None, which='mean', linear=None). [pypi.org](https://pypi.org/project/statsmodels/0.14.0/)
- **Signature changed** `statsmodels.api.NegativeBinomial.predict`  

Was def predict(self, params, exog=None, exposure=None, offset=None, linear=False); now def predict(self, params, exog=None, exposure=None, offset=None, which='mean', linear=None, y_values=None). [pypi.org](https://pypi.org/project/statsmodels/0.14.0/)
- **Signature changed** `statsmodels.api.NegativeBinomialP.predict`  

Was def predict(self, params, exog=None, exposure=None, offset=None, which='mean'); now def predict(self, params, exog=None, exposure=None, offset=None, which='mean', y_values=None). [pypi.org](https://pypi.org/project/statsmodels/0.14.0/)
- **Signature changed** `statsmodels.api.Poisson.family`  

Was family; now def family(self). [pypi.org](https://pypi.org/project/statsmodels/0.14.0/)

And 136 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## statsmodels 0.13.0 breaking changes

statsmodels 0.13.0, released October 1, 2021: 139 breaking changes.

- **Signature changed** `statsmodels.api.GEE.get_distribution`  

Was def get_distribution(self, params, scale=1.0, exog=None, exposure=None, offset=None); now def get_distribution(self, params, scale=None, exog=None, exposure=None, offset=None, var_weights=1.0, n_trials=1.0). [pypi.org](https://pypi.org/project/statsmodels/0.13.0/)
- **Signature changed** `statsmodels.api.GEE.qic`  

Was def qic(self, params, scale, cov_params); now def qic(self, params, scale, cov_params, n_step=1000). [pypi.org](https://pypi.org/project/statsmodels/0.13.0/)
- **Signature changed** `statsmodels.api.GeneralizedPoisson.fit`  

Was def fit(self, start_params=None, method='bfgs', maxiter=35, full_output=1, disp=1, callback=None, use_transparams=False, cov_type='nonrobust', cov_kwds=None, use_t=None, \*\*kwargs); now def fit(self, start_params=None, method='bfgs'... [pypi.org](https://pypi.org/project/statsmodels/0.13.0/)
- **Signature changed** `statsmodels.api.NegativeBinomial.fit`  

Was def fit(self, start_params=None, method='bfgs', maxiter=35, full_output=1, disp=1, callback=None, cov_type='nonrobust', cov_kwds=None, use_t=None, \*\*kwargs); now def fit(self, start_params=None, method='bfgs', maxiter=35... [pypi.org](https://pypi.org/project/statsmodels/0.13.0/)
- **Signature changed** `statsmodels.api.NegativeBinomialP.fit`  

Was def fit(self, start_params=None, method='bfgs', maxiter=35, full_output=1, disp=1, callback=None, use_transparams=False, cov_type='nonrobust', cov_kwds=None, use_t=None, \*\*kwargs); now def fit(self, start_params=None, method='bfgs'... [pypi.org](https://pypi.org/project/statsmodels/0.13.0/)
- **Signature changed** `statsmodels.api.PCA.__init__`  

Was def \_\_init\_\_(self, data, ncomp=None, standardize=True, demean=True, normalize=True, gls=False, weights=None, method='svd', missing=None, tol=5e-08, max_iter=1000, tol_em=5e-08, max_em_iter=100); now def \_\_init\_\_(self, data, ncomp=None... [pypi.org](https://pypi.org/project/statsmodels/0.13.0/)
- **Signature changed** `statsmodels.api.ProbPlot.qqplot`  

Was def qqplot(self, xlabel=None, ylabel=None, line=None, other=None, ax=None, \*\*plotkwargs); now def qqplot(self, xlabel=None, ylabel=None, line=None, other=None, ax=None, swap: bool = False, \*\*plotkwargs). [pypi.org](https://pypi.org/project/statsmodels/0.13.0/)
- **Signature changed** `statsmodels.base.distributed_estimation.LikelihoodModelResults.f_test`  

Was def f_test(self, r_matrix, cov_p=None, scale=1.0, invcov=None); now def f_test(self, r_matrix, cov_p=None, invcov=None). [pypi.org](https://pypi.org/project/statsmodels/0.13.0/)
- **Signature changed** `statsmodels.base.distributed_estimation.LikelihoodModelResults.t_test`  

Was def t_test(self, r_matrix, cov_p=None, scale=None, use_t=None); now def t_test(self, r_matrix, cov_p=None, use_t=None). [pypi.org](https://pypi.org/project/statsmodels/0.13.0/)
- **Signature changed** `statsmodels.base.distributed_estimation.LikelihoodModelResults.wald_test`  

Was def wald_test(self, r_matrix, cov_p=None, scale=1.0, invcov=None, use_f=None, df_constraints=None); now def wald_test(self, r_matrix, cov_p=None, invcov=None, use_f=None, df_constraints=None). [pypi.org](https://pypi.org/project/statsmodels/0.13.0/)

And 129 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
