🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← All topics

Quiz: Logistic Regression from Scratch: questions with answers

10 questions, each with the answer and a short explanation.

Take the timed quiz + get a certificate →
  1. Q1. Why is a plain straight line a poor model for a yes/no target?
  2. Q2. What is sigmoid(0)?
  3. Q3. What does this print? (code)
  4. Q4. A student cleared the test, but the model said p = 0.01. How do log loss and squared error compare?
  5. Q5. In logistic regression trained with log loss, what is the gradient for the weight w?
  6. Q6. You lower the decision threshold from 0.5 to 0.3. What usually happens?
  7. Q7. What does this print? (code)
  8. Q8. A feature has weight w = 0.7. What happens when that feature increases by 1?
  9. Q9. A probability of 0.8 corresponds to which odds?
  10. Q10. Why do libraries clip probabilities to a range like [1e-15, 1 − 1e-15] when computing log loss?