Regression
Adapted from Lecture Notes Machine-Learning Regression (CS102-Spring 2020)
Stanford
Asrul Abdullah
Universitas Muhammadiyah Pontianak
www.asrulabdullah.my.id
inovasi, kolaborasi & integritas
Machine Learning
Using data to build models and make predictions
Supervised Learning
Regression
Classification
Set of labeled examples to learn from :training data
Develop model from training data
Use model to make predictions about new data
Supervised
Training data, each example :
Set of predictor values – “independent variables”
Numeric output values – “dependent variable”
Ex : Predictors : mother height, father height, current_age, Output : height
Like regression except output values are labels or categories
Example
Predictor values: age, gender, income, profession
Output value: buyer, non-buyer
Universitas Muhammadiyah Pontianak
www.asrulabdullah.my.id
inovasi, kolaborasi & integritas
Regression
Universitas Muhammadiyah Pontianak
www.asrulabdullah.my.id
inovasi, kolaborasi & integritas
Regression
Goal: Function f applied to training data should produce values as close as possible in aggregate to actual outputs
Universitas Muhammadiyah Pontianak
www.asrulabdullah.my.id
inovasi, kolaborasi & integritas
Simple Linear Regression
Universitas Muhammadiyah Pontianak
www.asrulabdullah.my.id
inovasi, kolaborasi & integritas
Simple Linear Regression
Universitas Muhammadiyah Pontianak
www.asrulabdullah.my.id
inovasi, kolaborasi & integritas
Simple Linear Regression
y = 0.8x + 2.6
Universitas Muhammadiyah Pontianak
www.asrulabdullah.my.id
inovasi, kolaborasi & integritas
Correlation and Causation
Correlation – Values track each other
Causation – One value directly influences another
Universitas Muhammadiyah Pontianak
www.asrulabdullah.my.id
inovasi, kolaborasi & integritas
Regression and Correlation
Ex : latitude versus temperature, car weight versus gas mileage, class absence versus final grade
Universitas Muhammadiyah Pontianak
www.asrulabdullah.my.id
inovasi, kolaborasi & integritas
Hands on
Job Salary
Universitas Muhammadiyah Pontianak
www.asrulabdullah.my.id
inovasi, kolaborasi & integritas