- Load or generate your time series data and split it into training and testing sets.
- Train your Gaussian Process Regression (GPR) model on the training data using the fitrgp function.
- Use the predict function to generate mean predictions and standard deviations for the testing data.
- Compute the lower and upper bounds of the PIs for each prediction by adding and subtracting a multiple of the standard deviation from the mean prediction.
- Calculate the PICP by dividing the number of actual observations within the PIs by the total number of observations. The PICP should ideally be close to the specified confidence level of the PIs (e.g., 95%).
- Compute the PINAW by averaging the widths of the PIs and dividing by the range of the data. The PINAW should ideally be small, indicating narrow and precise PIs.
How do i quantitatively evaluate Prediction Interval accuracy?
2 ビュー (過去 30 日間)
古いコメントを表示
I am using a time series data using GPR Model https://au.mathworks.com/help/stats/gaussian-process-regression-models.html and then need to quantitatively evaluated Prediction Intervals accuracy with PICP (PI coverage probability) and PINAW (PI normalized average width) for assessing the accuracy of the PIs. I need help with the writing matlab code for PICP and PINAW. TIA
0 件のコメント
回答 (1 件)
Kartik
2023 年 4 月 18 日
Hi,
To evaluate the accuracy of Prediction Intervals (PIs) using PICP and PINAW in MATLAB, you can follow these steps:
Refer to the following MathWorks documentation for more info:
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Gaussian Process Regression についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!