calculating and plotting 95% confidence intervals
69 次查看(过去 30 天)
显示 更早的评论
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 个评论
采纳的回答
Rik
2023-9-28
A 95% confidence interval means 2 standard deviations on either side. So you simply need to insert *2 in your code.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Graphics Performance 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!