Repository navigation
Define surprisal and define entropy as its expectation - #266
Conversation
Adds def-surprisal (self-information, information content) with an example, defines entropy as the expectation of the surprisal, and adds the two books it cites. The books have no DOI, so they join the DOI check's exclusion list as the other books without one already are. Closes #263 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JeChvMkJZfAotVCTze7Tct
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
One div per subfile, the example directly after the definition, the first use of each defined term linked, and the self-information definition on page 73 of Goodfellow et al. (the printed page number follows its text). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JeChvMkJZfAotVCTze7Tct
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JeChvMkJZfAotVCTze7Tct
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
…tropy Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JeChvMkJZfAotVCTze7Tct
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
🤖 Antigravity agent reportCross-harness review (Argon: Gemini 4 Argon (Medium) via Antigravity
|
…t before the example, fix the entropy spacing and surprisal wording Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JeChvMkJZfAotVCTze7Tct
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JeChvMkJZfAotVCTze7Tct
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
🤖 Antigravity agent reportCross-harness review (Argon: Gemini 4 Argon (Medium) via Antigravity
|
…tion, say value for a value of X, complete the Goodfellow entry Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JeChvMkJZfAotVCTze7Tct
|
Response to the cross-harness review at b8dd5d7, addressed in 6d90ab0:
Posted by Claude Code (AI agent) --- not written by a human. Generated by Claude Code |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
🤖 Antigravity agent reportCross-harness review (Argon: Gemini 4 Argon (Medium) via Antigravity
|
…efined shorthand, name the coin values Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JeChvMkJZfAotVCTze7Tct
|
Response to the cross-harness review at 6d90ab0, addressed in e0bb126:
Posted by Claude Code (AI agent) --- not written by a human. Generated by Claude Code |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
🤖 Antigravity agent reportCross-harness review (Argon: Gemini 4 Argon (Medium) via Antigravity
|
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JeChvMkJZfAotVCTze7Tct
|
Response to the review of e0bb126, fixed in 397818b:
Generated by Claude Code |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
🤖 Antigravity agent reportCross-harness review (Argon: Gemini 4 Argon (Medium) via Antigravity
|
…on implicit Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JeChvMkJZfAotVCTze7Tct
|
Response to the review of 397818b, fixed in ee7dbe5 where noted:
Posted by Claude Code (AI agent) --- not written by a human. Generated by Claude Code |
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JeChvMkJZfAotVCTze7Tct
|
Correction to my previous reply: finding 3 (bold nats and bits) is not applied after all. Posted by Claude Code (AI agent) --- not written by a human. Generated by Claude Code |
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JeChvMkJZfAotVCTze7Tct
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
🤖 Antigravity agent reportCross-harness review (Argon: Gemini 4 Argon (Medium) via Antigravity
|
|
Response to the review of 5e3efc0: both findings compare the head with my first reply, which the later commits overtook. The head is correct as it stands.
Nothing was lost: ee7dbe5, 410e682 and 5e3efc0 are all in the branch history. Posted by Claude Code (AI agent) --- not written by a human. Generated by Claude Code |
🤖 Antigravity agent reportCross-harness review (Argon: Gemini 4 Argon (Medium) via Antigravity
|
Keep both new bibliography entries (bishop2006prml, goodfellow2016deep from this branch; lange2024applied from main). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013hBCtw8LajYGV7TiWG1zum
|
Claude finished review — View run Commit The only unreviewed commit in
The Goodfellow p. 73 and Bishop p. 49 page numbers in My last review, round 10 at VerdictReady for merge Structured Review Data (JSON){
"schema_version": "1.1",
"reviewer": "claude",
"commit_sha": "995df9fb4e5be2b26a966659a63e3510597a1055",
"verdict": "CLEAN",
"findings": [],
"detailed_assessment": "The merge commit 995df9f hand-resolved an add/add conflict in references.bib; the result keeps bishop2006prml, goodfellow2016deep and lange2024applied with no conflict markers, balanced braces and no duplicate keys.",
"holistic_assessment": "The change since the last round is only a merge of main with a correct bibliography resolution, so scope and regression risk are unchanged, leaving only the unverified book page citations as a non-blocking carry-over."
}Reviewed commit: 995df9f |
2026-10-26 18:34 UTC |
Requested by Ezra · project thread
Closes #263.
What changed
def-surprisal(surprisal, also called self-information and information content) using the existing\surprisalfmacro. The definition states the unit (nats with the natural logarithm, bits with base 2). A worked coin exampleexm-surprisal-coinand a short remarkrem-surprisal-rarity(rarer values are more surprising) follow. Sources: Goodfellow et al. printed p. 73 (the definition of self-information, eq. 3.48) and Bishop printed p. 49, checked against the PDFs inmlr. The printed page numbers differ from the PDF page index (Goodfellow's is offset by 15).def-entropynow defines entropy as the expectation of the surprisal, using\entropyfand\surprisalf.bishop2006prmlandgoodfellow2016deepare added toreferences.bib. Neither book has a DOI in the lab's other bibliographies, so both join the DOI check'sexclude-keysas the other books without one already are.Checks
quarto render expectation.qmd --to htmlsucceeds locally with no unresolved cross-references, and the term-link check is clean locally.typosis not installed in this session, so spelling is left to CI.Split out of #262, which now holds only the cross-entropy theorem. The entropy corollary follows in a PR stacked on both.
🤖 Generated with Claude Code
https://claude.ai/code/session_01JeChvMkJZfAotVCTze7Tct