Business Statistics CONTENTS The one-sample -test for Hypotheses - - PowerPoint PPT Presentation

โ–ถ
business statistics contents the one sample test for
SMART_READER_LITE
LIVE PREVIEW

Business Statistics CONTENTS The one-sample -test for Hypotheses - - PowerPoint PPT Presentation

: THE ONE-SAMPLE -TEST AND SPSS Business Statistics CONTENTS The one-sample -test for Hypotheses and SPSS Old exam question Further study THE ONE-SAMPLE -TEST FOR When to use the one-sample -test? It


slide-1
SLIDE 1

๐œˆ: THE ONE-SAMPLE ๐‘ข-TEST AND SPSS

Business Statistics

slide-2
SLIDE 2

The one-sample ๐‘ข-test for ๐œˆ Hypotheses and SPSS Old exam question Further study CONTENTS

slide-3
SLIDE 3

When to use the one-sample ๐‘จ-test? โ–ช It relies on the fact that the distribution of เดค ๐‘Œ is normal with ๐œˆ เดค

๐‘Œ = ๐œˆ๐‘Œ and ๐œ เดค ๐‘Œ = ๐œ๐‘Œ ๐‘œ, so on the CLT

โ–ช So it can be used to test a hypothesis of the mean only

โ–ช not a hypothesis on ๐œ, median, etc.

โ–ช It works when the population ๐‘Œ is normal

โ–ช or when ๐‘Œ is symmetric and ๐‘œ โ‰ฅ 15 โ–ช or when ๐‘œ โ‰ฅ 30

โ–ช It requires knowledge of ๐œ๐‘Œ

โ–ช so knowing ๐‘ก๐‘Œ will not work โ–ช that is a problem!

THE ONE-SAMPLE ๐‘ข-TEST FOR ๐œˆ

Rule of thumb: use of CLT for mean justified when ๐‘œ โ‰ฅ 30

slide-4
SLIDE 4

So, what to do if you donโ€™t know ๐œ๐‘Œ? โ–ช Luckily, we can estimate the population variance ๐œ๐‘Œ

2 from the

sample variance ๐‘ก๐‘Œ

2

โ–ช calculate the test statistic

เดค ๐‘Œโˆ’๐œˆเดฅ

๐‘Œ

๐‘กเดฅ

๐‘Œ

=

เดค ๐‘Œโˆ’๐œˆ๐‘Œ ๐‘ก๐‘Œ/ ๐‘œ instead of เดค ๐‘Œโˆ’๐œˆเดฅ

๐‘Œ

๐œเดฅ

๐‘Œ

=

เดค ๐‘Œโˆ’๐œˆ๐‘Œ ๐œ๐‘Œ/ ๐‘œ?

Sure, we can ... โ–ช but instead of

เดค ๐‘Œโˆ’๐œˆเดฅ

๐‘Œ

๐œเดฅ

๐‘Œ ~๐‘‚ 0,1 , we have

เดค ๐‘Œ โˆ’ ๐œˆ เดค

๐‘Œ

๐‘ก เดค

๐‘Œ

~๐‘ข๐‘œโˆ’1 โ–ช where ๐‘ขdf is the ๐‘ข-distribution with df degrees of freedom

THE ONE-SAMPLE ๐‘ข-TEST FOR ๐œˆ

slide-5
SLIDE 5

Example: โ–ช sample of ๐‘œ = 100 body heights โ–ช sample mean าง ๐‘ฆ = 179.1 cm โ–ช sample variance ๐‘ก๐‘Œ

2 = 212.4 cm2

We think (or hope, or fear) that ๐œˆ๐‘Œ < 181 cm Use the five-step procedure โ–ช Steps 1-2: as before (๐ผ0: ๐œˆ โ‰ฅ 181) โ–ช Steps 3-5: see below THE ONE-SAMPLE ๐‘ข-TEST FOR ๐œˆ

slide-6
SLIDE 6

โ–ช Step 3

โ–ช under least extreme version of ๐ผ0:

เดค ๐‘Œโˆ’181 212.4/100 ~๐‘ข99

โ–ช no further assumptions required (because ๐‘œ โ‰ฅ 30)

โ–ช Step 4

โ–ช value of test statistic ๐‘ขcalc = โˆ’1.3037 โ–ช critical value of ๐‘ข from the table is ๐‘ขcrit,lower,0.05,df=99 = โˆ’ 1.660

โ–ช Step 5

โ–ช ๐‘ขcalc โˆ‰ ๐‘†crit, so do not reject ๐ผ0 โ–ช conclude that there is no evidence for ๐œˆ < 181

THE ONE-SAMPLE ๐‘ข-TEST FOR ๐œˆ

โˆ’1.660

slide-7
SLIDE 7

Summing up: โ–ช ๐œ๐‘Œ known:

โ–ช use ๐‘จ-table/perform ๐‘จ-test

โ–ช ๐œ๐‘Œ estimated by ๐‘ก๐‘Œ:

โ–ช use ๐‘ข-table/perform ๐‘ข-test with df = ๐‘œ โˆ’ 1 degrees of freedom

โ–ช In both cases:

โ–ช use two-tailed critical value (๐›ฝ/2) to construct a confidence interval โ–ช use two-tailed critical value (๐›ฝ/2) to construct a critical region for a two-sided hypothesis test โ–ช use one-tailed critical value (๐›ฝ) to construct a critical region for a

  • ne-sided hypothesis test

THE ONE-SAMPLE ๐‘ข-TEST FOR ๐œˆ

slide-8
SLIDE 8

We test a hypothesis ๐ผ0: ๐œˆ = 310 with a sample size ๐‘œ = 50 and ๐œ unknown. Which statements are correct?

  • A. We can use the ๐‘จ-test.
  • B. We can use the ๐‘ข-test.
  • C. We canโ€™t perform this test.
  • D. The sample is normally distributed.
  • E. The population is normally distributed.
  • F. The sampling distribution of the mean is normal.

EXERCISE 1

slide-9
SLIDE 9

Using SPSS for the one-sample ๐‘จ-test โ–ช This is not possible! โ–ช SPSS (realistically) assumes you donโ€™t know ๐œ๐‘Œ โ–ช SPSS will always use ๐‘ก๐‘Œ to estimate ๐œ๐‘Œ and then do a

  • ne-sample ๐‘ข-test

HYPOTHESES AND SPSS

slide-10
SLIDE 10

Using SPSS for the one-sample ๐‘ข-test โ–ช Claim: the average life expectancy is 68 year HYPOTHESES AND SPSS

๐ผ0: ๐œˆ๐‘Œ = 68 ๐‘ขcalc Under ๐ผ0: ๐‘ˆ~๐‘ข152 ๐‘ž-value ๐‘Œ=life expectancy

slide-11
SLIDE 11

But look carefully: โ–ช it is a two-sided test (SPSS says: two-tailed) HYPOTHESES AND SPSS

๐ผ0: ๐œˆ๐‘Œ = 68 ๐‘ž-value

slide-12
SLIDE 12

Doing a one-sided test with SPSS โ–ช How to do a one-sided ๐‘ข-test in SPSS?

โ–ช we could do it by hand with the intermediate results โ–ช we could do it by hand with the two-sided results โ–ช you must be able to do both

โ–ช Example:

โ–ช null hypothesis ๐ผ0: ๐œˆ โ‰ฅ 68 โ–ช sample with ๐‘œ = 153 yields าง ๐‘ฆ = 64.515 and ๐‘ก = 12.7937

HYPOTHESES AND SPSS

64.515 โˆ’ 68 153 โˆ’ 1

slide-13
SLIDE 13

Two-sided โ–ช ๐‘„ เดค ๐‘Œ โ‰ค 64.515 + ๐‘„ เดค ๐‘Œ โ‰ฅ 71.485 = ๐‘„ แ‰€ แ‰ ๐‘ข โ‰ค

64.515โˆ’68 12.7937/ 153 + ๐‘„ ๐‘ข โ‰ฅ 71.485โˆ’68 12.7937/ 153 = ๐‘„แˆบ

แˆป ๐‘ข โ‰ค โˆ’3.369 + ๐‘„ ๐‘ข โ‰ฅ 3.369 โ–ช use SPSS for ๐‘ขdf=152: ๐‘ž = 0.001 HYPOTHESES AND SPSS

68 + 68 โˆ’ 64.515

slide-14
SLIDE 14

One-sided (right-sided) and าง ๐‘ฆ < ๐œˆ0 โ–ช ๐‘„ เดค ๐‘Œ โ‰ค 64.515 = ๐‘„ ๐‘ข โ‰ค

64.515โˆ’68 12.7937/ 153 =

๐‘„ ๐‘ข โ‰ค โˆ’3.369 โ–ช this is exactly half of the reported two-sided ๐‘ž-value โ–ช ๐‘žโˆ’value = 0.0005 So, to move from the SPSS-reported two-sided ๐‘ž-value to right-sided ๐‘ž-value, in case of าง ๐‘ฆ < ๐œˆ0: โ–ช divide by 2 ๐‘žright = ๐‘žtwo/2 HYPOTHESES AND SPSS

slide-15
SLIDE 15

One-sided (left-sided) and าง ๐‘ฆ < ๐œˆ โ–ช ๐‘„ เดค ๐‘Œ โ‰ฅ 64.515 = ๐‘„ ๐‘ข โ‰ฅ

64.515โˆ’68 12.7937/ 153 =

๐‘„ ๐‘ข โ‰ฅ โˆ’3.369 โ–ช this is exactly 1 โˆ’ ๐‘„ ๐‘ข โ‰ค โˆ’3.369 โ–ช ๐‘žโˆ’value = 0.9995 So, to move from the SPSS-reported two-sided ๐‘ž-value to left- sided ๐‘ž-value, in case of าง ๐‘ฆ > ๐œˆ0: โ–ช divide by 2 and subtract the result from 1 ๐‘žleft = 1 โˆ’ ๐‘žtwo/2 HYPOTHESES AND SPSS

slide-16
SLIDE 16

Another example โ–ช Suppose โ–ช ๐ผ0: ๐œˆ = 3 โ–ช ๐›ฝ = 0.05 โ–ช าง ๐‘ฆ = 2.84 โ–ช ๐‘žโˆ’value = 2 ร— ๐‘„

๐œˆ=3 เดค

๐‘Œ โ‰ค 2.84 = 0.0456 HYPOTHESES AND SPSS

slide-17
SLIDE 17

Both าง ๐‘ฆ = 2.84 and าง ๐‘ฆ = 3.16 give the same two-sided ๐‘ž- value! โ–ช so which is true when ๐ผ0: ๐œˆ โ‰ฅ 3 and which when ๐ผ0: ๐œˆ โ‰ค 3? HYPOTHESES AND SPSS

slide-18
SLIDE 18

๐‘ฐ๐Ÿ: ๐‚ โ‰ค ๐Ÿ’ (right-sided) ๐‘ฐ๐Ÿ: ๐‚ โ‰ฅ ๐Ÿ’ (left-sided) าง ๐‘ฆ = 2.84 ( าง ๐‘ฆ < ๐œˆ0) ๐‘„

๐œˆ=3 เดค

๐‘Œ โ‰ฅ 2.84 = 1 โˆ’

๐‘žSPSS 2

๐‘„

๐œˆ=3 เดค

๐‘Œ โ‰ค 2.84 =

๐‘žSPSS 2

าง ๐‘ฆ = 3.16 ( าง ๐‘ฆ > ๐œˆ0) ๐‘„

๐œˆ=3 เดค

๐‘Œ โ‰ฅ 3.16 =

๐‘žSPSS 2

๐‘„

๐œˆ=3 เดค

๐‘Œ โ‰ค 3.16 = 1 โˆ’

๐‘žSPSS 2

HYPOTHESES AND SPSS

slide-19
SLIDE 19

Suppose we test a hypothesis on the mean ๐ผ0: ๐œˆ โ‰ฅ 310 with significance level ๐›ฝ = 0.05. We sample data, and perform the test and find a sample mean าง ๐‘ฆ = 307 and a two- sided ๐‘ž-value 0.08. What do we conclude? EXERCISE 2

slide-20
SLIDE 20

Suppose we have the following result:

  • A. reject ๐ผ0: ๐œˆ โ‰ค 6.
  • B. ๐‘žโˆ’value < ๐›ฝ.
  • C. probably ๐œˆ > 6.

What is a correct sequence? Aโ†’Bโ†’C, Cโ†’Bโ†’A, Bโ†’Aโ†’C, etc? EXERCISE 3

slide-21
SLIDE 21

26 March 2015, Q3b OLD EXAM QUESTION

slide-22
SLIDE 22

Doane & Seward 5/E 9.1-9.5 Tutorial exercises week 2

  • ne-sided test in SPSS

FURTHER STUDY