Regression analysis
Introduction / Definition
Regression analysis models the relationship between a dependent variable and one or more explanatory variables. Linear regression estimates coefficients by minimizing squared residuals under ordinary least squares. It can support prediction and association analysis. Regression alone does not establish causation.
Framework / Formula / Structure
ŷ=b₀+b₁x; b₁=Σ(xᵢ−x̄)(yᵢ−ȳ)/Σ(xᵢ−x̄)²
Detailed Explanation
The intercept b₀ is the fitted value when x=0, while b₁ is the fitted change in y per unit x. Multiple regression uses several predictors. Residual analysis and validation are important.
Example
Example: If ŷ=5+2x, then at x=3, ŷ=11.
Output / Expected Result
The predicted value is 11.
Important Points / Notes
- Correlation is not automatically causation.
- Check residuals.
- Use validation for prediction.
Mini Practice Question
If ŷ=4+3x, calculate ŷ for x=6.