How to plot the 10th and 90th percentiles of the predictions?

9 次查看(过去 30 天)
Hi,
I have attached a data having a (size of a is 115 75) and want to plot the 10th and 90th percentiles of the predictions. How can I do it in MATLAB?
Thanks in advance

回答(1 个)

Chunru
Chunru 2022-9-11
编辑:Chunru 2022-9-11
load(websave("conf_int.mat", "https://www.mathworks.com/matlabcentral/answers/uploaded_files/1121675/conf_int.mat"))
whos
Name Size Bytes Class Attributes a 115x75 69000 double cmdout 1x33 66 char
P = prctile(a, [10 90]) % for each column
P = 2×75
1.0e+03 * 2.8012 2.7044 2.6896 2.8840 2.9163 2.9280 3.0022 2.7951 3.0429 2.8610 2.5794 2.9548 2.9548 3.0255 2.7126 2.9686 3.3782 2.9847 2.7901 2.6866 2.6183 2.8473 2.9087 2.9370 2.7017 3.1828 3.0239 2.8233 2.9850 3.4413 4.9847 4.6246 4.9029 4.9502 4.7328 5.1725 4.9193 5.0113 4.6282 4.8393 4.7339 4.8020 4.8020 4.8341 4.7143 4.8533 4.3903 4.3102 4.7780 5.0160 4.7716 5.0939 5.0072 4.5404 5.0849 4.9131 4.5763 4.8793 4.5561 4.5912
Pall = prctile(a, [10 90], "all") % for all data
Pall = 2×1
1.0e+03 * 2.9320 4.8320
  2 个评论
Nisar Ahmed
Nisar Ahmed 2022-9-11
编辑:Nisar Ahmed 2022-9-11
@Chunru Thanks, what if I want to compute the confidence interval (0.05 and 0.95). How I can do in case of above attached data?
I want to plot uncertainty represented by the area between the 10th percentile and the 90th percentile is given in gray. How can do it by using above percentile?
Chunru
Chunru 2022-9-12
I don't know how your data can be interpreted. Can you elaborate more?

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Descriptive Statistics and Visualization 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by