/
Copyright © 2010 Pearson Education, Inc. Copyright © 2010 Pearson Education, Inc.

Copyright © 2010 Pearson Education, Inc. - PowerPoint Presentation

alida-meadow
alida-meadow . @alida-meadow
Follow
374 views
Uploaded On 2018-03-13

Copyright © 2010 Pearson Education, Inc. - PPT Presentation

Chapter 23 Inference About Means Getting Started Now that we know how to create confidence intervals and test hypotheses about proportions it would be nice to be able to do the same for means ID: 650069

data sample interval confidence sample data confidence interval model normal cont test standard means size population check intervals hypothesis

Share:

Link:

Embed:

Download Presentation from below link

Download Presentation The PPT/PDF document "Copyright © 2010 Pearson Education, Inc..." is the property of its rightful owner. Permission is granted to download and print the materials on this web site for personal, non-commercial use only, and to display it on your personal computer provided you do not modify the materials and that you retain all copyright notices contained in the materials. By downloading content from our website, you accept the terms of this agreement.


Presentation Transcript

Slide1

Copyright © 2010 Pearson Education, Inc.

Chapter 23

Inference About Means Slide2

Getting Started

Now that we know how to create confidence intervals and test hypotheses about proportions,

it would

be nice to be able to do the same for means

.Just as we did before, we will base both our confidence interval and our hypothesis test on the sampling distribution model.The Central Limit Theorem told us that the sampling distribution model for means is Normal with mean μ and standard deviation

 Slide3

All we need is a random sample of quantitative data

.And the true population standard deviation,

σ

.

Well, that’s a problem…Getting Started (cont.)Slide4

Getting Started (cont.)

Proportions have a link between the proportion value and the standard deviation of the sample proportion.

This is not the case with means—knowing the sample mean tells us nothing about

We’ll do the best we can: estimate the population parameter

σ with the sample statistic s.Our resulting standard error is

SE(

 Slide5

Getting Started (cont.)

We now have extra variation in our standard error from

s

, the sample standard deviation.

We need to allow for the extra variation so that it does not mess up the margin of error and P-value, especially for a small sample. And, the shape of the sampling model changes—the model is no longer Normal. So, what is the sampling model?Slide6

Gosset’s

t

William

S.

Gosset, an employee of the Guinness Brewery in Dublin, Ireland, worked long and hard to find out what the sampling model was.The sampling model that Gosset found has been known as Student’s t.The Student’s t-models form a whole family of related distributions that depend on a parameter known as degrees of freedom.

We often denote degrees of freedom as

df

, and the model as

t

df

. Slide7

A Confidence Interval for Means?

A practical sampling distribution model for means

When the conditions are met, the standardized sample mean

follows a Student’s t-model with n – 1 degrees of freedom. We estimate the standard error with

 

 Slide8

A Confidence Interval for Means? (cont.)

When

Gosset

corrected the model for the extra uncertainty, the margin of error got bigger

.Your confidence intervals will be just a bit wider and your P-values just a bit larger than they were with the Normal model.By using the t-model, you’ve compensated for the extra variability in precisely the right way.Slide9

When the conditions are met, we are ready to find the confidence interval for the population mean,

μ

.

The confidence interval is

where the standard error of the mean

is

=

The critical value depends on the particular confidence level,

C

, that you specify and on the number of degrees of freedom,

n

– 1, which we get from the sample size.

 

A Confidence Interval for Means? (cont.)

One-sample t-interval for the meanSlide10

A Confidence Interval for Means? (cont.)

Student’s

t

-models are

unimodal, symmetric, and bell shaped, just like the Normal. But t-models with only a few degrees of freedom have much fatter tails than the Normal. (That’s what makes the margin of error bigger.)Slide11

A Confidence Interval for Means? (cont.)

As the degrees of freedom increase, the

t

-models look more and more like the Normal.

In fact, the t-model with infinite degrees of freedom is exactly Normal.Slide12

Finding t-model Probabilities

Either use the table in your formula packet, or you may use your calculator:

Finding probabilities under curves:

normalcdf

( is used for z-scores (if you know )tcdf( is used for critical t-values (when you use s to estimate )2nd  Distriburtion

tcdf

(lower bound, upper bound, degrees of freedom)

Finding critical values:

2

nd

 DistributioninvT(percentile,

df)  Slide13

Assumptions and Conditions

Gosset

found the

t

-model by simulation. Years later, when Sir Ronald A. Fisher showed mathematically that Gosset was right, he needed to make some assumptions to make the proof work. We will use these assumptions when working with Student’s t.Slide14

Assumptions and Conditions (cont.)

Independence Assumption:

Independence Assumption.

The data values should be independent.

Randomization Condition: The data arise from a random sample or suitably randomized experiment. Randomly sampled data (particularly from an SRS) are ideal.10% Condition: When a sample is drawn without replacement, the sample should be no more than 10% of the population.Slide15

Assumptions and Conditions (cont.)

Normal Population Assumption:

We can never be certain that the data are from a population that follows a Normal model, but we can check

the…

Nearly Normal Condition: The data come from a distribution that is unimodal and symmetric. Check this condition by making a histogram or Normal probability plot.Slide16

Assumptions and Conditions (cont.)

Nearly Normal Condition:

The smaller the sample size

(n

< 15 or so), the more closely the data should follow a Normal model. For moderate sample sizes (n between 15 and 40 or so), the t works well as long as the data are unimodal and reasonably symmetric.

For larger sample sizes, the

t

methods are safe to use unless the data are extremely skewed.Slide17

Summary: Steps Finding t-Intervals

Check Conditions and show that you have checked these!

Random Sample

: Can we assume this?

10% Condition: Do you believe that your sample size is less than 10% of the population size?Nearly Normal: If you have raw data, graph a histogram to check to see if it is approximately symmetric and sketch the histogram on your paper. If you do not have raw data, check to see if the problem states that the distribution is approximately Normal.State the test you are about to conduct (this will come in hand when we learn various intervals and inference tests)

Ex) One sample t-interval

Show your calculations for your t-interval

Report your findings.

Write a sentence explaining what you found.

EX) “We are 95% confident that the true mean weight of men is between 185 and 215 lbs.”Slide18

Example: One-Sample t-interval

Amount of nitrogen oxides (NOX) emitted by light-duty engines (games/mile):

Construct a 95% confidence interval for the mean amount of NOX emitted by light-duty engines.

1.28

1.17

1.16

1.08

0.6

1.32

1.24

0.71

0.49

1.381.20.78

0.95

2.2

1.78

1.83

1.26

1.73

1.31

1.8

1.15

0.97

1.12

0.72

1.31

1.45

1.22

1.32

1.47

1.44

0.51

1.49

1.33

0.86

0.57

1.79

2.27

1.87

2.94

1.16

1.45

1.51

1.47

1.06

2.01

1.39

 

 Slide19

Calculator Tips

Given a set of data:

Enter data into L1

Set up STATPLOT to create a histogram to check the nearly Normal condition

STAT  TESTS  8:TintervalChoose Inpt: Data, then specify your data list (usually L1)Specify frequency – 1 unless you have a frequency distribution that tells you otherwiseChose confidence interval  CalculateGiven sample mean and standard deviation:STAT  TESTS 

8:Tinterval

Choose Stats  enter

Specify the sample mean, standard deviation, and sample size

Chose confidence interval  CalculateSlide20

More Cautions About Interpreting Confidence Intervals

Remember that interpretation of your confidence interval is key.

What NOT to say:

90% of all the vehicles on Triphammer Road drive at a speed between 29.5 and 32.5 mph.”The confidence interval is about the mean not the individual values.“We are 90% confident that a randomly selected vehicle will have a speed between 29.5 and 32.5 mph.”Again, the confidence interval is about the mean

not the individual values.Slide21

More Cautions About Interpreting Confidence Intervals (cont.)

What NOT to say:

“The mean speed of the vehicles is 31.0 mph

90% of the time.”

The true mean does not vary—it’s the confidence interval that would be different had we gotten a different sample.“90% of all samples will have mean speeds between 29.5 and 32.5 mph.”The interval we calculate does not set a standard for every other interval—it is no more (or less) likely to be correct than any other interval.Slide22

More Cautions About Interpreting Confidence Intervals (cont.)

DO SAY:

90% of intervals that could be found in this way would cover the true value.”

Or make it more personal and say, “I am 90% confident that the true mean is between 29.5 and 32.5 mph.”Slide23

Make a Picture, Make a Picture, Make a Picture

Pictures tell us far more about our data set than a list of the data ever could

.

The only reasonable way to check the Nearly Normal Condition is with graphs of the data.

Make a histogram of the data and verify that its distribution is unimodal and symmetric with no outliers.You may also want to make a Normal probability plot to see that it’s reasonably straight.Slide24

A Test for the Mean

The conditions for the one-sample

t

-test for the mean are the same as for the one-sample

t-interval. We test the hypothesis H0:  = 0 using the statistic

The

standard error

of the

sample mean

is

When the conditions are met and the null hypothesis is true, this statistic follows a Student’s t model with n – 1

df

.

We use that model to obtain a P-value.

 

One-sample t-test for the mean

 Slide25

Calculator Tips

Given a set of data:

Enter data into L1

Set up STATPLOT to create a histogram to check the nearly Normal condition

STAT  TESTS  2:T-Test Choose Stored Data, then specify your data list (usually L1)Enter the mean of the null model and indicate where the data are (>, <, or )Calculate

Given sample mean and standard deviation:

STAT

 TESTS 

2:T-Test

Choose Stats  enter

Specify the hypothesized mean and sample statistics

Specify the tail (>, <, or )

Calculate Slide26

Check Conditions and show that you have checked these!

Random Sample

: Can we assume this?

10% Condition

: Do you believe that your sample size is less than 10% of the population size?Nearly Normal: If you have raw data, graph a histogram to check to see if it is approximately symmetric and sketch the histogram on your paper. If you do not have raw data, check to see if the problem states that the distribution is approximately Normal.Steps for Hypothesis testingSlide27

State the test you are about to conduct

Ex) One-Sample t-Test for Means

Set up your hypotheses

H0: HA: Calculate your test statistic

Draw a picture of your desired area under the t-model, and calculate your P-value.

 

Steps for Hypothesis testing (cont.)Slide28

Make your conclusion.

Steps for two-proportion

z-tests (cont.)

P-Value

Action

Conclusion

Low

Reject H

0

The

sample mean is sufficient evidence to conclude

H

A

in context.

High

Fail to reject H

0

The

sample mean

does not

provide us with sufficient evidence to conclude

H

A

in context. Slide29

One Sample T-Test Example

Cola makers test new recipes for loss of sweetness during storage. Trained tasters rate the sweetness before and after storage. Here are the sweetness losses (sweetness before storage minus sweetness after storage) found by 10 tasters for one new cola recipe:

Are these data good evidence that the cola lost sweetness?

2

0.4

0.7

2

-0.4

2.2

-1.3

1.2

1.1

2.3Slide30

Significance and Importance

Remember that “statistically significant” does not mean “actually important” or “meaningful.”

Because

of this, it’s always a good idea when we test a hypothesis to check the confidence interval and think about likely values for the mean.Slide31

Intervals and Tests

Confidence intervals and hypothesis tests are built from the same calculations

.

In fact, they are complementary ways of looking at the same question

.The confidence interval contains all the null hypothesis values we can’t reject with these data.Slide32

Intervals and Tests (cont.)

More precisely, a level

C

confidence interval contains

all of the plausible null hypothesis values that would not be rejected by a two-sided hypothesis text at alpha level 1 – C.So a 95% confidence interval matches a 0.05 level two-sided test for these data.Confidence intervals are naturally two-sided, so they match exactly with two-sided hypothesis tests.When the hypothesis is one sided, the corresponding alpha level is (1 – C)/2.Slide33

Sample Size

To find the sample size needed for a particular confidence level with a particular margin of error (

ME

), solve this equation for

n: The problem with using the equation above is that we don’t know most of the values. We can overcome this:We can use s from a small pilot study.We can use z* in place of the necessary t

value.Slide34

Sample Size (cont.)

Sample size calculations are

never

exact.

The margin of error you find after collecting the data won’t match exactly the one you used to find n.The sample size formula depends on quantities you won’t have until you collect the data, but using it is an important first step.Before you collect data, it’s always a good idea to know whether the sample size is large enough to give you a good chance of being able to tell you what you want to know.Slide35

Degrees of Freedom

If only we knew the true population mean,

µ

, we would find the sample standard deviation as

But, we use instead of µ, though, and that causes a problem.When we use to calculate s, our standard deviation estimate would be too small. The amazing mathematical fact is that we can compensate for the smaller sum exactly by dividing by n – 1 which we call the degrees of freedom.Slide36

What Can Go Wrong?

Don’t confuse proportions and means.

Ways to Not Be Normal:

Beware of multimodality.

The Nearly Normal Condition clearly fails if a histogram of the data has two or more modes.Beware of skewed data.If the data are very skewed, try re-expressing the variable.Set outliers aside—but remember to report on these outliers individually.Slide37

What Can Go Wrong? (cont.)

And of Course:

Watch out for bias—we can never overcome the problems of a biased sample.

Make sure data are independent.Check for random sampling and the 10% Condition.Make sure that data are from an appropriately randomized sample.Slide38

What Can Go Wrong? (cont.)

…And of Course, again:

Interpret your confidence interval correctly.

Many statements that sound tempting are, in fact, misinterpretations of a confidence interval for a mean.

A confidence interval is about the mean of the population, not about the means of samples, individuals in samples, or individuals in the population.Slide39

What have we learned?

Statistical inference for means relies on the same concepts as for proportions—only the mechanics and the model have changed.

What we say about a population mean is inferred from the data.

Student’s

t family based on degrees of freedom.Ruler for measuring variability is SE.Find ME based on that ruler and a student’s t model.Use that ruler to test hypotheses about the population mean.Slide40

What have we learned?

The reasoning of inference, the need to verify that the appropriate assumptions are met, and the proper interpretation of confidence intervals and P-values all remain the same regardless of whether we are investigating means or proportions.Slide41

Assignments: pp. 554 – 559

Day 1: # 1, 3 – 5, 10

Day 2: # 8, 12, 13, 15

Day 3:

# 2, 14, 22, 29Day 4: # 20, 25, 27, 38