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