In statistical modeling, regression analysis estimates the relationship between one or more independent…