probability - execution of an operation
조회 수: 6 (최근 30일)
이전 댓글 표시
Hello, my task is to calculate the probability:
The temperature in a certain city is modeled as a random variable T ∼ N (10◦, (10◦) 2). What is the probability that the temperature at a random time will not exceed 15?
If I counted it "mathematically on a piece of paper", I would calculate it like this, but can I do it faster and more efficiently in matlab?

Thank you in advance for your help!!!
댓글 수: 2
채택된 답변
Paul
2021년 3월 20일
If T has a normal distribution, then
doc normcdf
can be used to find the probability P(T < t)
댓글 수: 4
Paul
2021년 3월 20일
Yes, except that based on your qeustion and subsequent comment sigma = 10, so it should be:
>> normcdf(15,10,10)
ans =
0.691462461274013
as shown in your original question.
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!