MATLAB Answers

Confidence intervals estimates for cubic smoothing spline (csaps)

조회 수: 45(최근 30일)
Is there a built in function that will return the confidence bands for csaps (or the output from ppval)? Extra information that might be useful:
  1. I have data that is smoothed both with and without weights.
  2. I estimated the smoothing parameter using cross-validation using both k-fold and leave-one-out. Aside: why doesn't MATLAB do this automatically?
I found a paper, Smoothing Noisy Data with Spline Functions by M. F. Hutchinson and F. R. De Hoog that describes a method for estimating the confidence intervals, but I'd rather not code it myself if a script already exists.
Edit: The title was poorly worded and it doesn't seem I can change it now. I meant confidence bands, not confidence interval.

  댓글 수: 0

로그인 to comment.

채택된 답변

Matthew Taliaferro
Matthew Taliaferro 29 May 2017
I wrote my own code and posted it here. Hopefully it's useful for someone.

  댓글 수: 0

로그인 to comment.

추가 답변(1개)

David Ding
David Ding 26 May 2017
Hi Mark,
Unfortunately the output of "csaps" function requires further processing to obtain the confidence bands. The following detailed explanations on the Curving Fitting Toolbox might be useful:
Thanks,
David

  댓글 수: 1

Matthew Taliaferro
Matthew Taliaferro 26 May 2017
Thank you for taking the time to answer my question. The doc page for confint() and predint() both say you cannot use them for calculating confidence or prediction intervals for non-parametric regression models. I wish it had been that easy :(
Again, thanks for the help.

로그인 to comment.

이 질문에 답변하려면 로그인을(를) 수행하십시오.


Translated by