17
Two-Sample Tests of Hypothesis and Analysis of Variance Chapters 11 & 12 Dr. Richard Jerz © 2017 rjerz.com 1

Ch11 and Ch12 - Two-Sample Tests of Hypothesis and ... Tests of Hypothesis and ... “Special” Test Statistics 10-8 ... Ch11 and Ch12 - Two-Sample Tests of Hypothesis and Variance

  • Upload
    lamnhi

  • View
    253

  • Download
    2

Embed Size (px)

Citation preview

Page 1: Ch11 and Ch12 - Two-Sample Tests of Hypothesis and ... Tests of Hypothesis and ... “Special” Test Statistics 10-8 ... Ch11 and Ch12 - Two-Sample Tests of Hypothesis and Variance

Two-SampleTestsofHypothesisand

AnalysisofVarianceChapters11&12

Dr.RichardJerz

© 2017 rjerz.com1

Page 2: Ch11 and Ch12 - Two-Sample Tests of Hypothesis and ... Tests of Hypothesis and ... “Special” Test Statistics 10-8 ... Ch11 and Ch12 - Two-Sample Tests of Hypothesis and Variance

GOALS

• Conductatestofahypothesisaboutthedifferencebetweentwoindependentpopulationmeans

© 2017 rjerz.com2

Page 3: Ch11 and Ch12 - Two-Sample Tests of Hypothesis and ... Tests of Hypothesis and ... “Special” Test Statistics 10-8 ... Ch11 and Ch12 - Two-Sample Tests of Hypothesis and Variance

Comparingtwopopulations–SomeExamples

• IsthereadifferenceintheaveragevalueofresidentialrealestatesoldbymaleagentsandfemaleagentsinsouthFlorida?

• IsthereadifferenceinthemeannumberofdefectsproducedbyfirstshiftandsecondshiftsatKimbleProducts?

• Isthereadifferenceinthemeannumberofdaysabsentbetweenworkersunder21yearsoldandworkersolderthan60yearsoldinthefast-foodindustry?

• Isthereanincreaseintheproductionrateifmusicispipedintotheproductionarea?

© 2017 rjerz.com3

Page 4: Ch11 and Ch12 - Two-Sample Tests of Hypothesis and ... Tests of Hypothesis and ... “Special” Test Statistics 10-8 ... Ch11 and Ch12 - Two-Sample Tests of Hypothesis and Variance

FormatofHypotheses

• Thehypothesesforcomparingtwoindependentpopulationmeansμ1 andμ2 are:

© 2017 rjerz.com4

Page 5: Ch11 and Ch12 - Two-Sample Tests of Hypothesis and ... Tests of Hypothesis and ... “Special” Test Statistics 10-8 ... Ch11 and Ch12 - Two-Sample Tests of Hypothesis and Variance

PossibleScenarios

1. Populationσ2’sareknown2. Populationσ2’sareunknown

1. Areσ2’sequal?2. Areσ2’sunequal?

© 2017 rjerz.com5

Page 6: Ch11 and Ch12 - Two-Sample Tests of Hypothesis and ... Tests of Hypothesis and ... “Special” Test Statistics 10-8 ... Ch11 and Ch12 - Two-Sample Tests of Hypothesis and Variance

StatisticalMethods

• Historicalmethod(usingtables)• Computea“special”teststatistic,eitherzort

• Compareittotheteststatisticofthedesiredconfidencelevel(oralpha).

• Modernmethod• Computethep-value(probability)andcomparethistotheminimumacceptableerror(α).Ifthep-valueissmallerthanα,thereisadifference(rejectnullthattheyarethesame.)

© 2017 rjerz.com6

Page 7: Ch11 and Ch12 - Two-Sample Tests of Hypothesis and ... Tests of Hypothesis and ... “Special” Test Statistics 10-8 ... Ch11 and Ch12 - Two-Sample Tests of Hypothesis and Variance

PossibleScenarios

• Populationσ2’sareknown:Zstatistic• Populationσ2’sareunknown:Tstatistic

1. Ares2’sequal?2. Ares2’sunequal?

Saidalittledifferently• Ifthepopulationvariancesσ12 andσ22areknown,thenusethenormaldistribution.

• Ifpopulationvariancesareunknownandestimatedusings12 ands22,thenusetheStudent-tdistribution.

© 2017 rjerz.com7

Page 8: Ch11 and Ch12 - Two-Sample Tests of Hypothesis and ... Tests of Hypothesis and ... “Special” Test Statistics 10-8 ... Ch11 and Ch12 - Two-Sample Tests of Hypothesis and Variance

“Special”TestStatistics10-8

© 2017 rjerz.com8

Page 9: Ch11 and Ch12 - Two-Sample Tests of Hypothesis and ... Tests of Hypothesis and ... “Special” Test Statistics 10-8 ... Ch11 and Ch12 - Two-Sample Tests of Hypothesis and Variance

Case3:UnknownVariances,AssumedUnequal

• Welch-Satterthwaite test

• with degrees of freedom

• A Quick Rule for degrees of freedom is to use min(n1 – 1, n2 – 1).

10-9

© 2017 rjerz.com9

Page 10: Ch11 and Ch12 - Two-Sample Tests of Hypothesis and ... Tests of Hypothesis and ... “Special” Test Statistics 10-8 ... Ch11 and Ch12 - Two-Sample Tests of Hypothesis and Variance

AnalysisMethodology

• MSExcel• Testforequalmeans,knownpopulationvariances

• Testforequalvariances• Testforequalmeans,unknownpopulationvariances

© 2017 rjerz.com10

Page 11: Ch11 and Ch12 - Two-Sample Tests of Hypothesis and ... Tests of Hypothesis and ... “Special” Test Statistics 10-8 ... Ch11 and Ch12 - Two-Sample Tests of Hypothesis and Variance

AlternativeExcelMethod–DataAnalysisAdd-in

• Excel:Data|Data Analysis

© 2017 rjerz.com11

Page 12: Ch11 and Ch12 - Two-Sample Tests of Hypothesis and ... Tests of Hypothesis and ... “Special” Test Statistics 10-8 ... Ch11 and Ch12 - Two-Sample Tests of Hypothesis and Variance

ComparingTwoVariances– FStatistic

• Formatofhypotheses• Totestwhethertwopopulationmeansareequal,wemayalsoneedtotestwhethertwopopulationvariancesareequal.

• Thehypothesesmaybestatedas

© 2017 rjerz.com12

Page 13: Ch11 and Ch12 - Two-Sample Tests of Hypothesis and ... Tests of Hypothesis and ... “Special” Test Statistics 10-8 ... Ch11 and Ch12 - Two-Sample Tests of Hypothesis and Variance

CharacteristicsofF-Distribution

• Thereisa“family”ofFDistributions.

• Eachmemberofthefamilyisdeterminedbytwoparameters:thenumeratordegreesoffreedomandthedenominatordegreesoffreedom.

• Fcannotbenegative,anditisacontinuousdistribution.

• TheFdistributionispositivelyskewed.

• Itsvaluesrangefrom0to¥• AsF®¥ thecurveapproaches

theX-axis.© 2017 rjerz.com13

Page 14: Ch11 and Ch12 - Two-Sample Tests of Hypothesis and ... Tests of Hypothesis and ... “Special” Test Statistics 10-8 ... Ch11 and Ch12 - Two-Sample Tests of Hypothesis and Variance

TheFTest

• Theteststatisticistheratioofthesamplevariances:

• If the variances are equal, this ratio should be near unity: F » 1

10-14

© 2017 rjerz.com14

Page 15: Ch11 and Ch12 - Two-Sample Tests of Hypothesis and ... Tests of Hypothesis and ... “Special” Test Statistics 10-8 ... Ch11 and Ch12 - Two-Sample Tests of Hypothesis and Variance

TheFTest

• Iftheteststatisticisfarbelow1orabove1,wewouldrejectthehypothesisofequalpopulationvariances.

10-15

© 2017 rjerz.com15

Page 16: Ch11 and Ch12 - Two-Sample Tests of Hypothesis and ... Tests of Hypothesis and ... “Special” Test Statistics 10-8 ... Ch11 and Ch12 - Two-Sample Tests of Hypothesis and Variance

AssumptionsoftheFTest

• Itissensitivetonon-normalityofthesampledpopulations.

• TheFtestassumesthatthepopulationsbeingsampledarenormal.

© 2017 rjerz.com16

Page 17: Ch11 and Ch12 - Two-Sample Tests of Hypothesis and ... Tests of Hypothesis and ... “Special” Test Statistics 10-8 ... Ch11 and Ch12 - Two-Sample Tests of Hypothesis and Variance

Examples

• P368• P377• P380,problem17• P381• P384,problem22• P386• P405

© 2017 rjerz.com17