Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@nximish
Copy link

@nximish nximish commented Dec 8, 2025

This PR fixes a bug in plot_predict where the confidence interval width does not change when specifying a custom alpha.

plot_predict currently calls pred.conf_int(alpha) positionally, but in conf_int the first positional argument is obs, not alpha. This means the user-provided alpha is ignored and the default value 0.05 is always used.

This PR changes the call to:

pred.conf_int(alpha=alpha)

so that the correct confidence level is applied.

Closes #9693.

@bashtage
Copy link
Member

bashtage commented Dec 8, 2025

Good start, can you add a test that will check?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

plot_predict fails to pass alpha to conf_int

2 participants