Jeff Howbert Introduction to Machine Learning Winter 2014 1 Regression Linear Regression Regression Trees.

Slides:



Advertisements
Similar presentations
The Software Infrastructure for Electronic Commerce Databases and Data Mining Lecture 4: An Introduction To Data Mining (II) Johannes Gehrke
Advertisements

Machine Learning Math Essentials Part 2
Chapter Outline 3.1 Introduction
Linear Regression.
Brief introduction on Logistic Regression
Regularization David Kauchak CS 451 – Fall 2013.
Notes Sample vs distribution “m” vs “µ” and “s” vs “σ” Bias/Variance Bias: Measures how much the learnt model is wrong disregarding noise Variance: Measures.
Classification / Regression Support Vector Machines
Pattern Recognition and Machine Learning
CSCI 347 / CS 4206: Data Mining Module 07: Implementations Topic 03: Linear Models.
R OBERTO B ATTITI, M AURO B RUNATO. The LION Way: Machine Learning plus Intelligent Optimization. LIONlab, University of Trento, Italy, Feb 2014.
Classification and Prediction: Regression Via Gradient Descent Optimization Bamshad Mobasher DePaul University.
x – independent variable (input)
Linear Regression Models Based on Chapter 3 of Hastie, Tibshirani and Friedman Slides by David Madigan.
Machine Learning CUNY Graduate Center Lecture 3: Linear Regression.
1 Linear Methods for Regression Lecture Notes for CMPUT 466/551 Nilanjan Ray.
Review Rong Jin. Comparison of Different Classification Models  The goal of all classifiers Predicating class label y for an input x Estimate p(y|x)
Comp 540 Chapter 9: Additive Models, Trees, and Related Methods
Classification and Prediction: Regression Analysis
Decision Tree Models in Data Mining
CSCI 347 / CS 4206: Data Mining Module 04: Algorithms Topic 06: Regression.
Collaborative Filtering Matrix Factorization Approach
Midterm Review. 1-Intro Data Mining vs. Statistics –Predictive v. experimental; hypotheses vs data-driven Different types of data Data Mining pitfalls.
Machine Learning CUNY Graduate Center Lecture 3: Linear Regression.
Classification and Prediction (cont.) Pertemuan 10 Matakuliah: M0614 / Data Mining & OLAP Tahun : Feb
Classification / Regression Neural Networks 2
1 SUPPORT VECTOR MACHINES İsmail GÜNEŞ. 2 What is SVM? A new generation learning system. A new generation learning system. Based on recent advances in.
Jeff Howbert Introduction to Machine Learning Winter Regression Linear Regression.
Overview of Supervised Learning Overview of Supervised Learning2 Outline Linear Regression and Nearest Neighbors method Statistical Decision.
Data Mining Practical Machine Learning Tools and Techniques Chapter 4: Algorithms: The Basic Methods Section 4.6: Linear Models Rodney Nielsen Many of.
ICS 178 Introduction Machine Learning & data Mining Instructor max Welling Lecture 6: Logistic Regression.
Text Classification 2 David Kauchak cs459 Fall 2012 adapted from:
CpSc 881: Machine Learning
Chapter1: Introduction Chapter2: Overview of Supervised Learning
Over-fitting and Regularization Chapter 4 textbook Lectures 11 and 12 on amlbook.com.
Data analysis tools Subrata Mitra and Jason Rahman.
CSC321: Introduction to Neural Networks and Machine Learning Lecture 15: Mixtures of Experts Geoffrey Hinton.
Bump Hunting The objective PRIM algorithm Beam search References: Feelders, A.J. (2002). Rule induction by bump hunting. In J. Meij (Ed.), Dealing with.
Data Mining: Concepts and Techniques1 Prediction Prediction vs. classification Classification predicts categorical class label Prediction predicts continuous-valued.
ECE 5984: Introduction to Machine Learning Dhruv Batra Virginia Tech Topics: –(Finish) Model selection –Error decomposition –Bias-Variance Tradeoff –Classification:
Combining Models Foundations of Algorithms and Machine Learning (CS60020), IIT KGP, 2017: Indrajit Bhattacharya.
Data Transformation: Normalization
Chapter 7. Classification and Prediction
Introduction to Machine Learning and Tree Based Methods
Machine Learning Logistic Regression
CSE 4705 Artificial Intelligence
CH 5: Multivariate Methods
Linear Regression (continued)
The Elements of Statistical Learning
Announcements HW4 due today (11:59pm) HW5 out today (due 11/17 11:59pm)
ECE 5424: Introduction to Machine Learning
Roberto Battiti, Mauro Brunato
Machine Learning Logistic Regression
Classification Discriminant Analysis
Classification Discriminant Analysis
Collaborative Filtering Matrix Factorization Approach
Ying shen Sse, tongji university Sep. 2016
Linear regression Fitting a straight line to observations.
What is Regression Analysis?
Machine Learning Math Essentials Part 2
SOME PROBLEMS THAT MIGHT APPEAR IN DATA
Biointelligence Laboratory, Seoul National University
Contact: Machine Learning – (Linear) Regression Wilson Mckerrow (Fenyo lab postdoc) Contact:
Support Vector Machine I
Basis Expansions and Generalized Additive Models (1)
Linear Discrimination
Label propagation algorithm
Regression and Correlation of Data
Presentation transcript:

Jeff Howbert Introduction to Machine Learning Winter Regression Linear Regression Regression Trees

Jeff Howbert Introduction to Machine Learning Winter Characteristics of classification models model linear parametric global stable decision treeno logistic regressionyes discriminant analysisyes/noyes k-nearest neighborno naïve Bayesnoyes/noyes

Jeff Howbert Introduction to Machine Learning Winter slide thanks to Greg Shakhnarovich (CS195-5, Brown Univ., 2006)

Jeff Howbert Introduction to Machine Learning Winter slide thanks to Greg Shakhnarovich (CS195-5, Brown Univ., 2006)

Jeff Howbert Introduction to Machine Learning Winter slide thanks to Greg Shakhnarovich (CS195-5, Brown Univ., 2006)

Jeff Howbert Introduction to Machine Learning Winter slide thanks to Greg Shakhnarovich (CS195-5, Brown Univ., 2006)

Jeff Howbert Introduction to Machine Learning Winter slide thanks to Greg Shakhnarovich (CS195-5, Brown Univ., 2006)

Jeff Howbert Introduction to Machine Learning Winter l Suppose target labels come from set Y –Binary classification:Y = { 0, 1 } –Regression:Y =  (real numbers) l A loss function maps decisions to costs: – defines the penalty for predicting when the true value is. l Standard choice for classification: 0/1 loss (same as misclassification error) l Standard choice for regression: squared loss Loss function

Jeff Howbert Introduction to Machine Learning Winter l Most popular estimation method is least squares: –Determine linear coefficients w that minimize sum of squared loss (SSL). –Use standard (multivariate) differential calculus:  differentiate SSL with respect to w  find zeros of each partial differential equation  solve for each w i l In one dimension: Least squares linear fit to data

Jeff Howbert Introduction to Machine Learning Winter l Multiple dimensions –To simplify notation and derivation, add a new feature x 0 = 1 to feature vector x: –Calculate SSL and determine w: Least squares linear fit to data

Jeff Howbert Introduction to Machine Learning Winter Least squares linear fit to data

Jeff Howbert Introduction to Machine Learning Winter Least squares linear fit to data

Jeff Howbert Introduction to Machine Learning Winter l The inputs X for linear regression can be: –Original quantitative inputs –Transformation of quantitative inputs, e.g. log, exp, square root, square, etc. –Polynomial transformation  example: y = w 0 + w 1  x + w 2  x 2 + w 3  x 3 –Basis expansions –Dummy coding of categorical inputs –Interactions between variables  example: x 3 = x 1  x 2 l This allows use of linear regression techniques to fit much more complicated non-linear datasets. Extending application of linear regression

Jeff Howbert Introduction to Machine Learning Winter Example of fitting polynomial curve with linear model

Jeff Howbert Introduction to Machine Learning Winter l 97 samples, partitioned into: –67 training samples –30 test samples l Eight predictors (features): –6 continuous (4 log transforms) –1 binary –1 ordinal l Continuous outcome variable: – lpsa : log( prostate specific antigen level ) Prostate cancer dataset

Jeff Howbert Introduction to Machine Learning Winter Correlations of predictors in prostate cancer dataset lcavol log cancer volume lweight log prostate weightage lbph log amount of benign prostatic hypertrophy svi seminal vesicle invasion lcp log capsular penetration gleason Gleason score pgg45 percent of Gleason scores 4 or 5

Jeff Howbert Introduction to Machine Learning Winter Fit of linear model to prostate cancer dataset

Jeff Howbert Introduction to Machine Learning Winter l Complex models (lots of parameters) often prone to overfitting. l Overfitting can be reduced by imposing a constraint on the overall magnitude of the parameters. l Two common types of regularization (shrinkage) in linear regression: –L 2 regularization (a.k.a. ridge regression). Find w which minimizes:  is the regularization parameter: bigger imposes more constraint –L 1 regularization (a.k.a. lasso). Find w which minimizes: Regularization

Jeff Howbert Introduction to Machine Learning Winter Example of L 2 regularization L2 regularization shrinks coefficients towards (but not to) zero, and towards each other.

Jeff Howbert Introduction to Machine Learning Winter Example of L 1 regularization L1 regularization shrinks coefficients to zero at different rates; different values of give models with different subsets of features.

Jeff Howbert Introduction to Machine Learning Winter Example of subset selection

Jeff Howbert Introduction to Machine Learning Winter Comparison of various selection and shrinkage methods

Jeff Howbert Introduction to Machine Learning Winter L 1 regularization gives sparse models, L 2 does not

Jeff Howbert Introduction to Machine Learning Winter l In addition to linear regression, there are: –many types of non-linear regression  regression trees  nearest neighbor  neural networks  support vector machines –locally linear regression –etc. Other types of regression

Jeff Howbert Introduction to Machine Learning Winter l Model very similar to classification trees l Structure: binary splits on single attributes l Prediction: mean value of training samples in leaf l Induction: –greedy –loss function: sum of squared loss Regression trees

Jeff Howbert Introduction to Machine Learning Winter Regression trees

Jeff Howbert Introduction to Machine Learning Winter l Assume: –Attribute and split threshold for candidate split are selected –Candidate split partitions samples at parent node into child node sample sets C 1 and C 2 –Loss for the candidate split is: Regression tree loss function

Jeff Howbert Introduction to Machine Learning Winter Characteristics of regression models model linear parametric global stable continuous linear regressionyes regression treeno

Jeff Howbert Introduction to Machine Learning Winter MATLAB interlude matlab_demo_08.m