Top Banner
1 Statistics 300: Elementary Statistics Section 8-2
49

Statistics 300: Elementary Statistics

Jan 02, 2016

Download

Documents

trenton-dempsey

Statistics 300: Elementary Statistics. Section 8-2. Hypothesis Testing. Principles Vocabulary Problems. Principles. Game I say something is true Then we get some data Then you decide whether Mr. Larsen is correct, or Mr. Larsen is a lying dog. Risky Game. Situation #1 - PowerPoint PPT Presentation
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Statistics 300: Elementary Statistics

1

Statistics 300:Elementary Statistics

Section 8-2

Page 2: Statistics 300: Elementary Statistics

2

Hypothesis Testing

• Principles

• Vocabulary

• Problems

Page 3: Statistics 300: Elementary Statistics

3

Principles• Game

• I say something is true

• Then we get some data

• Then you decide whether– Mr. Larsen is correct, or

– Mr. Larsen is a lying dog

Page 4: Statistics 300: Elementary Statistics

4

Risky Game• Situation #1

• This jar has exactly (no more and no less than) 100 black marbles

• You extract a red marble

• Correct conclusion:– Mr. Larsen is a lying dog

Page 5: Statistics 300: Elementary Statistics

5

Principles

• My statement will lead to certain probability rules and results

• Probability I told the truth is “zero”

• No risk of false accusation

Page 6: Statistics 300: Elementary Statistics

6

Principles• Game

• I say something is true

• Then we get some data

• Then you decide whether– Mr. Larsen is correct, or

– Mr. Larsen has inadvertently made a very understandable error

Page 7: Statistics 300: Elementary Statistics

7

Principles

• My statement will lead to certain probability rules and results

• Some risk of false accusation

• What risk level do you accept?

Page 8: Statistics 300: Elementary Statistics

8

Risky Game• Situation #2

• This jar has exactly (no more and no less than) 999,999 black marbles and one red marble

• You extract a red marble

• Correct conclusion:– Mr. Larsen is mistaken

Page 9: Statistics 300: Elementary Statistics

9

Risky Game• Situation #2 (continued)

• Mr. Larsen is mistaken because if he is right, the one red marble was a 1-in-a-million event.

• Almost certainly, more than red marbles are in the far than just one

Page 10: Statistics 300: Elementary Statistics

10

Risky Game• Situation #3

• This jar has 900,000 black marbles and 100,000 red marbles

• You extract a red marble

• Correct conclusion:– Mr. Larsen’s statement is

reasonable

Page 11: Statistics 300: Elementary Statistics

11

Risky Game• Situation #3 (continued)

• Mr. Larsen’s statement is reasonable because it makes P(one red marble) = 10%.

• A ten percent chance is not too far fetched.

Page 12: Statistics 300: Elementary Statistics

12

Principles (reworded)

• The statement or “hypothesis” will lead to certain probability rules and results

• Some risk of false accusation

• What risk level do you accept?

Page 13: Statistics 300: Elementary Statistics

13

Risky Game• Situation #4

• This jar has 900,000 black marbles and 100,000 red marbles

• A random sample of four marbles has 3 red and 1 black

• If Mr. Larsen was correct, what is the probability of this event?

Page 14: Statistics 300: Elementary Statistics

14

Risky Game• Situation #4 (continued)

• Binomial: n=4, x=1, p=0.9

• Mr. Larsen’s statement is not reasonable because it makes P(three red marbles) = 0.0036.

• A less than one percent chance is too far fetched.

Page 15: Statistics 300: Elementary Statistics

15

Formal Testing MethodStructure and Vocabulary

• The risk you are willing to take of making a false accusation is called the Significance Level

• Called “alpha” or • P[Type I error]

Page 16: Statistics 300: Elementary Statistics

16

Conventional levels______________________

• Two-tail One-tail• 0.20 0.10• 0.10 0.05• 0.05 0.025• 0.02 0.01• 0.01 0.005

Page 17: Statistics 300: Elementary Statistics

17

Formal Testing Method Structure and Vocabulary

• Critical Value– similar to Z/2 in confidence int.

– separates two decision regions

• Critical Region– where you say I am incorrect

Page 18: Statistics 300: Elementary Statistics

18

Formal Testing Method Structure and Vocabulary

• Critical Value and Critical Region are based on three things:– the hypothesis

– the significance level

– the parameter being tested

• not based on data from a sample

• Watch how these work together

Page 19: Statistics 300: Elementary Statistics

19

Test Statistic for

dfnt

n

s

x1

0 ~

Page 20: Statistics 300: Elementary Statistics

20

Test Statistic for pnp0>5 and nq0>5)

1,0~ˆ

00

0 N

nqp

pp

Page 21: Statistics 300: Elementary Statistics

21

Test Statistic for

2

df1n20

2

χ~σ

s 1n

Page 22: Statistics 300: Elementary Statistics

22

Formal Testing Method Structure and Vocabulary

• H0: always is = or

• H1: always is > or <

Page 23: Statistics 300: Elementary Statistics

23

Formal Testing Method Structure and Vocabulary

• In the alternative hypotheses, H1:, put the parameter on the left and the inequality symbol will point to the “tail” or “tails”

• H1: , p, is “two-tailed”

• H1: , p, < is “left-tailed”

• H1: , p, > is “right-tailed”

Page 24: Statistics 300: Elementary Statistics

24

Formal Testing Method Structure and Vocabulary

• Example of Two-tailed Test– H0: = 100

– H1: 100

Page 25: Statistics 300: Elementary Statistics

25

Formal Testing Method Structure and Vocabulary

• Example of Two-tailed Test– H0: = 100

– H1: 100

• Significance level, = 0.05

• Parameter of interest is

Page 26: Statistics 300: Elementary Statistics

26

Formal Testing Method Structure and Vocabulary

• Example of Two-tailed Test– H0: = 100

– H1: 100

• Significance level, = 0.10

• Parameter of interest is

Page 27: Statistics 300: Elementary Statistics

27

Formal Testing Method Structure and Vocabulary

• Example of Left-tailed Test– H0: p 0.35

– H1: p < 0.35

Page 28: Statistics 300: Elementary Statistics

28

Formal Testing Method Structure and Vocabulary

• Example of Left-tailed Test– H0: p 0.35

– H1: p < 0.35

• Significance level, = 0.05

• Parameter of interest is “p”

Page 29: Statistics 300: Elementary Statistics

29

Formal Testing Method Structure and Vocabulary

• Example of Left-tailed Test– H0: p 0.35

– H1: p < 0.35

• Significance level, = 0.10

• Parameter of interest is “p”

Page 30: Statistics 300: Elementary Statistics

30

Formal Testing Method Structure and Vocabulary

• Example of Right-tailed Test– H0: 10

– H1: > 10

Page 31: Statistics 300: Elementary Statistics

31

Formal Testing Method Structure and Vocabulary

• Example of Right-tailed Test– H0: 10

– H1: > 10

• Significance level, = 0.05

• Parameter of interest is

Page 32: Statistics 300: Elementary Statistics

32

Formal Testing Method Structure and Vocabulary

• Example of Right-tailed Test– H0: 10

– H1: > 10

• Significance level, = 0.10

• Parameter of interest is

Page 33: Statistics 300: Elementary Statistics

33

Claims

• is, is equal to, equals =• less than <• greater than >• not, no less than • not, no more than • at least • at most

Page 34: Statistics 300: Elementary Statistics

34

Claims

• is, is equal to, equals• H0: =• H1:

Page 35: Statistics 300: Elementary Statistics

35

Claims

• less than• H0: • H1: <

Page 36: Statistics 300: Elementary Statistics

36

Claims

• greater than• H0: • H1: >

Page 37: Statistics 300: Elementary Statistics

37

Claims

• not, no less than• H0: • H1: <

Page 38: Statistics 300: Elementary Statistics

38

Claims

• not, no more than• H0: • H1: >

Page 39: Statistics 300: Elementary Statistics

39

Claims

• at least• H0: • H1: <

Page 40: Statistics 300: Elementary Statistics

40

Claims

• at most• H0: • H1: >

Page 41: Statistics 300: Elementary Statistics

41

Structure and Vocabulary

• Type I error: Deciding that H0: is wrong when (in fact) it is correct

• Type II error: Deciding that H0: is correct when (in fact) is is wrong

Page 42: Statistics 300: Elementary Statistics

42

Structure and Vocabulary

• Interpreting the test result– The hypothesis is not reasonable

– The Hypothesis is reasonable

• Best to define reasonable and unreasonable before the experiment so all parties agree

Page 43: Statistics 300: Elementary Statistics

43

Traditional Approach to Hypothesis Testing

Page 44: Statistics 300: Elementary Statistics

44

Test Statistic

• Based on Data from a Sample and on the Null Hypothesis, H0:

• For each parameter (, p, ), the test statistic will be different

• Each test statistic follows a probability distribution

Page 45: Statistics 300: Elementary Statistics

45

Traditional Approach

• Identify parameter and claim

• Set up H0: and H1:

• Select significance Level, • Identify test statistic & distribution

• Determine critical value and region

• Calculate test statistic

• Decide: “Reject” or “Do not reject”

Page 46: Statistics 300: Elementary Statistics

46

Next three slides arerepeats of slides 19-21

Page 47: Statistics 300: Elementary Statistics

47

Test Statistic for (small sample size: n)

dfnt

n

s

x1

0 ~

Page 48: Statistics 300: Elementary Statistics

48

Test Statistic for pnp0>5 and nq0>5)

1,0~ˆ

00

0 N

nqp

pp

Page 49: Statistics 300: Elementary Statistics

49

Test Statistic for

2

df1n20

2

χ~σ

s 1n