question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[ENH] Plotting confidence intervals

See original GitHub issue

Is your feature request related to a problem? Please describe. Plotting confidence intervalls with the current plot function from sktime.utils.plotting import plot_series is not well suitable in case all lines are very close, see picture.

image

Describe the solution you’d like Plot like this would be great, with the points as an option ideally. The function could just receive the DataFrame pred_int from y_pred, pred_int = model.predict(fh=fh, return_pred_int=True) as an input so this is already well structured and named.

image

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:4
  • Comments:17

github_iconTop GitHub Comments

2reactions
timcashioncommented, Dec 16, 2020

I’d love to take this on!

1reaction
aiwaltercommented, Jan 7, 2021

@aiexplorations

  1. We would have to fit multiple models because most models can only return CIs for a single alpha value. But actually it could work to accept also a list like alpha = [0.95, 0.9, 0.5] and loop 3 times over _fit() and predict().
  2. I think this would change the API because currently predict() is returning a pd.Series and no pd.DataFrame. A better solution could be to return the prediction also when doing predict(return_pred_int=True). Or you can just merge the results of predict() and predict(return_pred_int=True)?

@fkiraly thanks for mentioning, I think for now I will rather continue with contributing to sktime 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Scatter Plot with Confidence Intervals and Prediction Intervals
Confidence Intervals : Provide a view into the uncertainty when estimating the mean. Prediction Intervals: Account for variation in the Y values around...
Read more >
Tutorial: Adding confidence bands to effect displays
To that end, this blog post demonstrates how you can add confidence bands to effect displays for multiple regression, logistic regression, ...
Read more >
16.5 - Plotting Confidence Intervals - Preparing the Data
In the next example we'll use the function polygon() to show the 95% confidence interval around the means of some values (Since we're...
Read more >
Error bar plot with bootstrap-based 95% confidence intervals ...
I have 10 groups of non-normal data, and I would like to generate a plot with the mean of each group and associated...
Read more >
Constructing and plotting confidence intervals for means in R
Here we show how to calculate confidence intervals for sample means, and plot these intervals along with the raw data.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found