PracHub
QuestionsPremiumLearningGuidesInterview PrepCoaches
|Home/Machine Learning/LinkedIn

Explain Logistic Regression, Backprop, and Adam

Last updated: Apr 12, 2026

Quick Overview

This question evaluates understanding of supervised learning and optimization concepts, specifically logistic regression, sigmoid activation and binary cross-entropy, the interpretation of logistic regression as a one-layer neural network, backpropagation derivations, mini-batch gradient descent, and the Adam optimizer.

  • medium
  • LinkedIn
  • Machine Learning
  • Data Scientist

Explain Logistic Regression, Backprop, and Adam

Company: LinkedIn

Role: Data Scientist

Category: Machine Learning

Difficulty: medium

Interview Round: Onsite

Answer the following machine learning fundamentals questions: 1. **Logistic regression** - Explain how logistic regression works for binary classification. - Write the model, the sigmoid function, and the binary cross-entropy loss. - Derive the gradient descent update for the model parameters. 2. **From logistic regression to neural networks** - Show how logistic regression can be viewed as a one-layer neural network. - For a simple feedforward neural network, write the forward pass mathematically and derive the backpropagation equations for the weights and biases. 3. **Mini-batch gradient descent** - Write pseudocode for training a model using mini-batch gradient descent. 4. **Adam optimizer** - Describe the main components of Adam. - Explain why Adam scales updates by the square root of the second moment of the gradient.

Quick Answer: This question evaluates understanding of supervised learning and optimization concepts, specifically logistic regression, sigmoid activation and binary cross-entropy, the interpretation of logistic regression as a one-layer neural network, backpropagation derivations, mini-batch gradient descent, and the Adam optimizer.

Related Interview Questions

  • Explain variance reduction in random forests - LinkedIn (medium)
  • Answer practical ML foundations questions - LinkedIn (medium)
  • Handle imbalance, sampling, and overfitting - LinkedIn (easy)
  • Handle imbalance, validate samples, and avoid overfitting - LinkedIn (easy)
  • Explain activations, losses, and Adam - LinkedIn (medium)
LinkedIn logo
LinkedIn
Apr 5, 2026, 12:00 AM
Data Scientist
Onsite
Machine Learning
125
0

Answer the following machine learning fundamentals questions:

  1. Logistic regression
    • Explain how logistic regression works for binary classification.
    • Write the model, the sigmoid function, and the binary cross-entropy loss.
    • Derive the gradient descent update for the model parameters.
  2. From logistic regression to neural networks
    • Show how logistic regression can be viewed as a one-layer neural network.
    • For a simple feedforward neural network, write the forward pass mathematically and derive the backpropagation equations for the weights and biases.
  3. Mini-batch gradient descent
    • Write pseudocode for training a model using mini-batch gradient descent.
  4. Adam optimizer
    • Describe the main components of Adam.
    • Explain why Adam scales updates by the square root of the second moment of the gradient.

Solution

Show

Comments (0)

Sign in to leave a comment

Loading comments...

Browse More Questions

More Machine Learning•More LinkedIn•More Data Scientist•LinkedIn Data Scientist•LinkedIn Machine Learning•Data Scientist Machine Learning
PracHub

Master your tech interviews with 7,500+ real questions from top companies.

Product

  • Questions
  • Learning Tracks
  • Interview Guides
  • Resources
  • Premium
  • For Universities
  • Student Access

Browse

  • By Company
  • By Role
  • By Category
  • Topic Hubs
  • SQL Questions
  • Compare Platforms
  • Discord Community

Support

  • support@prachub.com
  • (916) 541-4762

Legal

  • Privacy Policy
  • Terms of Service
  • About Us

© 2026 PracHub. All rights reserved.