Regression analysis with applications