Repository navigation
Open
Labels
Milestone
Description
(continuation of #7720 roadmap for 0.14)
- gmm for combining models, equations
- look at polynomial expansion for distributions again statsmodels.distributions.edgeworth.ExpandedNormal - 4th cumulant higher than 4 #8326
no specific tasks, just to pick it up again after 8 or 10 years - profile confint ENH: GLM profile confidence intervals #1791,
score confint ENH: score confidence interval for GLM, discrete #2722 and checking constrained optimization again, maybe ENH: helper method for profile/restricted likelihood #5386 - plot and confint for ECDF ENH: add confint method to ECDF #8193 ENH add plot method to ecdf #8196
- add support for formulaic
- nonparametric:
- predict function still in sandbox statsmodels.statsmodels.sandbox.predict_functional.py func: predict_functional documentation is not available. #6735
- ...
- ...
new models
- Vectorized OLS with variance shrink options
- ...
robust ( have 4 larger PRs, getting all of them will take 2 to 3 months)
- REF/ENH RLM and robust scale for almost perfect prediction #1341
higher priority, bugfix and results enhancements, rsquared, ... - WIP: ENH Robust nonlinear estimators #3261
- ENH: LTS, MTL least trimmed squares and ETS and MM-E - rebased #8125
- ENH: Outlier robust covariance - rebased #8129
maybe combine with other covariance/correlation PRs, e.g. shrinkage - other open ENH requests, e.g. cov_type sandwiches, HC, HAC
- ...
stats
- another round of power enhancements
- look at (unconditional) exact tests for binomial and poisson again,
- issue ENH: (almost) exact hypothesis tests for proportions and contingency tables #2607
- PR for proportion WIP ENH: exact test equality of two proportions #2608
- no code for poisson yet, but etest is implemented
- tests for multinomial data, check what we need or have
- k-sample rank tests, anova, multiple comparisons ENH: k-sample rank statistic #6994
- check, can we use heteroscedasticity robust oneway (BF) with ranks/quasi-ranks directly
- main problem for implementation: cov for heteroscedasticity robust brunner-munzel type oneway is very complicated and
description of it is very difficult to understand.
- multiple comparisons move out of sandbox and clean up
- verify and enhance functions, e.g. max-t pvalues using numerical integration, contrast functions
- allow other contrasts, e.g. all versus control (dunnet), all versus mean
- reuse methods that call 2-indep test functions.
- maybe subclasses that reuse parts of setup like pairs loops e.g. for rank based multiple comparisons
- control charts, WIP ENH: Add stats.control_charts #5506
- ...
Activity
josef-pkt commentedon Dec 5, 2022
list of smaller issues/pulls postponed to 0.15
#7720 (comment)
josef-pkt commentedon Dec 12, 2022
I think a round of
robustwill be a good, fun starting point for 0.15We soon need robust Mahalonibis distance for identifying x-outliers. required to add weights.
josef-pkt commentedon Jan 7, 2023
There are still too many big topics, that need larger rounds
josef-pkt commentedon Jan 28, 2023
look into #6537 irf and fevd for SVAR. I don't know how difficult this is
josef-pkt commentedon Feb 13, 2023
I added new label "roadmap" so we/I can add roadmap issues by topic and not just by version
e.g. #8635 for copulas
I was recently thinking of many similar todo lists, but it's mostly in context of more specific bug/enh issues.
This will be similar to SUMM issues but more focused on check lists that we can work on and add check marks when merged or done. Details can be in other issues or in additional comments.
This worked well for my 0.14 roadmap.
josef-pkt commentedon Feb 14, 2023
generic design issues that need decisions
aside:
I looked a bit a pivoting qr in scipy.linalg. Which columns are "dropped" looks pretty arbitrary to me, that is I didn't get "obvious" results. Sequential QR still looks more intuitive to me for dropping columns.
(I found 2 of my notebooks that look at pivoting QR: "check_issues.ipynb" and older "try_pinv_catcher_matrix.ipynb" (I don't remember at all what the catcher matrix is))
josef-pkt commentedon Mar 28, 2023
control function for endogenous regressors should not be too difficult #7689
to get started use continuous endogenous regressors.
theory for binary endogenous regressor (Logit, Probit) is messier, but it should work.
and later multinomial endogenous regressors
not clear yet from where to get the reference results for unit tests (Stata, R, Stata uses mainly bivariate normal for probit)
statsmodels.causal.control_function or statsmodels.causal.instrumental ?
do we put IV2SLS together with the control function approaches in nonlinear models?
models for GLM and discrete (Logit, Probit, Poisson)
one undecided question: How generic should this be? How many individual, case specific models?
e.g Stata has function to allow any type of endogenous regressor combinations.
different models for different endogenous regressor types, continuous, binary, multinomial/ordered
simplest generic case similar to IV2SLS with OLS in 1st stage and whatever outcome model with control functions (functions of first stage residuals) in second stage, and GMM for cov_params.
josef-pkt commentedon Aug 31, 2023
modified classes (again), mixed and penalized mixins
location choice: generic
modified.pyor specificmixed.pyandpenalized.pyin relevant subdirectories, e.g. genmod and discrete.PoissonMixedis likely too generic or broad as name,PoissonRandEffis better if we only support random intercepts (by group/categorical indicators, one-way or two/multi-way) but no random slopes.RandEff is needed for item response models.
other issue: extensions based on stalled, abandoned python packages, e.g. extreme value theory, item response theory
(sem structural equation models is too large)
EVT needs multi-link models
IRT needs more mixed/random effects models.
josef-pkt commentedon Jun 17, 2024
PRs to review and merge
prio-high, prio-elev:
OLS#8578Truenow works in ConditionalLogit #9181 , merged in BUG: Ensure hessian is skipped #93984 additional old PRs with type-bug, 0 with type-bug-wrong
other PRs:
many PRs without labels, that I guess I never looked at those closely enough
josef-pkt commentedon Jan 6, 2025
we have 22 issues with prio-high
12 PR with prio-elev
208 (!?) issues with bug label, 48 of those with 0.15 milestone
5 issues with bug-wrong label, we need to check if those still are "bug-wrong"
(e.g. AFAIR, Probit for continuous data raises now exception or warning)
josef-pkt commentedon Jan 7, 2025
more
josef-pkt commentedon Aug 18, 2025
trying to list PRs by priority still possible for 0.15
first group is prio-elev or prio-high and substantial additions. (several smaller changes with prio-elev)
should be ready to merge with minimal review
AFAIR, should be able to merge without many changes
module location ?
looks like PR lost my attention
basic version looks ok, maybe not future proof for necessary extensions
maybe not, still undecided how to handle inconsistent results structure between 2-stage and joint MLE
OLS#8578most likely not for 0.15, I have not looked at it in a long time and structure seems to need improved. (open question how to add bootstrap to models)
theAeon commentedon Aug 27, 2025
if you could throw a windows arm build on the pile that would be awesome. It seems to work and build as is on head.
bashtage commentedon Sep 1, 2025
As far as I know SciPy isn't available for win_arm64 so it isn't possible to build statsmodels. SciPy would need to release first.
bashtage commentedon Sep 1, 2025
Looks like it is only the roadmap for SciPy 1.17.