In statistical hypothesis testing, there are usually two types of errors that the process will encounter, namely Type I and…