calculating or knowing the bias of a simulation

조회 수: 7 (최근 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 CenterFile Exchange에서 Histograms에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by