36
Sections 5.1 & 5.2 Sampling distribution for ¯ Y Section 6.2 Standard error of ¯ Y Section 6.3 Confidence interval for μ L10: Sections 5.1, 5.2, 6.2 and 6.3 Department of Statistics, University of South Carolina Stat 205: Elementary Statistics for the Biological and Life Sciences 1 / 36

L10: Sections 5.1, 5.2, 6.2 and 6 - University of South ...people.stat.sc.edu/sshen/courses/17fstat205/notes/L10.pdf · Sections 5.1 & 5.2 Sampling distribution for Y Section 6.2

  • Upload
    hakien

  • View
    214

  • Download
    0

Embed Size (px)

Citation preview

Page 1: L10: Sections 5.1, 5.2, 6.2 and 6 - University of South ...people.stat.sc.edu/sshen/courses/17fstat205/notes/L10.pdf · Sections 5.1 & 5.2 Sampling distribution for Y Section 6.2

Sections 5.1 & 5.2 Sampling distribution for YSection 6.2 Standard error of Y

Section 6.3 Confidence interval for µ

L10: Sections 5.1, 5.2, 6.2 and 6.3

Department of Statistics, University of South Carolina

Stat 205: Elementary Statistics for the Biological and Life Sciences

1 / 36

Page 2: L10: Sections 5.1, 5.2, 6.2 and 6 - University of South ...people.stat.sc.edu/sshen/courses/17fstat205/notes/L10.pdf · Sections 5.1 & 5.2 Sampling distribution for Y Section 6.2

Sections 5.1 & 5.2 Sampling distribution for YSection 6.2 Standard error of Y

Section 6.3 Confidence interval for µ

Sampling variability

A random sample is exactly that: random.

You can collect a sample of n observations and compute themean Y . Before you do it, Y is random.

If you randomly sample a population two different times,taking, e.g. n = 5 each time, the two sample means Y1 andY2 will be different.

Example: sampling n = 5 ages from Stat 205.

Variability among random samples is called samplingvariability.

Variability is assessed through a hypothetical “mindexperiment” called a meta-study.

2 / 36

Page 3: L10: Sections 5.1, 5.2, 6.2 and 6 - University of South ...people.stat.sc.edu/sshen/courses/17fstat205/notes/L10.pdf · Sections 5.1 & 5.2 Sampling distribution for Y Section 6.2

Sections 5.1 & 5.2 Sampling distribution for YSection 6.2 Standard error of Y

Section 6.3 Confidence interval for µ

Study and meta-study

3 / 36

Page 4: L10: Sections 5.1, 5.2, 6.2 and 6 - University of South ...people.stat.sc.edu/sshen/courses/17fstat205/notes/L10.pdf · Sections 5.1 & 5.2 Sampling distribution for Y Section 6.2

Sections 5.1 & 5.2 Sampling distribution for YSection 6.2 Standard error of Y

Section 6.3 Confidence interval for µ

Example 5.1.1 Rat blood pressure

Study is measuring change in blood pressure in n = 10 ratsafter giving them a drug, and computing a mean change Yfrom Y1, . . . ,Y10.

Meta study (which takes place in our mind) is simplyrepeating this study over and over again on different samplesof n = 10 rats and computing a mean each timeY1, Y2, Y3, . . .

Because the sample is random each time, the means will bedifferent.

A (hypothetical) histogram of the Y1, Y2, Y3, . . . would givethe sampling distribution of Y , and smoothed version wouldgive the density of Y .

Restated: the sample mean from one randomly drawn sampleof size n = 10 has a density.

4 / 36

Page 5: L10: Sections 5.1, 5.2, 6.2 and 6 - University of South ...people.stat.sc.edu/sshen/courses/17fstat205/notes/L10.pdf · Sections 5.1 & 5.2 Sampling distribution for Y Section 6.2

Sections 5.1 & 5.2 Sampling distribution for YSection 6.2 Standard error of Y

Section 6.3 Confidence interval for µ

The density of Y

Y estimates µY = E (Yi ), the mean of all the observations inthe population.

We’ll first look at a picture of where the samplingdistribution of Y comes from.

Then we’ll discuss a Theorem that tells us about the meanµY , standard deviation σY , and shape of the density for Y .

5 / 36

Page 6: L10: Sections 5.1, 5.2, 6.2 and 6 - University of South ...people.stat.sc.edu/sshen/courses/17fstat205/notes/L10.pdf · Sections 5.1 & 5.2 Sampling distribution for Y Section 6.2

Sections 5.1 & 5.2 Sampling distribution for YSection 6.2 Standard error of Y

Section 6.3 Confidence interval for µ

Sampling distribution of Y

“Meta-experiment...”

6 / 36

Page 7: L10: Sections 5.1, 5.2, 6.2 and 6 - University of South ...people.stat.sc.edu/sshen/courses/17fstat205/notes/L10.pdf · Sections 5.1 & 5.2 Sampling distribution for Y Section 6.2

Sections 5.1 & 5.2 Sampling distribution for YSection 6.2 Standard error of Y

Section 6.3 Confidence interval for µ

Sampling distribution of Y

7 / 36

Page 8: L10: Sections 5.1, 5.2, 6.2 and 6 - University of South ...people.stat.sc.edu/sshen/courses/17fstat205/notes/L10.pdf · Sections 5.1 & 5.2 Sampling distribution for Y Section 6.2

Sections 5.1 & 5.2 Sampling distribution for YSection 6.2 Standard error of Y

Section 6.3 Confidence interval for µ

Sampling distribution of Y from normal data

If data Y1,Y2, . . . ,Yn are normal, then Y is also normal, centeredat the same place as the data, but with smaller spread.

(a) population distribution of normal data Y1, . . . ,Yn, and (b)sampling distribution of Y .

8 / 36

Page 9: L10: Sections 5.1, 5.2, 6.2 and 6 - University of South ...people.stat.sc.edu/sshen/courses/17fstat205/notes/L10.pdf · Sections 5.1 & 5.2 Sampling distribution for Y Section 6.2

Sections 5.1 & 5.2 Sampling distribution for YSection 6.2 Standard error of Y

Section 6.3 Confidence interval for µ

Example 5.2.2 Seed weights

The population of weights of the princess bean is normal withµ = 500 mg and σ = 120 mg. We intend to take a sample ofn = 4 seeds and compute the (random!) sample mean Y .

E (Y ) = µY = µ = 500 mg. On average, the sample meangets it right.

σY = σ√n

= 120√4

= 60 mg. 68% of the time, Y will be within

60 mg of µ = 500 mg.

9 / 36

Page 10: L10: Sections 5.1, 5.2, 6.2 and 6 - University of South ...people.stat.sc.edu/sshen/courses/17fstat205/notes/L10.pdf · Sections 5.1 & 5.2 Sampling distribution for Y Section 6.2

Sections 5.1 & 5.2 Sampling distribution for YSection 6.2 Standard error of Y

Section 6.3 Confidence interval for µ

Sampling distribution for Y for Example 5.2.2

µY = 500 mg and σY = 60 mg.

10 / 36

Page 11: L10: Sections 5.1, 5.2, 6.2 and 6 - University of South ...people.stat.sc.edu/sshen/courses/17fstat205/notes/L10.pdf · Sections 5.1 & 5.2 Sampling distribution for Y Section 6.2

Sections 5.1 & 5.2 Sampling distribution for YSection 6.2 Standard error of Y

Section 6.3 Confidence interval for µ

Pr{Y > 550} for n = 4

Recall for n = 4 that µY = 500 mg and σY = 60 mg.

> 1-pnorm(550,500,60)

[1] 0.2023284

11 / 36

Page 12: L10: Sections 5.1, 5.2, 6.2 and 6 - University of South ...people.stat.sc.edu/sshen/courses/17fstat205/notes/L10.pdf · Sections 5.1 & 5.2 Sampling distribution for Y Section 6.2

Sections 5.1 & 5.2 Sampling distribution for YSection 6.2 Standard error of Y

Section 6.3 Confidence interval for µ

What happens when n is increased?

As n gets bigger, σY = σ√n

gets smaller. The density of Y

gets more focused around µ .

If Y1, . . . ,Yn come from a normal density, then so does Y ,regardless of the sample size.

Even if Y1, . . . ,Yn do not come from a normal density, theCentral Limit Theorem guarantees that the density of Y willlook more and more like a normal distribution as n gets bigger.

This is in Section 5.3; have a look if you’re interested.

12 / 36

Page 13: L10: Sections 5.1, 5.2, 6.2 and 6 - University of South ...people.stat.sc.edu/sshen/courses/17fstat205/notes/L10.pdf · Sections 5.1 & 5.2 Sampling distribution for Y Section 6.2

Sections 5.1 & 5.2 Sampling distribution for YSection 6.2 Standard error of Y

Section 6.3 Confidence interval for µ

Sampling dist’n for Y from different sample sizes n

13 / 36

Page 14: L10: Sections 5.1, 5.2, 6.2 and 6 - University of South ...people.stat.sc.edu/sshen/courses/17fstat205/notes/L10.pdf · Sections 5.1 & 5.2 Sampling distribution for Y Section 6.2

Sections 5.1 & 5.2 Sampling distribution for YSection 6.2 Standard error of Y

Section 6.3 Confidence interval for µ

Estimating population parameters

Take a random sample of data Y1, . . . ,Yn from the population; yestimates µ and s estimates σ.

14 / 36

Page 15: L10: Sections 5.1, 5.2, 6.2 and 6 - University of South ...people.stat.sc.edu/sshen/courses/17fstat205/notes/L10.pdf · Sections 5.1 & 5.2 Sampling distribution for Y Section 6.2

Sections 5.1 & 5.2 Sampling distribution for YSection 6.2 Standard error of Y

Section 6.3 Confidence interval for µ

Example 6.1.1 Butterfly wings

n = 14 male Monarch butterflies were measured for wing area(Oceano Dunes State Park, California).

y = 32.81 cm2 and s = 2.48 cm2 estimate µ and σ, the mean andstandard deviation of all male Monarch butterfly wing areas fromOceano Dunes.

How good are these estimates? Can we provide a plausible rangefor µ?

15 / 36

Page 16: L10: Sections 5.1, 5.2, 6.2 and 6 - University of South ...people.stat.sc.edu/sshen/courses/17fstat205/notes/L10.pdf · Sections 5.1 & 5.2 Sampling distribution for Y Section 6.2

Sections 5.1 & 5.2 Sampling distribution for YSection 6.2 Standard error of Y

Section 6.3 Confidence interval for µ

6.2 Standard error of Y

Recall that σY = σ√n

.

We will usually not know σ (if we don’t know µ, how can weknow σ?)

Simply plug in s for σ.

The standard error of the mean is

SEY =s√n.

For the butterfly wings, SEY = s√n

= 2.48√14

= 0.66 cm2.

The standard error SEY gives the variability of Y ; thestandard deviation s gives the variability in the data itself.

16 / 36

Page 17: L10: Sections 5.1, 5.2, 6.2 and 6 - University of South ...people.stat.sc.edu/sshen/courses/17fstat205/notes/L10.pdf · Sections 5.1 & 5.2 Sampling distribution for Y Section 6.2

Sections 5.1 & 5.2 Sampling distribution for YSection 6.2 Standard error of Y

Section 6.3 Confidence interval for µ

Example 6.2.2

Geneticist weighs n = 28 female Rambouillet lambs at birth, allborn in April, all single births.

y = 5.17 kg estimates µ, the population mean.

s = 0.65 kg estimates the spread in the sample.

SEY = s√n

= 0.65√28

= 0.12 kg estimates how variable y is, i.e.

how “close” we can expect y to be to µ.

17 / 36

Page 18: L10: Sections 5.1, 5.2, 6.2 and 6 - University of South ...people.stat.sc.edu/sshen/courses/17fstat205/notes/L10.pdf · Sections 5.1 & 5.2 Sampling distribution for Y Section 6.2

Sections 5.1 & 5.2 Sampling distribution for YSection 6.2 Standard error of Y

Section 6.3 Confidence interval for µ

Birthweight of n = 28 lambs

18 / 36

Page 19: L10: Sections 5.1, 5.2, 6.2 and 6 - University of South ...people.stat.sc.edu/sshen/courses/17fstat205/notes/L10.pdf · Sections 5.1 & 5.2 Sampling distribution for Y Section 6.2

Sections 5.1 & 5.2 Sampling distribution for YSection 6.2 Standard error of Y

Section 6.3 Confidence interval for µ

Increasing n sampling from lamb birthweight population

19 / 36

Page 20: L10: Sections 5.1, 5.2, 6.2 and 6 - University of South ...people.stat.sc.edu/sshen/courses/17fstat205/notes/L10.pdf · Sections 5.1 & 5.2 Sampling distribution for Y Section 6.2

Sections 5.1 & 5.2 Sampling distribution for YSection 6.2 Standard error of Y

Section 6.3 Confidence interval for µ

Example 6.2.4 MAO data using SE ’s across groups

MAO levels vs. schizophrenia diagnosis (I, II, III) and healthy maleand female controls (IV and V).

y ± SE using (a) an interval plot, and (b) a bargraph withstandard error bars. Gets at how variable the sample means are.

20 / 36

Page 21: L10: Sections 5.1, 5.2, 6.2 and 6 - University of South ...people.stat.sc.edu/sshen/courses/17fstat205/notes/L10.pdf · Sections 5.1 & 5.2 Sampling distribution for Y Section 6.2

Sections 5.1 & 5.2 Sampling distribution for YSection 6.2 Standard error of Y

Section 6.3 Confidence interval for µ

Example 6.2.4 MAO data using s’s across groups

MOA levels vs. schizophrenia diagnosis (I, II, III) and healthy maleand female controls (IV and V).

y ± s using (a) an interval plot, and (b) a bargraph with standarddeviation bars. Gets at how variable the data are.

21 / 36

Page 22: L10: Sections 5.1, 5.2, 6.2 and 6 - University of South ...people.stat.sc.edu/sshen/courses/17fstat205/notes/L10.pdf · Sections 5.1 & 5.2 Sampling distribution for Y Section 6.2

Sections 5.1 & 5.2 Sampling distribution for YSection 6.2 Standard error of Y

Section 6.3 Confidence interval for µ

Example 6.2.4 MAO data table with all information

22 / 36

Page 23: L10: Sections 5.1, 5.2, 6.2 and 6 - University of South ...people.stat.sc.edu/sshen/courses/17fstat205/notes/L10.pdf · Sections 5.1 & 5.2 Sampling distribution for Y Section 6.2

Sections 5.1 & 5.2 Sampling distribution for YSection 6.2 Standard error of Y

Section 6.3 Confidence interval for µ

Confidence interval in one minute...

y provides an estimate of µ, but often we’d like a plausiblerange for µ.

Theorem 5.2.1 (p. 152) tells us Y is N(µ, σ√n

). This holds

perfectly when the data Y1, . . . ,Yn are normal, otherwise it’sapproximate.

We can estimate σ√n

by SEY .

The 68/95/99.7 rule says that any normal random variable iswithin 2 standard deviations of its mean 95% of the time.

Therefore Y is within 2SEY of µ 95% of the time.

Restated µ is within 2SEY of Y 95% of the time.

A quick, rough confidence interval for µ is(Y − 2 SEY , Y + 2 SEY ).

23 / 36

Page 24: L10: Sections 5.1, 5.2, 6.2 and 6 - University of South ...people.stat.sc.edu/sshen/courses/17fstat205/notes/L10.pdf · Sections 5.1 & 5.2 Sampling distribution for Y Section 6.2

Sections 5.1 & 5.2 Sampling distribution for YSection 6.2 Standard error of Y

Section 6.3 Confidence interval for µ

Confidence interval, known σ, formal derivation

Say we know σ (for now) and the data are normal. Then

Y ∼ N (µ, σY ) = N

(µ,

σ√n

).

We can standardize Y to get

Z =Y − µσ/√n.

We can show Pr{−1.96 ≤ Z ≤ 1.96} = 0.95. Then

0.95 = Pr{−1.96 ≤ Z ≤ 1.96}

= Pr

{−1.96 ≤

Y − µσ/√n≤ 1.96

}= Pr

{−1.96

σ√n≤ Y − µ ≤ 1.96

σ√n

}= Pr

{Y − 1.96

σ√n≤ µ ≤ Y + 1.96

σ√n

}

24 / 36

Page 25: L10: Sections 5.1, 5.2, 6.2 and 6 - University of South ...people.stat.sc.edu/sshen/courses/17fstat205/notes/L10.pdf · Sections 5.1 & 5.2 Sampling distribution for Y Section 6.2

Sections 5.1 & 5.2 Sampling distribution for YSection 6.2 Standard error of Y

Section 6.3 Confidence interval for µ

Confidence interval

Y ± 1.96 σ√n

is a 95% probability interval for µ.

Once we go out and see Y = y , e.g. y = 32.8 cm2, there isno probability. Either the interval includes µ or not (more in aminute...)

We don’t actually know σY = σ√n

, but we do know

SEY = s√n

.

William Sealy Gosset figured out what Y−µSEY

is distributed as.

25 / 36

Page 26: L10: Sections 5.1, 5.2, 6.2 and 6 - University of South ...people.stat.sc.edu/sshen/courses/17fstat205/notes/L10.pdf · Sections 5.1 & 5.2 Sampling distribution for Y Section 6.2

Sections 5.1 & 5.2 Sampling distribution for YSection 6.2 Standard error of Y

Section 6.3 Confidence interval for µ

William Sealy Gosset, brewer & statistician

The t distribution was published by Gosset in 1908 & related toquality control at Guinness brewery.

26 / 36

Page 27: L10: Sections 5.1, 5.2, 6.2 and 6 - University of South ...people.stat.sc.edu/sshen/courses/17fstat205/notes/L10.pdf · Sections 5.1 & 5.2 Sampling distribution for Y Section 6.2

Sections 5.1 & 5.2 Sampling distribution for YSection 6.2 Standard error of Y

Section 6.3 Confidence interval for µ

Estimating σ by s gives a t distribution

Instead of normal, Y−µSEY

has a Student’s t distribution with

n − 1 degrees of freedom.

The students t distribution looks like a standard normal, buthas fatter tails to account for extra variability in estimatingσY = σ√

nby SEY = s√

n.

However, the confidence interval is computed the same‘formal’ way, replacing σY by SEY and using a t distributionrather than a normal.

R takes care of the details for us! t.test(data) gives a 95% CIfor µ.

For small sample sizes (n < 30, say), data need to beapproximately normal, otherwise the central limit theoremkicks in.

27 / 36

Page 28: L10: Sections 5.1, 5.2, 6.2 and 6 - University of South ...people.stat.sc.edu/sshen/courses/17fstat205/notes/L10.pdf · Sections 5.1 & 5.2 Sampling distribution for Y Section 6.2

Sections 5.1 & 5.2 Sampling distribution for YSection 6.2 Standard error of Y

Section 6.3 Confidence interval for µ

Two student’s t curves (df=3 & 10), and normal curve

t distributions have slightly fatter tails to account for estimating σby s.

28 / 36

Page 29: L10: Sections 5.1, 5.2, 6.2 and 6 - University of South ...people.stat.sc.edu/sshen/courses/17fstat205/notes/L10.pdf · Sections 5.1 & 5.2 Sampling distribution for Y Section 6.2

Sections 5.1 & 5.2 Sampling distribution for YSection 6.2 Standard error of Y

Section 6.3 Confidence interval for µ

Definition of critical value t0.025

We replace “1.96” (from a normal) by the equivalent t distributionvalue, denoted t0.025. Table of these on back inside cover.

29 / 36

Page 30: L10: Sections 5.1, 5.2, 6.2 and 6 - University of South ...people.stat.sc.edu/sshen/courses/17fstat205/notes/L10.pdf · Sections 5.1 & 5.2 Sampling distribution for Y Section 6.2

Sections 5.1 & 5.2 Sampling distribution for YSection 6.2 Standard error of Y

Section 6.3 Confidence interval for µ

Example 6.3.1 butterfly data

Wing area of n = 14 male Monarch butterly wings at OceanoDunes in California.

This is a small sample size (n < 30). We need to check if the dataare normal to trust the confidence interval; the histogram looksroughly bell-shaped and the normal probability plot looksreasonably straight.

30 / 36

Page 31: L10: Sections 5.1, 5.2, 6.2 and 6 - University of South ...people.stat.sc.edu/sshen/courses/17fstat205/notes/L10.pdf · Sections 5.1 & 5.2 Sampling distribution for Y Section 6.2

Sections 5.1 & 5.2 Sampling distribution for YSection 6.2 Standard error of Y

Section 6.3 Confidence interval for µ

Confidence interval in R using t.test

> butterfly=c(33.9,33.0,30.6,36.6,36.5,34.0,36.1,32.0,28.0,32.0,32.2,32.3,32.3,30.0)

> par(mfrow=c(1,2))

> hist(butterfly)

> qqnorm(butterfly)

> t.test(butterfly)

One Sample t-test

data: butterfly

t = 49.6405, df = 13, p-value = 3.292e-16

alternative hypothesis: true mean is not equal to 0

95 percent confidence interval:

31.39303 34.24983

sample estimates:

mean of x

32.82143

The part we care about right now is just

95 percent confidence interval:

31.39303 34.24983

We are 95% confident that the true population mean wing area isbetween 31.4 and 34.2 cm2.

31 / 36

Page 32: L10: Sections 5.1, 5.2, 6.2 and 6 - University of South ...people.stat.sc.edu/sshen/courses/17fstat205/notes/L10.pdf · Sections 5.1 & 5.2 Sampling distribution for Y Section 6.2

Sections 5.1 & 5.2 Sampling distribution for YSection 6.2 Standard error of Y

Section 6.3 Confidence interval for µ

Other confidence levels

Sometimes people want a 90% CI or a 99% CI. As confidencegoes up, the interval must become wider. To be moreconfident that the mean is in the interval, we need to includemore plausible values.The corresponding multipliers are t0.05, t0.025, and t0.005 for90%, 95%, and 99% CI’s, respectively. These are in the tableon the inside cover of the back of your book if you construct aCI by hand.In R, use t.test(data,conf.level=0.90) for a 90% test CIt.test(data,conf.level=0.99) for 99% CI.

> t.test(butterfly,conf.level=0.9)

90 percent confidence interval:

31.65052 33.99234

> t.test(butterfly)

95 percent confidence interval:

31.39303 34.24983

> t.test(butterfly,conf.level=0.99)

99 percent confidence interval:

30.82976 34.81309

32 / 36

Page 33: L10: Sections 5.1, 5.2, 6.2 and 6 - University of South ...people.stat.sc.edu/sshen/courses/17fstat205/notes/L10.pdf · Sections 5.1 & 5.2 Sampling distribution for Y Section 6.2

Sections 5.1 & 5.2 Sampling distribution for YSection 6.2 Standard error of Y

Section 6.3 Confidence interval for µ

Interpretation of CI

The CI Y ± t0.025SEY is random until we see Y = y .

Then the CI either covers µ or not, and we don’t know which!

After we compute the observed CI, we talk about“confidence” not “probability” (bottom, p. 181).

If we did a meta-experiment and collected samples of size nrepeatedly and formed 95% CI’s, approximately 95 in 100would cover µ.

Increasing n only makes the intervals smaller; still 95% of theCI’s would cover µ.

However, we only get to see one of these intervals, because weonly take one sample.

33 / 36

Page 34: L10: Sections 5.1, 5.2, 6.2 and 6 - University of South ...people.stat.sc.edu/sshen/courses/17fstat205/notes/L10.pdf · Sections 5.1 & 5.2 Sampling distribution for Y Section 6.2

Sections 5.1 & 5.2 Sampling distribution for YSection 6.2 Standard error of Y

Section 6.3 Confidence interval for µ

Eggshell thickness n = 5

Meta-experiment for eggshell thickness where µ = 0.38 mm &σ = 0.03 mm.

34 / 36

Page 35: L10: Sections 5.1, 5.2, 6.2 and 6 - University of South ...people.stat.sc.edu/sshen/courses/17fstat205/notes/L10.pdf · Sections 5.1 & 5.2 Sampling distribution for Y Section 6.2

Sections 5.1 & 5.2 Sampling distribution for YSection 6.2 Standard error of Y

Section 6.3 Confidence interval for µ

Eggshell thickness n = 20

Meta-experiment for eggshell thickness where µ = 0.38 mm &σ = 0.03 mm.

35 / 36

Page 36: L10: Sections 5.1, 5.2, 6.2 and 6 - University of South ...people.stat.sc.edu/sshen/courses/17fstat205/notes/L10.pdf · Sections 5.1 & 5.2 Sampling distribution for Y Section 6.2

Sections 5.1 & 5.2 Sampling distribution for YSection 6.2 Standard error of Y

Section 6.3 Confidence interval for µ

Review

A confidence interval provides a plausible range for µ.

Since Y is normal, the 68/95/99.7 rule says µ is withinY ± 2SEY 95% of the time.

This interval is too small; Gosset introduced the t distributionto make the interval more accurate Y ± t0.025SEY ;t.test(sample) in R takes care of the details.

For n < 30 the data must be normal; check this with normalprobability plot. For n ≥ 30 don’t worry about it.

Interpretation is important. “With 95% confidence the truemean of population characterstic is between a and b

units .”

36 / 36