Download presentation
Presentation is loading. Please wait.
Published byDana Lang Modified over 6 years ago
1
Another Example Consider a very popular computer game played by millions of people all over the world. The average score of the game is known to be π=5000 and the standard deviation is known to be Ο=1000. Suppose the game developers have just created an updated version and want to know if it is more difficult than the original version. They plan to conduct a trial of the updated version on a random sample of π=100 players and perform a hypothesis test on the sample mean using πΌ=0.05. π» 0 : π=5000 π» 1 : π<5000 What is the probability of a Type I error (rejecting π» 0 when, in fact, it is true)? P(Type I Error) =πΌ=0.05 Suppose the updated version actually is more difficult, and the true mean is π 1 =4700. What is the probability of a Type II error (accepting π» 0 when, in fact, it is false)? π₯ πΌ = βπ§ πΌ π π + π 0 β π₯ =β =4835.5 π§ π½ = π₯ πΌ β π 1 π/ π = β =1.355 π½=π π> π§ π½ =π π>1.355 =0.0877 π» 1 π» 0 π 1 =4700 π/ π =100 π 0 =5000 π/ π =100 πΆ=π.ππ π·=π.ππππ π₯ =4835.5
2
Another Example Consider a very popular computer game played by millions of people all over the world. The average score of the game is known to be π=5000 and the standard deviation is known to be Ο=1000. Suppose the game developers have just created an updated version and want to know if it is more difficult than the original version. They plan to conduct a trial of the updated version on a random sample of π=100 players and perform a hypothesis test on the sample mean using πΌ=0.05. π» 0 : π=5000 π» 1 : π<5000 What is the probability of a Type I error (rejecting π» 0 when, in fact, it is true)? P(Type I Error) =πΌ=0.05 Suppose the updated version actually is more difficult, and the true mean is π 1 =4700. What is the probability of a Type II error (accepting π» 0 when, in fact, it is false)? π₯ πΌ = βπ§ πΌ π π + π 0 β π₯ =β =4835.5 π§ π½ = π₯ πΌ β π 1 π/ π = β =1.355 π½=π π> π§ π½ =π π>1.355 =0.0877 Power = 1βπ½=1β0.0877=0.9123 π» 1 π» 0 Power =π.ππππ π 1 =4700 π/ π =100 π 0 =5000 π/ π =100 π·=π.ππππ π₯ =4835.5
3
Same Example, Smaller πΌ Consider a very popular computer game played by millions of people all over the world. The average score of the game is known to be π=5000 and the standard deviation is known to be Ο=1000. Suppose the game developers have just created an updated version and want to know if it is more difficult than the original version. They plan to conduct a trial of the updated version on a random sample of π=100 players and perform a hypothesis test on the sample mean using πΌ=0.01. π» 0 : π=5000 π» 1 : π<5000 What is the probability of a Type I error (rejecting π» 0 when, in fact, it is true)? P(Type I Error) =πΌ=0.01 Suppose the updated version actually is more difficult, and the true mean is π 1 =4700. What is the probability of a Type II error (accepting π» 0 when, in fact, it is false)? π₯ πΌ = βπ§ πΌ π π + π 0 β π₯ =β =4767.4 π§ π½ = π₯ πΌ β π 1 π/ π = β =0.674 π½=π π> π§ π½ =π π>0.674 =0.2502 π» 1 π» 0 π 1 =4700 π/ π =100 π 0 =5000 π/ π =100 π·=π.ππππ πΆ=π.ππ π₯ =4767.4
4
Same Example, Smaller πΌ Consider a very popular computer game played by millions of people all over the world. The average score of the game is known to be π=5000 and the standard deviation is known to be Ο=1000. Suppose the game developers have just created an updated version and want to know if it is more difficult than the original version. They plan to conduct a trial of the updated version on a random sample of π=100 players and perform a hypothesis test on the sample mean using πΌ=0.01. π» 0 : π=5000 π» 1 : π<5000 What is the probability of a Type I error (rejecting π» 0 when, in fact, it is true)? P(Type I Error) =πΌ=0.01 Suppose the updated version actually is more difficult, and the true mean is π 1 =4700. What is the probability of a Type II error (accepting π» 0 when, in fact, it is false)? π₯ πΌ = βπ§ πΌ π π + π 0 β π₯ =β =4767.4 π§ π½ = π₯ πΌ β π 1 π/ π = β =0.674 π½=π π> π§ π½ =π π>0.674 =0.2502 Power = 1βπ½=1β0.2502=0.7498 π» 1 π» 0 Power =π.ππππ π 1 =4700 π/ π =100 π 0 =5000 π/ π =100 π·=π.ππππ π₯ =4767.4
5
Same Example, Larger n Consider a very popular computer game played by millions of people all over the world. The average score of the game is known to be π=5000 and the standard deviation is known to be Ο=1000. Suppose the game developers have just created an updated version and want to know if it is more difficult than the original version. They plan to conduct a trial of the updated version on a random sample of π=200 players and perform a hypothesis test on the sample mean using πΌ=0.01. π» 0 : π=5000 π» 1 : π<5000 What is the probability of a Type I error (rejecting π» 0 when, in fact, it is true)? P(Type I Error) =πΌ=0.01 Suppose the updated version actually is more difficult, and the true mean is π 1 =4700. What is the probability of a Type II error (accepting π» 0 when, in fact, it is false)? π₯ πΌ = βπ§ πΌ π π + π 0 β π₯ =β =4835.5 π§ π½ = π₯ πΌ β π 1 π/ π = β / =1.916 π½=π π> π§ π½ =π π>1.916 =0.0277 π» 1 π» 0 π 1 =4700 π/ π =70.71 π 0 =5000 π/ π =70.71 πΆ=π.ππ π·=π.ππππ π₯ =4835.5
6
Same Example, Larger n Consider a very popular computer game played by millions of people all over the world. The average score of the game is known to be π=5000 and the standard deviation is known to be Ο=1000. Suppose the game developers have just created an updated version and want to know if it is more difficult than the original version. They plan to conduct a trial of the updated version on a random sample of π=200 players and perform a hypothesis test on the sample mean using πΌ=0.01. π» 0 : π=5000 π» 1 : π<5000 What is the probability of a Type I error (rejecting π» 0 when, in fact, it is true)? P(Type I Error) =πΌ=0.01 Suppose the updated version actually is more difficult, and the true mean is π 1 =4700. What is the probability of a Type II error (accepting π» 0 when, in fact, it is false)? π₯ πΌ = βπ§ πΌ π π + π 0 β π₯ =β =4835.5 π§ π½ = π₯ πΌ β π 1 π/ π = β / =1.916 π½=π π> π§ π½ =π π>1.916 =0.0277 Power = 1βπ½=1β0.2502=0.9723 π» 1 π» 0 Power =π.ππππ π 1 =4700 π/ π =70.71 π 0 =5000 π/ π =70.71 π·=π.ππππ π₯ =4835.5
7
Summary
8
Summary
9
Summary
10
Practical Implications
Type I Error, Type II Error, and Power are crucial considerations in any hypothesis testing study For a more consequential example, consider a new medical treatment developed to cure a life threatening disease. The treatment is tested on a random sample of ill patients. Type I Error: Deciding that the treatment works when, in fact, it doesnβt. This would be a dangerous mistake to make, because patients would be given this ineffective treatment. Type II Error: Deciding that the treatment does not work when, in fact, it does. This would be a tragic mistake, since this life- saving treatment would not be given to patients. Power: Probability of deciding that the treatment works when, in fact, it does. This would be the correct decision that we want to make. Ideally, we want to minimize both Type I error and Type II error (and maximize power). However, as explained earlier, the probabilities of Type I error and Type II error are inversely related: as one goes down, the other goes up. Therefore, a compromise must be made in choosing a low enough probability of Type I error (πΌ) while keeping the probability of Type II error (π½) in check. For any given study, the sample size should be large enough to have adequate power (or low π½). If the sample size is too small, we would most likely not be able to detect a significant effect even it does exist in reality.
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.