Statistical hypotheses, consisting of the null hypothesis and the alternative…