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 Kommentare

darova
darova am 19 Mär. 2021
I dont' understand the formula. Cam you explain?
Thomas Kozinski
Thomas Kozinski am 20 Mär. 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?

Melden Sie sich an, um zu kommentieren.

 Akzeptierte Antwort

Paul
Paul am 20 Mär. 2021

0 Stimmen

If T has a normal distribution, then
doc normcdf
can be used to find the probability P(T < t)

4 Kommentare

Thomas Kozinski
Thomas Kozinski am 20 Mär. 2021
Hi, Paul! Thanks for the answer.
However, I have a problem, how can I use normpdf in my practical case, I read the documentation and I don't really see the solution.
Paul
Paul am 20 Mär. 2021
normcdf, not normpdf. If normcdf doesn't apply to your problem, then I don't understand the problem.
I thought the problem is: T is a random variable with a normal distirbution with parmeters mu = 10, sigma^2 = 100. Find the probability P(T < 15).
Thomas Kozinski
Thomas Kozinski am 20 Mär. 2021
sorry for the mistake, it's actually normcdf
I think you understood the content correctly.
So to solve this I can run a command like this: normcdf (x, mu, sigma) x = P (T <15).
normcdf (15,10,100)
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.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Gefragt:

am 18 Mär. 2021

Kommentiert:

am 20 Mär. 2021

Community Treasure Hunt

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

Start Hunting!

Translated by