Dimpas Bscpe 2-7 Assignment No.9
Dimpas Bscpe 2-7 Assignment No.9
REGRESSION
Submitted by: Clare Colette S. Dimpas
BSCpE 2-7
INTRODUCTION TO
LINEAR REGRESSION
Linear regression is a statistical technique
used to model the relationship between a
dependent variable (also known as the
target) and one or more independent
variables (also known as predictors).
Expected Output:
Regression Equation: Y=45+4XY = 45 + 4XY=45+4X.
Prediction for 8 hours: Y=45+4(8)=77Y = 45 + 4(8) = 77Y=45+4(8)=77
SAMPLE PROBLEM 2
Problem: A real estate agent wants to predict the price of a house based on its
size (in square feet) and the number of bedrooms.
SAMPLE PROBLEM 2
Solution:
Expected Output:
Regression Equation: Y=50,000+100X1+25,000X2
Prediction for 1800 sq ft and 3 bedrooms:
Y=50,000+100(1800)+25,000(3)=325,000.
MODEL EVALUATION
METRICS
1. R^2 (Coefficient of Determination):
4. Residual Analysis:
APPLICATIONS
Healthcare:
Predicting patient
outcomes.
SUMMARY AND CONCLUSION
Linear regression is a fundamental statistical technique used to model the
relationship between a dependent variable and one or more independent
variables. It is grounded in the concept of the linear equation Y=β0+β1X+ϵ, where
β0 represents the intercept, β1 the slope, and ϵ the error term accounting for
deviations not captured by the model.
The method comes in two main forms: simple linear regression, which involves
one predictor, and multiple linear regression, which handles multiple predictors
for more complex analyses. To produce valid results, linear regression relies on
key assumptions, including a linear relationship between variables, equal variance
of residuals (homoscedasticity), independent observations, and normally
distributed errors.
This technique finds extensive applications across fields such as business
(e.g., sales forecasting), healthcare (e.g., predicting patient outcomes),
and education (e.g., modeling student performance). However, evaluating
the model requires attention to metrics like R2R^2R2, which measures the
proportion of variance explained, and the mean squared error (MSE),
which quantifies prediction accuracy.