calculating or knowing the bias of a simulation

4 次查看(过去 30 天)
Hello,
I am using Matlab to estimate a probability distribution function using histograms with a bin side of 0.05 on the interval [-10,10]. The density is estimated by varying the number of samples, n. If the number is too few, then it is just a bunch of random impulses that show up in the histogram.
I increased the number of samples, n, in the range from 50 to 50million. I noticed that upon increasing it, the variance of the distribution becomes larger as well. I realized this is part of the 'bias variance trade off'.
My question is, how to calculate bias in this kind of experiment? And I what is the 'right amount of sample' so that bias and variance is just enough so that error is a minimum?
  1 个评论
Tugce TOPRAK
Tugce TOPRAK 2019-1-11
Hi cgo,
It's been a long time since you asked this question. But, i've tried to find out same problem and found an example demo. I hope it is helpful for everyone. Thanks to Sai Ravela who is the instructor of Quantifying Uncertainty and writer of the code.

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Histograms 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by