Quizzes: logistic regression

What is logistic regression used for?
a) Predicting continuous values
b) Predicting binary outcomes
c) Clustering data points
d) Reducing dimensionality

Show answer

Answer: b) Predicting binary outcomes

What type of function is used in logistic regression to model the probability of a binary outcome?
a) Linear function
b) Exponential function
c) Logistic function (sigmoid function)
d) Polynomial function

    Show answer

    c) Logistic function (sigmoid function)

    In logistic regression, what range of values does the sigmoid function output?
    a) 0 to 1
    b) -1 to 1
    c) -? to ?
    d) 0 to ?

      Show answer

      a) 0 to 1

      What is the primary objective of the logistic regression model?
      a) Minimize the sum of squared errors
      b) Maximize the likelihood of observing the given data
      c) Minimize the variance
      d) Maximize the number of features

        Show answer

        b) Maximize the likelihood of observing the given data

        Intermediate Questions

        Which of the following metrics can be used to evaluate a logistic regression model?
        a) Mean Absolute Error (MAE)
        b) Root Mean Square Error (RMSE)
        c) Accuracy, Precision, Recall
        d) R-squared

          Show answer

          c) Accuracy, Precision, Recall

          What does the logit function in logistic regression represent?
          a) The probability of the positive class
          b) The natural logarithm of the odds of the positive class
          c) The exponential of the input features
          d) The linear combination of input features

            Show answer

            b) The natural logarithm of the odds of the positive class

            Advanced Questions

            Which of the following regularization techniques can be applied to logistic regression to prevent overfitting?
            a) L1 (Lasso)
            b) L2 (Ridge)
            c) Both L1 and L2 (Elastic Net)
            d) All of the above

              Show answer

              Answer: d) All of the above

              What is the interpretation of the coefficient \beta_j in a logistic regression model?
              a) The change in the log-odds of the outcome for a one-unit increase in X_j
              b) The change in the probability of the outcome for a one-unit increase in X_j
              c) The change in the outcome for a one-unit increase in X_j
              d) The change in the error for a one-unit increase in X_j

                Show answer

                a) The change in the log-odds of the outcome for a one-unit increase in X_j


                Discover more from Science Comics

                Subscribe to get the latest posts sent to your email.

                Leave a Reply

                error: Content is protected !!