95% uncertainty bounds

조회 수: 15 (최근 30일)
B
B 2022년 3월 21일
댓글: B 2022년 3월 21일
Hi,
Hi,
Please can some one show me how to compute the 95% Prediction uncertainty (PPU) in MATLAB?
I have tried to look into fit, ci, predint but getting very confused about the fittype, and the results. I am not sure I am using the right functions or commands.
To be clear, I have 100 simulations per day for 44195 days and needs to estimate the interval around daily median or mean. My outputs are just time and paramenter.
Thanks,
KB

답변 (1개)

Dave B
Dave B 2022년 3월 21일
편집: Dave B 2022년 3월 21일
If you have 100 simulations per day, and you want to use your simulations to estimate 2.5% to 97.5% around the median (a 95% confidence interval), you could rephrase that as the 2.5th percentile and 97.5th percentile of your simulations.
a = randn(100,44195);
botmedtop = prctile(a,[2.5 50 97.5]); % Lower CI, median, upper CI
plot(botmedtop') % note the transpose, plot will make one line per column and botmedtop is 3 x 44195
legend('Lower','Median','Upper')
  댓글 수: 1
B
B 2022년 3월 21일
Hi Dave B, thanks for the help. What I want is prediction uncertainty (interval) and not confidence interval (CI). But I perfectly agree with your approach.
Cheers!
Edward

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Fit Postprocessing에 대해 자세히 알아보기

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by