In hypothesis testing, the analyst has chance to commit both Type I and Type II errors. The Type I error…