# probability - execution of an operation

3 views (last 30 days)
Thomas Kozinski on 18 Mar 2021
Commented: Paul on 20 Mar 2021
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?
##### 2 CommentsShowHide 1 older comment
Thomas Kozinski on 20 Mar 2021
I must based on a random variable: T ~ N (10, (10)^2).
Calculate the probability that a given "temperature - result" will not exceed 15 at some random moment.
And I don't really know how to go about it, use some function for probability? Maybe you have any idea?

Paul on 20 Mar 2021
If T has a normal distribution, then
doc normcdf
can be used to find the probability P(T < t)
Paul on 20 Mar 2021
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.