docs: infer stat-menu page + array-API and model-plot examples#16
Merged
Conversation
- New guide guides/infer-examples.md mirroring infer's observed_stat_examples vignette: the calculate(stat=) forms by variable type, on gss, with null/CI/ theoretical pipelines. Honestly notes the one gap (chi-square goodness-of-fit is not yet supported) rather than claiming exhaustiveness. - Regression guide: add an array-API models example (sm.OLS(y, X).fit()), and split the stacked "Visualizing models" cell so each plot actually renders. All example cells execute; docs build warning-free under -W. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017CTL1QSTg1DmDUpqYuPEog
# Conflicts: # doc/_build/html/.doctrees/api.doctree # doc/_build/html/.doctrees/environment.pickle # doc/_build/html/.doctrees/getting-started.doctree # doc/_build/html/.doctrees/guides/confidence-intervals.doctree # doc/_build/html/.doctrees/guides/hypothesis-testing.doctree # doc/_build/html/.doctrees/guides/plotting.doctree # doc/_build/html/.doctrees/guides/regression.doctree # doc/_build/html/.doctrees/guides/theory-based.doctree # doc/_build/html/.doctrees/index.doctree # doc/_build/html/searchindex.js # doc/_build/jupyter_execute/datasets.ipynb # doc/_build/jupyter_execute/getting-started.ipynb # doc/_build/jupyter_execute/guides/confidence-intervals.ipynb # doc/_build/jupyter_execute/guides/hypothesis-testing.ipynb # doc/_build/jupyter_execute/guides/messages.ipynb # doc/_build/jupyter_execute/guides/plotting.ipynb # doc/_build/jupyter_execute/guides/regression.ipynb # doc/_build/jupyter_execute/guides/sampling.ipynb # doc/_build/jupyter_execute/guides/theory-based.ipynb # doc/_build/jupyter_execute/index.ipynb
Now that chi-square goodness-of-fit is implemented (merged via #17), the infer-examples page documents it as a working example instead of a gap: a new "One categorical variable (3+ levels): chi-square goodness-of-fit" section, and the two "not yet supported" notes removed. Merges main; HTML rebuilt. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017CTL1QSTg1DmDUpqYuPEog
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Adds the requested new examples and a page mirroring the infer
observed_stat_examplesvignette.guides/infer-examples.md— follows infer's "Full pipeline examples" vignette: thecalculate(stat=...)forms organized by variable type, on thegssdataset, with null-distribution p-values, bootstrap CIs, and theoretical (assume) overlays.sm.OLS(y, X).fit(), a newly-supported capability that had no example) and splits the stacked "Visualizing models" cell so each plot renders.Honest about coverage: I audited the other infer vignettes (t-test, ANOVA, chi-squared, paired). Everything they demonstrate is supported except the chi-square goodness-of-fit test (one categorical 3+ level variable vs. a vector of hypothesized proportions,
hypothesize(null="point", p=c(...))+generate(type="draw")+ univariatecalculate(stat="Chisq"), andchisq_test(response=, p=)). The new page calls this out explicitly rather than claiming exhaustiveness.All example cells execute; docs build warning-free under
-W.🤖 Generated with Claude Code