finding the probability that the mean is between (a) and (b) for a generated sample "nsamples" of sample size "n" from u(a,b)..
just need to find that.. If anyone is interested I may have a few more questions as well, thanks...

댓글 수: 1

i just need the part of finding the probability between (a) and (b) i should have the rest figured out tyvm

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

 채택된 답변

Image Analyst
Image Analyst 2016년 11월 27일
Try this
theProbability = sum(nsamples > a & nsamples < b) / n;

댓글 수: 1

thank you! i'll test it later but perfect, i'm used to getting flamed for asking programming questions hehe

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

추가 답변 (1개)

Torsten
Torsten 2016년 11월 28일

1 개 추천

The probabiliy is 1 since the arithmetic mean of n numbers between a and b is also between a and b.
Best wishes
Torsten.

카테고리

도움말 센터 및 File Exchange에서 Logical에 대해 자세히 알아보기

질문:

2016년 11월 27일

답변:

2016년 11월 28일

Community Treasure Hunt

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

Start Hunting!

Translated by