Repository navigation
Data-frame API, theory, standard errors; release 0.5.0 #13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
6bcd400
Add per-margin scale priorities and a theory page
soodoku 4ec4789
Rewrite README around what the user gets
soodoku 80924b0
Add synthetic regime study and 'Where it helps' docs page
soodoku 963d44d
Simplify to a data-frame API and release 0.5.0
soodoku 81339bb
Validate calibrate inputs; do not report slack as a conflict
soodoku 1e68aa4
Accept rounded published shares
soodoku 0ed17b8
Hold the weight-stage oracle to the engine's own margin tolerance
soodoku File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| regime,bootstrap,reps,"bias, % of truth",bias / MC se,sampling sd,mean reported se,se ratio,95% coverage,se calibrated,unbiased,coverage ok | ||
| "exact targets, loose bounds",rao-wu,400,-0.006393041404419253,-0.08316920101601427,1083.7206479144418,1143.2432987837724,1.0549243488013986,0.96,pass,pass,pass | ||
| "exact targets, loose bounds",poisson,400,-0.006393041404419253,-0.08316920101601427,1083.7206479144418,1150.9484070782337,1.06203421453044,0.9625,pass,pass,pass | ||
| "exact targets, binding bounds",rao-wu,400,-17.317976086688784,-107.63223411176523,2268.4391857622068,820.9592830931622,0.3619049116440456,0.0,"fail: exact targets, binding bounds: reported standard error is 0.362 times the observed spread (820.959283 against 2268.439186) over 400 replicates; tolerance is 0.107, 3 Monte Carlo standard errors of the ratio at 400 replicates",, | ||
| "exact targets, binding bounds",poisson,400,-17.317976086688784,-107.63223411176523,2268.4391857622068,2321.3663269710632,1.0233319639076297,0.0,pass,, | ||
| disagreeing targets,rao-wu,400,-1.4991040205551016,-19.78329791067408,1068.330034636341,1126.403694287639,1.0543592876437908,0.835,pass,, | ||
| disagreeing targets,poisson,400,-1.4991040205551016,-19.78329791067408,1068.330034636341,1134.5164203166196,1.061953126407055,0.84,pass,, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| regime,bootstrap,"bias, % of truth",reported se / true spread,"95% coverage, %",se calibrated (simcheck),unbiased (simcheck),coverage ok (simcheck) | ||
| "exact targets, loose bounds",rao-wu,0.0,1.05,96.0,pass,pass,pass | ||
| "exact targets, loose bounds",poisson,0.0,1.06,96.2,pass,pass,pass | ||
| "exact targets, binding bounds",rao-wu,-17.3,0.36,0.0,fail,not tested,not tested | ||
| "exact targets, binding bounds",poisson,-17.3,1.02,0.0,pass,not tested,not tested | ||
| disagreeing targets,rao-wu,-1.5,1.05,83.5,pass,not tested,not tested | ||
| disagreeing targets,poisson,-1.5,1.06,84.0,pass,not tested,not tested |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consistent, reachable targets do not imply that every calibration method hits them: a finite-penalty method can trade residual error for smaller weight changes. The benchmark added in this commit demonstrates this at zero target noise and a 4x cap, where ridge with lambda 10 has a 1.63% worst miss and ridge with lambda 1000 still has a nonzero 0.031% miss while fairlex reaches the targets. This guidance should be limited to exact calibration methods rather than telling users that method choice is immaterial in this regime.
Useful? React with 👍 / 👎.