필터 지우기
필터 지우기

MatLab Confidence interval range

조회 수: 1 (최근 30일)
Samantha Chin
Samantha Chin 2019년 12월 7일
댓글: Star Strider 2019년 12월 7일
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

답변 (1개)

Star Strider
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
Samantha Chin
Samantha Chin 2019년 12월 7일
What if I don't have any data though? I am just given a mean and standard deviation as well as the range of the sample size
Star Strider
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 CenterFile Exchange에서 Get Started with Statistics and Machine Learning Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by