calculating or knowing the bias of a simulation

9 ビュー (過去 30 日間)
cgo
cgo 2015 年 4 月 6 日
コメント済み: Tugce TOPRAK 2019 年 1 月 11 日
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 Center および File ExchangeHistograms についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by