# Gradient and Hessian of multinomial logistic regression

> ML preparation item.

- Stable ID: `pml-book1-ex10.1`
- Area: Machine Learning
- Topic: Classification
- Origin: external
- Expected time: 20 minutes
- Skills: logistic-regression, cross-entropy
- Item JSON: https://mlprep.iwase.dev/data/items/pml-book1-ex10.1.json

This site does not reproduce the third-party problem.

- Source: Probabilistic Machine Learning: An Introduction — online draft dated 2025-04-18
- Document: PML Book 1 online draft (2025-04-18), Chapter 10 exercises
- Locator: Exercise 10.1, book pp. 367–368 (PDF pp. 397–398)
- Official answer PDF page(s): 25
- Original problem: https://github.com/probml/pml-book/releases/download/2025-04-18/book1.pdf#page=397
- Official answer: https://probml.github.io/pml-book/solns-public.pdf#page=25
- Answer status: official-solution
- Source caveat: The public solution manual predates the dated book draft; the exercise title and task align, but notation may differ.


## Tutoring contract

Ask for the learner's attempt, begin with the smallest useful hint, preserve item ID `pml-book1-ex10.1`, and record a real attempt with `recorded_by: "agent"` and `agent_session_id` when available using https://mlprep.iwase.dev/schema/attempt-record.json.
