
Simple linear regression
Simple linear regression is a statistical method used to understand the relationship between two variables—one dependent (the outcome you want to predict) and one independent (the predictor). It finds the best straight line through the data points that explains how changes in the independent variable are associated with changes in the dependent variable. This line helps us predict the value of the dependent variable based on the independent variable’s value. For example, it can help predict house prices based on their size, providing insights into how one variable influences the other.