calculating and plotting 95% confidence intervals
39 views (last 30 days)
Show older comments
In the attached figure I plot the daily mean hot temperature. Instead of plotting the standard deviation around the mean, I would like to plot 95% confidence intervals around the mean.
I have attached my current code to make this figure.
Thanks in advance!
run average_temp_question
0 Comments
Accepted Answer
Rik
on 28 Sep 2023
A 95% confidence interval means 2 standard deviations on either side. So you simply need to insert *2 in your code.
More Answers (0)
See Also
Categories
Find more on Annotations 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!