Skip to content

Count every observed response when scoring individual likelihoods - #5

Merged
soodoku merged 1 commit into
masterfrom
fix/score-all-observed-pairs
Nov 21, 2026
Merged

soodoku merged 1 commit into
masterfrom
fix/score-all-observed-pairs

Conversation

@soodoku

@soodoku soodoku commented Nov 21, 2026

Copy link
Copy Markdown
Collaborator

A held-out respondent can give a response with probability zero under the fitted model. That correctly gives the respondent a log likelihood of negative infinity. The previous implementation also stopped counting their remaining observed responses. Reordering the same two items could then turn four observed pairs into three.

Score each item's respondents together. The cell probabilities depend only on the item parameters and the response-to-cell routine already accepts a vector. Missing pairs contribute neither a count nor a log probability. A zero probability preserves negative infinity while later observed pairs still count.

The new public regression test exercises both item orders and a respondent with no observed pairs. On a separate 500-person, eight-item fixture, the median public call over five alternating blocks fell from 218 to 24 ms. The maximum per-person log-likelihood difference from summing a hand-specified transition probability table was 3.55e-15 for each implementation.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-21T06:02:36.512809Z ffeaad8 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@soodoku
soodoku merged commit 130f43a into master Nov 21, 2026
11 checks passed
@soodoku
soodoku deleted the fix/score-all-observed-pairs branch November 21, 2026 06:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant