Linear regression is a statistical method for modeling the relationship between two or more variables, with one dependent variable (Y) and one or more independent variables (X). The objectives of regression are to understand how the typical value of the dependent variable changes as the independent variables change, and to use the estimated relationship to predict future values of the dependent variable. This example shows a simple linear regression with one independent variable (advertisements) predicting a dependent variable (sales of products).