This function checks whether the solve-or-guess fit from
solve_or_guess is consistent with its core assumption: a
single solving probability per rater explains how often any two raters
agree. Under this assumption, each pair of raters' agreement rate should
be fully explained by a pair-specific chance baseline, determined by each
rater's own fitted guessing behavior, plus the product of their two
individual solving probabilities, with nothing else left over. Departure
from that structure is measured by a residual sum of squares (T_obs),
computed over rater pairs that share at least one rated item.
The significance of T_obs is
assessed with a parametric bootstrap. Here we simulate fresh datasets from the
fitted model, refit the rank-one form, and recompute the residual each
time (T_boot). The p-value is (1 + #{T_boot >= T_obs}) / (B + 1), so it
is never exactly 0; a small p-value
means the observed agreement pattern is not well explained by a single
solving probability per rater.
Note that the chance baseline (Pe) is fixed from the original fit and is
not re-estimated on each simulated dataset, so the bootstrap does not
reflect the uncertainty in the fitted guessing behavior.
Arguments
- x
An object of class
"sog", as returned bysolve_or_guess.- B
Number of parametric bootstrap replicates. Default
1000.- seed
Optional integer seed, set before bootstrapping, for reproducibility.
- verbose
Logical; print progress messages, including the valid-pairs/ degrees-of-freedom summary. Default
TRUE.
Value
An object of class "sog_rank_one", a list with elements:
| T_obs | numeric | the observed rank-one residual sum of squares, computed from the real data. |
| T_boot | numeric | length-B vector of the residual recomputed from each parametric bootstrap replicate - the simulated null distribution that T_obs is compared against. |
| B | integer | the number of bootstrap replicates used. |
| n_valid_pairs | integer | number of rater pairs that share at least one rated item, and so contribute to T_obs/T_boot. |
| n_params | integer | number of free parameters in the rank-one form (one solving probability per rater; the pair-specific chance baseline is fixed from the fit, not re-estimated). |
| df | integer | n_valid_pairs - n_params. A non-positive value means there are no more valid pairs than parameters, so the rank-one form can fit the agreement rates exactly and the test cannot detect anything. A warning is given and p_value is NA. |
| p_value | numeric | (1 + #{T_boot >= T_obs}) / (B + 1) - a small value means the observed agreement is not well explained by a single solving probability per rater. NA when df <= 0. |
| raters | character | rater identifiers in the order used to build the underlying agreement matrix (system rater first, then the rest). |
| Pi | matrix | each rater's fitted guess distribution (rows = raters, columns = answers, rows sum to 1). |
| Pe | matrix | the pair-specific chance-agreement baseline used in the rank-one form. |
References
Rohe, K., Krauska, A. N., Collins, G., Higgins, J., & Pustejovsky, J. (2026). The solve or guess model: Validating automated systems against heterogeneous human raters. Working paper.
Examples
if (FALSE) { # \dontrun{
fit <- solve_or_guess(evaluations, system_rater_id = "gpt", B = 200)
rank_one_diagnostic(fit, B = 200)
} # }