in Technology by
What are the differences between linear and logistic regression?

1 Answer

0 votes
by

Linear regression is a statistical model that, given a set of input features, attempts to fit the best possible straight line (or hyperplane, in the general case) between the independent and the dependent variable. Since its output is continuous and its cost function measures the distance from the observed to the predicted values, it is an appropriate choice to solve regression problems (e.g. to predict sales numbers).

Logistic regression, on the other hand, outputs a probability, which by definition is a bounded value between zero and one, due to the sigmoid activation function. Therefore, it is most appropriate to solve classification problems (e.g. to predict whether a given transaction is fraudulent or not).

Related questions

0 votes
    We use logistic regression to predict the value of the categorical outcome, But I believe linear regression is ... two methodologies. Select the correct answer from above options...
asked Jan 22, 2022 in Education by JackTerrance
0 votes
    Support Vector Machines, Naive Bayes and Logistic Regression are used for solving ___________________ problems. (a) Clustering (b) Classification (c) Regression (d) Time Series...
asked Oct 19, 2020 in Technology by Editorial Staff
0 votes
    Which of the following is statistical boosting based on additive logistic regression? (a) gamBoost (b) gbm (c) ada (d) mboost...
asked Oct 7, 2021 in Technology by JackTerrance
0 votes
    How is logistic regression done?...
asked Apr 26, 2021 in Technology by JackTerrance
0 votes
    I am learning Machine Learning course from coursera from Andrews Ng. I have written a code for logistic ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 24, 2022 in Education by JackTerrance
0 votes
    Which of the following is statistical boosting based on additive logistic regression? (a) gamBoost (b) gbm (c ... and answers pdf, Data Science interview questions for beginners...
asked Oct 28, 2021 in Education by JackTerrance
0 votes
    In a linear regression, the coefficients of the model are estimated by minimizing the sum of the squares of ________. (1)residuals (2)y values (3)x values (4)x and y values...
asked Aug 24, 2021 in Technology by JackTerrance
0 votes
    Pandas consist of static and moving window linear and panel regression. (a) True (b) False I have been ... questions and answers pdf, Data Science interview questions for beginners...
asked Oct 29, 2021 in Education by JackTerrance
0 votes
    How many coefficients do you need to estimate in a simple linear regression model (One independent variable)? (a) ... of R Programming Select the correct answer from above options...
asked Feb 12, 2022 in Education by JackTerrance
0 votes
    Which of the following may be used for linear regression? (a) X %*% Y (b) solve(A) (c) solve(A ... Linear Regression of R Programming Select the correct answer from above options...
asked Feb 11, 2022 in Education by JackTerrance
0 votes
    In the mathematical Equation of Linear Regression Y = β1 + β2X + ϵ, (β1, β2) refers to __________ (a) ... Regression of R Programming Select the correct answer from above options...
asked Feb 10, 2022 in Education by JackTerrance
0 votes
    In a simple linear regression model (One independent variable), If we change the input variable by 1 unit. How ... of R Programming Select the correct answer from above options...
asked Feb 10, 2022 in Education by JackTerrance
0 votes
    Function used for linear regression in R is __________ (a) lm(formula, data) (b) lr(formula, data) (c) ... Regression of R Programming Select the correct answer from above options...
asked Feb 9, 2022 in Education by JackTerrance
0 votes
    If Linear regression model perfectly first i.e., train error is zero, then _____________________ (a) Test error ... of R Programming Select the correct answer from above options...
asked Feb 9, 2022 in Education by JackTerrance
...