SLIDE 1
Business Statistics CONTENTS The one-sample -test for Hypotheses - - PowerPoint PPT Presentation
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 2
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
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
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
โช 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
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
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
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
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
But look carefully: โช it is a two-sided test (SPSS says: two-tailed) HYPOTHESES AND SPSS
๐ผ0: ๐๐ = 68 ๐-value
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
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
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
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
Another example โช Suppose โช ๐ผ0: ๐ = 3 โช ๐ฝ = 0.05 โช าง ๐ฆ = 2.84 โช ๐โvalue = 2 ร ๐
๐=3 เดค
๐ โค 2.84 = 0.0456 HYPOTHESES AND SPSS
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
๐ฐ๐: ๐ โค ๐ (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
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
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
26 March 2015, Q3b OLD EXAM QUESTION
SLIDE 22
Doane & Seward 5/E 9.1-9.5 Tutorial exercises week 2
- ne-sided test in SPSS