calculate the probability of tomorrow's climate
Show older comments
Hello, I have to solve the following through MatLab
Tomorrow's temperature is normally distributed with μ=7°C und σ=2°C.
Calculate the probability of the following:
- tomorrow will be exactly 5 °C
- tomorrow will be warmer than 2°C
- tomorrow will be warer than 2°C but/and not colder than 5°C
I've only gotten so far:
mu=7;
sigma=2;
which is the same as getting nowhere. I'm assuming I should use the normpdf function but I'm confused on how to set the x values and whether to use the same function for 2 and 3.
Answers (1)
James Tursa
on 11 May 2020
Edited: James Tursa
on 11 May 2020
0 votes
The normal distrubion is a continuous distribution. To answer questions like "probability of temp greater than" or "less than" or "between" you need to look at the cumulative distribution function:
There is an interval example in that link that should help you. The answers to all three questions can be obtained with this function (although the answer to 1 is trivial if you think about it).
Categories
Find more on Climate Science and Analysis in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!