# calculate the probability of tomorrow's climate

1 view (last 30 days)
Aa on 11 May 2020
Edited: James Tursa on 11 May 2020
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:
1. tomorrow will be exactly 5 °C
2. tomorrow will be warmer than 2°C
3. 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.

James Tursa on 11 May 2020
Edited: James Tursa on 11 May 2020
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).