Linear regression is a statistical method to model the relationship between two variables using a straight line.
For example, we can ask: “Does practicing more hours per week lead to a faster race time for a swimmer?”
- Independent Variable (X): Weekly Practice Hours
- Dependent Variable (Y): 100m Race Time (in seconds)