business statistics
play

Business Statistics CONTENTS Two types of error The power of a - PowerPoint PPT Presentation

POWER AND DESIGN Business Statistics CONTENTS Two types of error The power of a test Experimental design Choosing sample size Power curves Power and big data Old exam question Further study TWO TYPES OF ERROR What is the precise


  1. POWER AND DESIGN Business Statistics

  2. CONTENTS Two types of error The power of a test Experimental design Choosing sample size Power curves Power and โ€œbig dataโ€ Old exam question Further study

  3. TWO TYPES OF ERROR What is the precise meaning of the significance level ๐›ฝ ? โ–ช ๐›ฝ is the maximum acceptable probability of rejecting the null hypothesis when it is in fact true โ–ช so ๐‘„ reject ๐ผ 0 ๐ผ 0 To be read as: โ€œthe conditional probability There are two possible decisions: of rejecting ๐ผ 0 , given that โ–ช reject ๐ผ 0 ๐ผ 0 is trueโ€ โ–ช do not reject ๐ผ 0 And there are two possible realities: โ–ช ๐ผ 0 is true โ–ช ๐ผ 0 is not true

  4. TWO TYPES OF ERROR Organize the situations in a 2 ร— 2 -table: Correct decision โ–ช no further concern, because OK Wrong decision โ–ช type I error โ–ช type II error

  5. TWO TYPES OF ERROR Probability of a type I error: ๐‘„ reject ๐ผ 0 ๐ผ 0 โ‰ค ๐›ฝ โ–ช conventionally ๐›ฝ = 5% โ–ช but you may choose another significance level if you think that is appropriate โ–ช e.g., aircraft safety: better use ๐›ฝ = 1% or even ๐›ฝ = 0.1% โ–ช e.g., choosing a colour of your shampoo flask: ๐›ฝ = 10% is OK โ–ช Anyhow, you control the maximum type I error by choosing ๐›ฝ in advance โ–ช and accept that you will once in a while reject ๐ผ 0 while it is true

  6. TWO TYPES OF ERROR Probability of a type II error: ๐‘„ do not reject ๐ผ 0 specific ๐ผ 1 = ๐›พ for instance, ๐ผ 0 : ๐œˆ = 10 vs. โ–ช how to choose ๐›พ ? ๐ผ 1 : ๐œˆ = 12 โ–ช You cannot simply control the maximum type II error ๐›พ โ–ช because it depends on the true value of the unknown (!) parameter (that is to be tested itself) โ–ช as well as on ๐›ฝ โ–ช but it could be good to know it, at least โ–ช usually, this is done through the power concept

  7. TWO TYPES OF ERROR Controlling ๐›ฝ and ๐›พ is important โ–ช Example: airport security โ–ช ๐ผ 0 : bag does not contain a weapon โ–ช Type I error: โ–ช the bag did not contain a weapon, but the machine said it did โ–ช loss of time in manual search, offended clients, delayed flights โ–ช management will try to minimize the probability of this error type โ–ช Type II error: โ–ช the bag did contain a weapon, but the machine did not detect it โ–ช hijacks, loss of crew and aircraft, liability claims, loss of credibility โ–ช management will try to minimize the probability of this error type

  8. TWO TYPES OF ERROR There is a trade-off: โ–ช minimizing ๐›ฝ typically leads to increasing ๐›พ โ–ช minimizing ๐›พ typically leads to increasing ๐›ฝ ๐›ฝ and ๐›พ can only be decreased simultaneously by changing the set-up of the research โ–ช most importantly, by increasing sample size

  9. EXERCISE 1 What error do we make? a. A population has ๐œˆ = 120 . We reject ๐ผ 0 : ๐œˆ โ‰ค 125 . b. A population has ๐œŒ = 0.3 . We do not reject ๐ผ 0 : ๐œŒ โ‰ค 0.4 . c. A population has ๐œ 2 = 2.5 . We do not reject ๐ผ 0 : ๐œ 2 โ‰ค 2 .

  10. EXPERIMENTAL DESIGN In business and politics, a lot depends on what clients, the market and the public require So you do experiments: โ–ช market surveys โ–ช questionnaires โ–ช customer cards โ–ช polls โ–ช website analysis (tracking cookies, etc) โ–ช etc.

  11. EXPERIMENTAL DESIGN How to set up such experiments โ–ช qualitative research methods (interview techniques, etc.) โ–ช quantitative research methods (choosing sample size, etc.) Here we will focus on sample size for ๐œˆ and ๐œŒ

  12. าง CHOOSING SAMPLE SIZE Recall that the confidence interval of a mean ๐œˆ is ๐œ ๐œ ๐‘ฆ โˆ’ ๐‘จ ๐›ฝ/2 ๐‘œ , าง ๐‘ฆ + ๐‘จ ๐›ฝ/2 ๐‘œ โ–ช This means that the width of the confidence interval scales 1 with a factor ๐‘œ If we need to estimate ๐œˆ with a (minimal) precision of ยฑ๐น (the allowable error), you would need a certain (minimal) sample size

  13. CHOOSING SAMPLE SIZE This gives ๐œ ๐น = ๐‘จ ๐›ฝ/2 ๐‘œ โ–ช so 2 ๐œ ๐‘œ = ๐‘จ ๐›ฝ/2 ๐น Example โ–ช to realize a 95% confidence interval for the mean of a population with ๐œ = 3 with precision ๐น = 1 , ๐‘œ = 34.5 , so use ๐‘œ = 35 always round to the higher value in determining sample size

  14. CHOOSING SAMPLE SIZE Observe that we need to know ๐œ โ–ช how to know it? Three suggestions: โ–ช take a small preliminary sample and use the sample ๐‘ก instead of ๐œ in the formula โ–ช estimate rough upper and lower limits ๐‘ and ๐‘ and set ๐œ = ๐‘โˆ’๐‘ based on a uniform 12 distribution โ–ช estimate rough upper and lower limits ๐‘ and ๐‘ and set ๐œ = ๐‘โˆ’๐‘ based on the fact that most of the values od a normal distribution are 4 between ๐œˆ โˆ’ 2๐œ and ๐œˆ + 2๐œ

  15. CHOOSING SAMPLE SIZE Likewise, the confidence interval of a proportion ๐œŒ is ๐œŒ 1 โˆ’ ๐œŒ ๐œŒ 1 โˆ’ ๐œŒ ๐‘ž โˆ’ ๐‘จ ๐›ฝ/2 , ๐‘ž + ๐‘จ ๐›ฝ/2 ๐‘œ ๐‘œ This gives ๐œŒ 1 โˆ’ ๐œŒ ๐น = ๐‘จ ๐›ฝ/2 ๐‘œ โ–ช so 2 ๐‘จ ๐›ฝ/2 ๐‘œ = ๐œŒ 1 โˆ’ ๐œŒ ๐น

  16. CHOOSING SAMPLE SIZE Observe that we need to know ๐œŒ โ–ช so to determine the sample size to estimate ๐œŒ , you need ๐œŒ Four suggestions โ–ช take a small preliminary sample and use the sample ๐‘ž instead of ๐œŒ in the sample size formula โ–ช take a small preliminary sample, find a confidence interval and from this interval use the value closest to 0.5 instead of ๐œŒ in the sample size formula โ–ช use a prior sample or historical data this conservative method ensures the โ–ช assume that ๐œŒ = 0.50 desired precision ( ๐œŒ 1 โˆ’ ๐œŒ has a maximum at ๐œŒ = 0.50 )

  17. EXERCISE 2 We ask a sample of persons if they are in favor or against Brexit. We want to deduce the proportion in favor, with a margin of no more than ยฑ2% . What sample size to use?

  18. POWER โ–ช Suppose we test a one-sample mean โ–ช the null hypothesis is ๐ผ 0 : ๐œˆ = ๐œˆ โ„Ž๐‘ง๐‘ž = 3 โ–ช at a significance level ๐›ฝ = 0.05 โ–ช If the true parameter is ๐œˆ = ๐œˆ ๐‘ข๐‘ ๐‘ฃ๐‘“ = 3 โ–ช there is a probability ๐›ฝ = 0.05 to reject ๐ผ 0 โ–ช so this is the probability to make a type I error

  19. POWER โ–ช But if the true parameter is ๐œˆ = ๐œˆ ๐‘ข๐‘ ๐‘ฃ๐‘“ = 3.1 instead โ–ช there is a larger probability to reject ๐ผ 0 โ–ช which is the correct decision ๐œ โ–ช how large depends on ๐œ and ๐‘œ (recall ๐‘จ ๐›ฝ/2 ๐‘œ ) โ–ช And if the true parameter is ๐œˆ = ๐œˆ ๐‘ข๐‘ ๐‘ฃ๐‘“ = 10 instead โ–ช there is an even larger probability to reject ๐ผ 0 โ–ช which is the correct decision

  20. POWER So, the probability of a rejecting an incorrect ๐ผ 0 on the mean depends on โ–ช the pre-defined probability ๐›ฝ of not rejecting a correct ๐ผ 0 โ–ช the sample size ๐‘œ โ–ช the standard deviation of the popolution ๐œ โ–ช the difference between the hypothesized ๐œˆ ( ๐œˆ โ„Ž๐‘ง๐‘ž ) and the true ๐œˆ ( ๐œˆ ๐‘ข๐‘ ๐‘ฃ๐‘“ )

  21. POWER Power is defined as the probability of rejecting ๐ผ 0 when it should indeed be rejected โ–ช when a specific ๐ผ 1 is true So: power = ๐‘„ reject ๐ผ 0 specific ๐ผ 1 Therefore: power = 1 โˆ’ ๐‘„ do not reject ๐ผ 0 specific ๐ผ 1 = 1 โˆ’ ๐›พ

  22. POWER To calculate the power of a test for the mean, you need โ–ช the significance level ๐›ฝ (you choose it) โ–ช the sample size ๐‘œ (you choose it) โ–ช the standard deviation ๐œ โ–ช the hypothesized mean ๐œˆ โ„Ž๐‘ง๐‘ž (you choose it) โ–ช the true mean ๐œˆ ๐‘ข๐‘ ๐‘ฃ๐‘“ (you have no clue) Therefore, we typically do not calculate power โ–ช but rather calculate a power function or power curves for different values of ๐œˆ ๐‘ข๐‘ ๐‘ฃ๐‘“

  23. POWER CURVES For a fixed ๐ผ 0 : ๐œˆ = ๐œˆ โ„Ž๐‘ง๐‘ž what happens for different values P (R e j e c t H o ) 1 of ๐œˆ ๐‘ข๐‘ ๐‘ฃ๐‘“ ๏ข = P (t y p e I I e r r o r ) ๏‚ฎ ๐œˆ -axis: different options for ๐œˆ ๐‘ข๐‘ ๐‘ฃ๐‘“ ๐œˆ 0 = ๐œˆ โ„Ž๐‘ง๐‘ž ๏ก 0 ๏ญ ๏‚ฎ ๏ญ 1 ๏ญ 0 one specific ๐œˆ 1 = ๐œˆ ๐‘ข๐‘ ๐‘ฃ๐‘“

  24. POWER CURVES Effect of different values of ๐œˆ ๐‘ข๐‘ ๐‘ฃ๐‘“ : ๐œˆ ๐‘ข๐‘ ๐‘ฃ๐‘“ = 6 ๏ญ =3 ๏ญ =6 0.4 0.3 0.2 0.1 0 - 1 0 1 2 3 4 5 6 7 8 9 10 1 p o w e r 0.8 0.6 0.4 0.2 0 - 1 0 1 2 3 4 5 6 7 8 9 10 ๏ก =0.05 T W O - S I D E D T E S T I N G

  25. POWER CURVES Effect of different values of ๐œˆ ๐‘ข๐‘ ๐‘ฃ๐‘“ : ๐œˆ ๐‘ข๐‘ ๐‘ฃ๐‘“ = 5 ๏ญ =3 ๏ญ =5 0.4 0.3 0.2 0.1 0 - 1 0 1 2 3 4 5 6 7 8 9 10 1 0.8 0.6 p o w e r 0.4 0.2 0 - 1 0 1 2 3 4 5 6 7 8 9 10 ๏ก =0.05 T W O - S I D E D T E S T I N G

  26. POWER CURVES Effect of different values of ๐œˆ ๐‘ข๐‘ ๐‘ฃ๐‘“ : ๐œˆ ๐‘ข๐‘ ๐‘ฃ๐‘“ = 4 ๏ญ =3 ๏ญ =4 0.4 0.3 0.2 0.1 0 - 1 0 1 2 3 4 5 6 7 8 9 10 1 0.8 0.6 0.4 0.2 p o w e r 0 - 1 0 1 2 3 4 5 6 7 8 9 10 ๏ก =0.05 T W O - S I D E D T E S T I N G

  27. POWER CURVES Effect of different values of ๐œˆ ๐‘ข๐‘ ๐‘ฃ๐‘“ : ๐œˆ ๐‘ข๐‘ ๐‘ฃ๐‘“ = 3.4 ๏ญ =3 ๏ญ =3.4 0.4 0.3 0.2 0.1 0 - 1 0 1 2 3 4 5 6 7 8 9 10 1 0.8 0.6 0.4 0.2 p o w e r 0 - 1 0 1 2 3 4 5 6 7 8 9 10 ๏ก =0.05 T W O - S I D E D T E S T I N G

  28. POWER CURVES Effect of different values of ๐›ฝ : ๐›ฝ = 0.05 ๏ญ =3 ๏ญ =5.5 0.4 0.3 0.2 0.1 0 - 1 0 1 2 3 4 5 6 7 8 9 10 1 0.8 p o w e r 0.6 0.4 0.2 0 - 1 0 1 2 3 4 5 6 7 8 9 10 ๏ก =0.05 T W O - S I D E D T E S T I N G

  29. POWER CURVES Effect of different values of ๐›ฝ : ๐›ฝ = 0.1 ๏ญ =3 ๏ญ =5.5 0.4 0.3 0.2 0.1 0 - 1 0 1 2 3 4 5 6 7 8 9 10 1 p o w e r 0.8 0.6 0.4 0.2 0 - 1 0 1 2 3 4 5 6 7 8 9 10 ๏ก =0.1 T W O - S I D E D T E S T I N G

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend