MatLab Confidence interval range
4 ビュー (過去 30 日間)
古いコメントを表示
Hi,
I am struggling with a problem. I know how to create a 95% confidence interval and I have the calculated mean and standard deviation, but I have a range of sample sizes. I want to create a 95% confidence interval using the range of 5-500 samples given that the mean is 146.4 and the standard deviation is 3.4785. Can someone help me??? I am getting tripped up by the range part of the code
0 件のコメント
回答 (1 件)
Star Strider
2019 年 12 月 7 日
Use the tinv function to calculate the critical values for normally-distributed data with varying sample sizes. (This is in the Statistics and Machine Learning Toolbox, however it is very easy to code if you do not have the Toolbox.)
2 件のコメント
Star Strider
2019 年 12 月 7 日
I’m not certain what you’re asking.
If you have the mean and standard deviation and the sample sizes you want to calculate the confidence intervals for, that is all you need to use tinv to calculate them.
参考
カテゴリ
Help Center および File Exchange で Logical についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!