Presentation is loading. Please wait.

Presentation is loading. Please wait.

Last Time (Sampling &) Estimation Confidence Intervals Started Hypothesis Testing.

Similar presentations


Presentation on theme: "Last Time (Sampling &) Estimation Confidence Intervals Started Hypothesis Testing."— Presentation transcript:

1 Last Time (Sampling &) Estimation Confidence Intervals Started Hypothesis Testing

2 CONFIDENCE INTERVAL FOR  X WHEN  X KNOWN 100(1 -  )% confidence interval ± · P( Confidence Interval encloses  X ) = 1 -  Note:  = P(Confidence Interval misses  X ) Note the relationship between:  = probability of missing  X n = sample size = half-width of the confidence interval = margin of error Fix any two and the third is determined! XX

3 CONFIDENCE INTERVAL FOR  X WHEN  X KNOWN 100(1 -  )% confidence interval ± · Margin of Error Confidence Intervals are wide if population variance of X is large sample size is small Wide CI means that we are not very precise in estimating the population parameter (here the population mean)

4 Caution! Confidence interval:

5 CONFIDENCE INTERVAL FOR  X WHEN  X KNOWN

6

7 1.645-1.645 N(0,1)

8 CONFIDENCE INTERVAL FOR  X WHEN  X KNOWN 1.960-1.960 N(0,1)

9 CONFIDENCE INTERVAL FOR  X WHEN  X KNOWN 2.576-2.576 N(0,1)

10 Confidence interval for  X

11 Example: Let’s consider once more the age of entering students in U.S. B-schools. Suppose (for simplicity) that  X = 3. An old government publication says the average age is  X = 28. You think that it is higher and you want to check your intuition statistically. You collect a random sample of size n=330. It turns out in the sample the average age is 28.5.

12 Example: Claim of the Government Publication:  X = 28 Null Hypothesis: H 0 :  X = 28 (Status Quo, Common Wisdom) Alternative Hypothesis: H a :  X > 28 (Your claim) Rules of the game: Unless you can provide a lot of evidence for your claim, the status quo will prevail. The null hypothesis will be retained until enough evidence has been accumulated against it. In particular, all calculations will assume that  X = 28. (!!!)

13  H a is the hypothesis you are gathering evidence in support of.  H 0 is the fallback option = the hypothesis you would like to reject.  Reject H 0 only when there is lots of evidence against it.  A technicality: always include “=” in H 0  H 0 (with = sign) is assumed in all mathematical calculations!!! Innocent Guilty

14 In our Example: Recall: Suppose we know that  X = 3. Suppose that  X = 28. What is the probability that is more than 28.5? (n=330) $1,000,000 Question: How much evidence do we have against H o ? Assuming H o, how unusual is the sample mean 28.5?

15 Suppose we know that  X = 3. H o :  X = 28, H a :  X > 28 What is the probability that is more than 28.5? (n=330) Given a population mean of 28, the probability of a sample mean further to the right than 28.5 is.0012 The p-value of this hypothesis test is.0012: Given that the Null Hypothesis holds, it is extremely unlikely to observe a sample mean equal or larger the one we obtained.  REJECT H o

16 Hypothesis Testing p-value

17 Hypothesis Testing p-value

18 Hypothesis Testing p-value

19 We will get back to hypothesis testing using p-values towards the end of class. Before that, let’s think once more about our legal system and the “innocent until proven guilty” rule. We will talk about three different methods of conducting hypothesis tests.

20 Today More on hypothesis testing…

21 Great! Type II Error Great! Type I Error Four scenarios when making a decision based on a sample

22 Recall:  H A is the hypothesis you are gathering evidence in support of.  H 0 is the fallback option = the hypothesis you would like to reject.  Reject H 0 only when there is lots of evidence against it. Specify the probability of Type I error you are ready to tolerate. (  = significance level of the test) Reject H 0 if, P(observing something more extreme than what you observed)  

23 Example

24 100

25 Example

26 ? ? 1.96 2.5 -1.96

27 Example Alternatively, we could compute 95% Confidence Interval for  : 100.5 100.108 100.892 100

28 Example Would the observed evidence (sample mean =100.5) be sufficient to reject the null hypothesis at:   =.1 significance level?   =.02 significance level?   =.01 significance level?   =.001 significance level? What is the smallest  for which the observed evidence would be sufficient for rejecting H 0 ?

29 100 Computing a p-value for the sample mean Shaded area is p-value of observed sample mean Given null hypothesis, how likely am I to observe a sample mean more extreme than the one I actually observed?

30 100 Computing a p-value for the sample mean Shaded area is p-value of observed sample mean Given null hypothesis, how likely am I to observe a sample mean more extreme than the one I actually observed?

31 How to compute (two-sided) p-value: Example 2.5-2.5

32 P-value

33 Three equivalent methods of hypothesis testing (  =significance level)

34 P-value (the amount of doubt we can have) “Innocent until proven guilty beyond a reasonable doubt”. How much doubt is “a reasonable doubt”? Is there reasonable doubt if 5% or fewer of innocent people show the behavior that the accused showed? P-value: Among innocent people, only a proportion p display the behavior that the accused has displayed. If p is very small, then the accused is proven guilty beyond a reasonable doubt.

35 P-value

36

37

38 Hypothesis Testing using Critical Values N(0,1)

39 Hypothesis Testing using Critical Values N(0,1)

40 Hypothesis Testing using Critical Values N(0,1)


Download ppt "Last Time (Sampling &) Estimation Confidence Intervals Started Hypothesis Testing."

Similar presentations


Ads by Google