How can i simulation this Question

How can i simulation this Question:
A physical quantity is measured 50 times, and the average of these measurements is taken as the result. If each measurement has a random error uniformly distributed over (−1, 1), what is the probability that our result differs from the actual value by less than 0.25
I generate 50 random varible with this code :
eror=-1+1*randn(1,50);
but i dont know how can arrive to Purpose the question.

댓글 수: 1

Torsten
Torsten 2022년 12월 8일
편집: Torsten 2022년 12월 8일
Read about
and calculate
P(0.375 <= X <= 0.625)
for X having the Bates distribution with n = 50.

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

답변 (1개)

Star Strider
Star Strider 2022년 12월 7일

0 개 추천

The randn function will produce Gaussian distributed random numbers with a standard deviation of 1.
Your assignment says: ‘uniformly distributed over (−1, 1)’. Look through the documentation and choose a random number generator that produces uniformly distributed random numbers. It may be necessary to write code that creates a (-1,1) result.
.

댓글 수: 3

S.M
S.M 2022년 12월 7일
I can use gussian distributed random variable ; but i dont know how can i arrive to probability that our result differs from the actual value by less than 0.25
Star Strider
Star Strider 2022년 12월 7일
Unless you were told something different than the assignemtn text, randn will not produce that result.
... but i dont know how can i arrive to probability that our result differs from the actual value by less than 0.25
That is the point of the asssignment, so I leave that to you.
Image Analyst
Image Analyst 2022년 12월 7일
Are there any other functions in the documentation that begin with "rand"? I see several. Which do you think you need to use?
This looks like a homework problem. If you have any questions ask your instructor or read the link below to get started:
Obviously we can't give you the full solution because you're not allowed to turn in our code as your own.

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

카테고리

도움말 센터File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

질문:

S.M
2022년 12월 7일

편집:

2022년 12월 8일

Community Treasure Hunt

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

Start Hunting!

Translated by