Docsity

Understanding Confidence Intervals: Basics and Calculation, Study notes of Statistics

Partial preview of the text

Download Understanding Confidence Intervals: Basics and Calculation and more Study notes Statistics in PDF only on Docsity!

Confidence intervals:

The basics

BPS chapter 14

© 2006 W.H. Freeman and Company

Objectives (BPS chapter 14) Confidence intervals: the basics

‡

Estimating with confidence

‡

Confidence intervals for the mean

‡

How confidence intervals behave

‡

Choosing the sample size

But the sample distribution is narrower than the population distribution,by a factor of

n

Thus, the estimatesgained from our samplesare always relativelyclose to the populationparameter

n

Sample means,n subjects

μ

n

σ

σ

Population,

x

individual subjects

x

x

If the population is normally distributed

N

( μ

, σ

so will the sampling distribution

N

( μ

, σ

n

Red dot: mean valueof individual sample

95% of all sample means willbe within roughly 2 standarddeviations (2*

σ

n

) of the

population parameter

μ.

Because distances aresymmetrical, this implies that the population parameter

μ

must be within roughly 2standard deviations fromthe sample average

, in

95% of all samples.

σ

n

This reasoning is the essence of statistical inference.

x

Confidence interval A level C confidence interval for a parameter has two parts: ‰

An interval calculated from the data, usually of the form

estimate

margin of error

‰

A confidence level C, which gives the probability that the interval will capture the true parameter value in repeated samples, or the success rate for the method.

Implications We don’t need to take lots ofrandom samples to “rebuild” thesampling distribution and find

μ

at its center.

n

n

SamplePopulation

μ

All we need is one SRS ofsize

n

, and relying on the

properties of the samplemeans distribution to inferthe population mean

μ

Interpreting a confidence interval for a mean A

confidence interval

can be

expressed as:

‡

m

m

is called the

margin of error

x

‡

Two endpoints of an interval: μ

possibly within (

m

) to (

m

Example: 114 to 126

A

confidence level

C

(in %)

indicates the success rate of themethod that produces theinterval.It represents the area under thenormal curve within ±

m

of the

center of the curve.

m

m

x

x

x

x

μ

Review: standardizing the normal curve using

z

N

(0,1)

z

x

N

(64.5, 2.5) N (

μ

,^ σ

/√

n

)

Standardized height (no units)

z

=

x

−

μ

σ

n

Here, we work with the sampling distribution, and

n

is its standard deviation (spread).

Remember that

is the standard deviation of the original population.

How do we find specific

z values?*

We can use a table of

z

/ t

values (Table

C

). For a particular confidence

level

C

, the appropriate

z

* value is just above it.

We can use software. In

Excel:

=NORMINV(probability,mean,standard_dev)gives

z

for a given cumulative probability.

Since we want the middle

C

probability, the probability we require is (1 - C)/

Example: For a 98% confidence level, = NORMINV (.01,0,1) =

neg.

z

Ex. For a 98% confidence level, z*=2.

Link between confidence level and margin of error The confidence level

C

determines the value of

z

* (in Table

C

The margin of error also depends on

z

m

=

z

σ

n

C

Z
Z

m *

m

Higher confidence

C

implies a larger

margin of error

m

(thus less precision

in our estimates).A lower confidence level

C

produces a

smaller margin of error

m

(thus better

precision in our estimates).

x

Impact of sample size The spread in the sampling distribution of the mean is a function of thenumber of individuals per sample.

The larger the sample size, the smallerthe standard deviation (spread) of thesample mean distribution.

ƒ

But the spread only decreases at a rateequal to

n

Sample size

n

n√ ⁄ σ Standard error

Sample size and experimental design You may need a certain margin of error (e.g., drug trial, manufacturingspecs). In many cases, the population variability (

σ)

is fixed, but we can

choose the number of measurements (

n

So plan ahead what sample size to use to achieve that margin of error.

m

=

z

σ

n

⇔

n

=

z

σ m

⎛ ⎜ ⎝

⎞ ⎟ ⎠

2

Remember, though, that sample size is not always stretchable at will. There aretypically costs and constraints associated with large samples. The bestapproach is to use the smallest sample size that can give you useful results.