Covariance estimate using fitrgp

1 view (last 30 days)
George Lu
George Lu on 15 May 2022
Answered: Ayush Anand on 13 Sep 2023
I understand that it's possible to obtain a 95% confidence interval using [ypred1,~,yint1] = predict(gprMdl1,x); but is it possible to directly obtain an estimate of covariance/uncertainty statistics over the evaluation points?

Answers (1)

Ayush Anand
Ayush Anand on 13 Sep 2023
Hi George,
I understand you want to know if there is a way of directly obtaining an estimate of covariance over the evaluation points. Unfortunately, there is no function in MATLAB which computes this directly; you can use the predicted mean and the actual value at the evaluation points to compute the covariance/uncertainty according to the standard formula for computing variance.
I hope this helps!

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!