Spaces:
Running
Running
Commit History
-
Edit the notebook prose against the house style
Removes 18 contrastives, 15 em dashes, 3 evaluative stand-ins for a quantity and 2 banned adjectives across all six notebooks. The notebooks are generated, so the generators are the source of truth, but regenerating would drop every stored output and these are markdown-only changes. Both sides are patched and then checked: regenerating into a scratch directory reproduces the committed notebooks cell for cell, markdown and code. All six still validate, with 63 stored outputs and no error outputs. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>95345f5
-
Put each model's equation on its own recovery panel
The formulas were in a section of their own, so the reader had to hold three equations in mind while looking at three panels of curves. Each panel now carries the model whose parameters it plots, with the parameter list beneath it. Two escaping traps in the generator, both silent until execution: the code cells are non-raw strings, so a LaTeX \\beta arrived as a backspace and an \\n in an f-string became a real newline that broke the literal.a3045a4 -
Fix Night 2's dk sign, and add parameter ranges and model formulas
Night 2's value difference was written as a - w*b - dk*E^2 while dk was drawn positive, which makes dk = k_self - k_other and simulates people discounting effort MORE for themselves. That is the opposite of the direction the day task assumes and that Lockwood et al. report. Defining dk as k_other - k_self, to match the day task, puts it in with a plus: V_self - V_partner = a - w*b - (k_self - k_other)E^2 = a - w*b + (k_other - k_self)E^2 so that when helping costs more, keeping the harvest becomes more attractive on harder trials. Recovery magnitude is unaffected, since the model was fitted to data it generated itself, but anyone reading the code would have taken the wrong direction from it. Night 2 was re-swept: w still clears 0.7 at 24 trials and beta at 47, while dk no longer reaches 0.7 by 150 at all, where the wrong sign had put it at 141. The notebook now states each model's equations with a table of what every parameter means and when it rises, plot…73e027f -
Add trials_needed.ipynb: trials per parameter, and why differences cost more
Reports where each parameter of each model reaches r = 0.7 with 100 participants, with the shipped trial count marked on every panel. The notebook's second half explains the one result that matters for planning. Both models have a parameter needing far more trials than its neighbours, and in both cases it is a difference: the day task's k_other - k_self and Night 2's dk. Someone who discounts effort steeply does so whoever benefits, so the two k's correlate near 0.92 across people. Subtracting removes that shared variance, which is most of the signal, while the two measurement errors add. The classical difference-score reliability formula is evaluated across component reliabilities and correlations to show how little room there is at 0.92. The published studies never use a per-participant difference. Lockwood et al. compare the two parameters with a paired Wilcoxon signed-rank test, and analyse trial-level choices with a glmer model carrying effort and reward as separate predictors, …02fab01