Understanding Linear Regression: Definition, Types & Solved Examples