Reputation: 3069
I know that:
But what make me confused is:
Anyone can help me figure out this?
Upvotes: 5
Views: 23897
Reputation: 1774
You may consider this interpretation.
x: 1 2 1 is data
y: 2 3 4 is label
Value: data
True/False: label
Upvotes: -1
Reputation: 11
Hope this clears, Cheers
Upvotes: 1
Reputation: 7116
1) Linear Regression is Supervised because the data you have include both the input and the output (so to say). So, for instance, if you have a dataset for, say, car sales at a dealership. You have, for each car, the make, model, price, color, discount etc. but you also have the number of sales for each car. If this task was unsupervised, you would have a dataset that included, maybe, just the make, model, price, color etc. (not the actual number of sales) and the best you could do is cluster the data. The example isn't perfect but aims to get across the big picture. A good question to ask yourself when deciding whether a method is supervised or not is to ask "Do I have a way of adjudging the quality of an input?". If you have Linear Regression data, you most certainly can. You just evaluate the value of the function (in this case, the line) for the input data to estimate the output. Not so in the other case.
2) Logistic Regression isn't actually a regression. The name is misleading and does indeed lead to much confusion. It is usually only used for binary prediction which makes it perfect for classification tasks but nothing else.
Upvotes: 16
Reputation: 48236
Linear regression is supervised. You start with a dataset with a known dependent variable (label), train your model, then apply it later. You are trying to predict a real number, like the price of a house.
Logistic regression is also supervised. It's more of a classifier than a regression technique, despite it's name. You are trying to predict the odds ratio of class membership, like the odds of someone dying.
Examples of unsupervised learning include clustering and association analysis.
Upvotes: 5