Develop uncertainty estimates using Monte-Carlo simulation, bootstrap-resampling
7 次查看(过去 30 天)
显示 更早的评论
Dear Matlab users,
I have recently engaged with an issue related to calculating uncertainty for some defined parameters using 10 years of data (each year separately).
As per the reference model (or truth dataset), it uses all this 10 years data and calculate required statistical parameters, but for the current uncertainty analysis, it should be taken either one year or two years or more years of data to calculate the related parameters and develop the uncertainty population (see the attached figure). It’s better to develop more than 1000 datasets as you all aware in terms of Monte-Carlo simulations and bootstrap resampling.
Can anyone help me to solve this issue with selecting datasets? The main consideration here is to take yearly datasets as slots.
Hope you understand my question.
Thank you!
0 个评论
采纳的回答
Jeff Miller
2021-5-31
You seem to be asking how to select a random subset of the years for each iteration of the simulation. If that is right, then you can probably just use something like this:
for isim=1:nsims
yrs = randperm(10);
% Now use the years indicated by yrs(1) and yrs(2), for example,
% if you want the simulation to use two random years from the original 10-year set.
end
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Hypothesis Tests 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!