Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
How to compute confidence interval of the mean

Subject: How to compute confidence interval of the mean

From: sinoTrinity Liu

Date: 18 Dec, 2009 04:55:21

Message: 1 of 2

Hi,
I'm wondering how to conveniently compute CI of mean, without looking up table, such as t-distribution table, for critical values every time. Is there any function in Matlab like this:
[lower, upper] = ci(A, a), in which A is the set of samples, [lower, upper] returned is the (1-a)*100% confidence interval for the mean? Thank you.

-Xiaohui

Subject: How to compute confidence interval of the mean

From: Peter Perkins

Date: 18 Dec, 2009 16:59:17

Message: 2 of 2

sinoTrinity Liu wrote:
> Hi,
> I'm wondering how to conveniently compute CI of mean, without looking up
> table, such as t-distribution table, for critical values every time. Is
> there any function in Matlab like this:
> [lower, upper] = ci(A, a), in which A is the set of samples, [lower,
> upper] returned is the (1-a)*100% confidence interval for the mean?

If you have access to the Statistics Toolbox, it has functions for this, including NORMFIT and TCDF. Hope this helps.

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us