Beta distribution is a family of distributions which are used to model the probability of continuous random variables defined on…