In Supervised Learning Algorithm Linear Regression, the independent Predictor variable is
(a) continuous only
(b) Discrete only
(c) Continuous or Discrete
Answers
In Supervised Learning Algorithm Linear Regression, the independent Predictor variable is
Ans - (a) continuous only
Answer:
Explanation:
Definition of linear regression:
A variable's value can be predicted using linear regression analysis based on the value of another variable. The dependent variable is the one you want to be able to forecast. The independent variable is the variable you are using to forecast the value of the other variable.
Is linear regression a supervised learning:
In supervised learning, we will train an algorithm by giving it both the inputs (features) and the labels that correspond to those features (outputs). The same is true for linear regression; we have m equivalent numerical labels such as y1, y2,... ym and n features such as x1, x2,... xn (let's say n features) for m cases.
Additionally, we are using these instances to train the algorithm to discover a straight line that more closely matches the supplied examples.
Unsupervised learning, on the other hand, is a special instance where we will train the algorithm using only the features.
Therefore, since we train linear regression by providing both features and labels, it is a supervised learning algorithm.
In Supervised Learning Algorithm Linear Regression, the independent Predictor variable is continuous only.
#SPJ3