95% confidence interval of the mean of a populationsample

조회 수: 4 (최근 30일)
Jan
Jan 2011년 3월 19일
Hi,
Have not been able to locate an answer on this forum to this (seemingly, but for me unsolvable) simple question: how to calculate a 95% confidence interval of the mean of a populationsample, i.e. what is the absolute range of values that fall within 95% of all values.
Jan

채택된 답변

Oleg Komarov
Oleg Komarov 2011년 3월 19일
If the sample follows a particular distribution and you have the stats TB, then you can estimate the parameters with the confidence intervals you want.
Give a look at normfit
Oleg

추가 답변 (1개)

Germán
Germán 2011년 3월 20일
Another good option, if you have a reasonably "large" data set and dont know the underlying distribution, is to use bootstrap. The function is bootci. Personally, I favor the bca confidence interval because it works on non-normal cases; unimodality is still a requisite though.
Bootstrap is a resampling statistic, it takes your data as an accurate depiction of the population and samples it (with replacement) to estimate the distribution of a particular statistic you are interested in, e.g. the mean.
  댓글 수: 2
Germán
Germán 2011년 3월 20일
Note: since it uses resampling it will vary slightly from call to call (depending on the number of samples; more samples, less variation), so you want to aim for a large number of samples. n >= 1000.
Jan
Jan 2011년 3월 24일
Useful advice, but my dataset is not as large as that. Thx.

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

Community Treasure Hunt

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

Start Hunting!

Translated by