SchoolWhool
Quizzes and saved progress, freeSign in freeSign in
Maths · Module 1Module material

Functions, Logarithms and Notation interview questions

15 questions interviewers ask on this module’s topics, from first principles to the follow-ups. Each comes with a model answer.

  1. What makes a rule a function?
  2. How can you tell a linear, a quadratic and an exponential relationship apart from a table?
  3. What does f(x − 3) do to a graph, and how do you remember the direction?
  4. Your straight line passes through the middle of the data. How do you check that it is the right shape?
  5. Why is e the base used in machine learning?
  6. State the product rule for logarithms and the most common mistake with it.
  7. Why do we work with log-probabilities instead of probabilities?
  8. What are odds and log-odds, and why does logistic regression use the log-odds?
  9. An email scores 5.872 in spam-minus-ham log-probability. What is the probability it is spam?
  10. You log-transform a column and get -inf. What happened and what do you do?
  11. What do ŷ, x̄ and w* mean?
  12. Write ŷᵢ = Σⱼ wⱼ xᵢⱼ in NumPy, and explain the index shift.
  13. What is the difference between min and argmin?
  14. scikit-learn's Ridge and a paper both use a regularisation strength. Can you copy the paper's value?
  15. Ridge's penalty is λ Σⱼ wⱼ². On the shop data, promotion's weight is 99.48% of that sum. Is that a problem?