calculate the probability of tomorrow's climate
2 次查看(过去 30 天)
显示 更早的评论
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.
0 个评论
回答(1 个)
James Tursa
2020-5-11
编辑:James Tursa
2020-5-11
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).
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!