Skip to content

docs: infer stat-menu page + array-API and model-plot examples#16

Merged
ismayc merged 3 commits into
mainfrom
docs/new-examples
Jun 20, 2026
Merged

docs: infer stat-menu page + array-API and model-plot examples#16
ismayc merged 3 commits into
mainfrom
docs/new-examples

Conversation

@ismayc

@ismayc ismayc commented Jun 20, 2026

Copy link
Copy Markdown
Member

Adds the requested new examples and a page mirroring the infer observed_stat_examples vignette.

  • New guide guides/infer-examples.md — follows infer's "Full pipeline examples" vignette: the calculate(stat=...) forms organized by variable type, on the gss dataset, with null-distribution p-values, bootstrap CIs, and theoretical (assume) overlays.
  • Regression guide — adds an array-API models example (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") + univariate calculate(stat="Chisq"), and chisq_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

- 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
ismayc and others added 2 commits June 20, 2026 11:33
# 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
@ismayc ismayc merged commit 571f04a into main Jun 20, 2026
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