5 - Decision Errors

Alex John Quijano

10/01/2021

Previously on Hypothesis Testing…

In the previous lecture, we learned about the following:

Decision Errors

In this lecture, we will learn about:

Hypothesis Testing

A hypothesis test is a statistical technique used to evaluate competing claims using data.

Outcomes of Hypothesis Testing

There are two possible outcomes of the hypothesis test:

Making statistical decisions means that you have to deal with uncertainties.

Decision Errors

Image Source: [Statistical Performance Measures by Neeraj Kumar Vaid](https://neeraj-kumar-vaid.medium.com/statistical-performance-measures-12bad66694b7){target=_blank}

Image Source: Statistical Performance Measures by Neeraj Kumar Vaid

This meme might be over used. If you find some memes similar to this but in “non-pregnancy” context, let me know.

The Significance Level and Decisions Errors

What does this all mean? When the p-value is small, i.e., less than a previously set threshold (\(\alpha\)), we say the results are statistically significant. The value of \(\alpha\) represents how rare an event needs to be in order for the null hypothesis to be rejected. The \(\alpha\) also represents the probability of committing a type I error.

Reality/Decision Reject \(H_0\) Fail to reject \(H_0\)
\(H_0\) is true Type I error
with probability \(\alpha\)
(significance level)
Correct decision
with probability \(1-\alpha\)
(confidence level)
\(H_0\) is false Correct decision
with probability \(1-\beta\)
(power of test)
Type II error
with probability \(\beta\)


Conclusion errors: Type I error - false positive or Type II error - false negative

Trade-offs between Type I and Type II errors. (1/2)

Images Source: Type I and Type II errors by Pritha Bhandari

Trade-offs between Type I and Type II errors. (1/2)

Images Source: [Type I and Type II errors by Pritha Bhandari](https://www.scribbr.com/statistics/type-i-and-type-ii-errors/){target=_blank}

Images Source: Type I and Type II errors by Pritha Bhandari

Take-Home Message

Examples (1/3)


Examples (2/3)


Examples (2/2)

Based on the incorrect conclusion that the new drug intervention is effective, over a million patients are prescribed the medication, despite risks of severe side effects and inadequate research on the outcomes. The consequences of this Type I error also mean that other treatment options are rejected in favor of this intervention.

If a Type II error is made, the drug intervention is considered ineffective when it can actually improve symptoms of the disease. This means that a medication with important clinical significance doesn’t reach a large number of patients who could tangibly benefit from it.

Examples Source: Type I and Type II errors by Pritha Bhandari

Summary

In this lecture we talked about:

In the next lectures, we will talk about:

Today’s Activity

Within your group, discuss the answers for the following problem.

Testing for food safety. A food safety inspector is called upon to investigate a restaurant with a few customer reports of poor sanitation practices. The food safety inspector uses a hypothesis testing framework to evaluate whether regulations are not being met. If he decides the restaurant is in gross violation, its license to serve food will be revoked. OpenIntro: IMS Section 14.6

  1. Write the hypotheses in words.

  2. What is a Type I Error in this context?

  3. What is a Type II Error in this context?

  4. Which error is more problematic for the restaurant owner? Why?

  5. Which error is more problematic for the diners? Why?

  6. As a diner, would you prefer that the food safety inspector requires strong evidence or very strong evidence of health concerns before revoking a restaurant’s license? Explain your reasoning.