Skip to content

Add tutorials and documentation for post-stratification#140

Closed
neuralsorcerer wants to merge 1 commit intofacebookresearch:mainfrom
neuralsorcerer:post
Closed

Add tutorials and documentation for post-stratification#140
neuralsorcerer wants to merge 1 commit intofacebookresearch:mainfrom
neuralsorcerer:post

Conversation

@neuralsorcerer
Copy link
Copy Markdown
Collaborator

Changes:

  • Expanded the poststratify docstring to clarify its cell-based weighting logic, strict-matching behavior, and added runnable one- and two-variable examples.
  • Added post-stratification examples to the statistical methods page to demonstrate matching single and joint distributions while noting that the method does not revert to raking.
  • Also published a dedicated post-stratify tutorial notebook and linked it into the tutorials navigation for easy discovery.

Why?

@meta-cla meta-cla bot added the cla signed label Nov 12, 2025
@meta-codesync
Copy link
Copy Markdown

meta-codesync bot commented Nov 12, 2025

@talgalili has imported this pull request. If you are a Meta employee, you can view this in D86856112.

talgalili pushed a commit to talgalili/balance that referenced this pull request Nov 12, 2025
…arch#140)

Summary:
Changes:
- Expanded the `poststratify` docstring to clarify its cell-based weighting logic, strict-matching behavior, and added runnable one- and two-variable examples.
- Added post-stratification examples to the statistical methods page to demonstrate matching single and joint distributions while noting that the method does not revert to raking.
- Also published a dedicated post-stratify tutorial notebook and linked it into the tutorials navigation for easy discovery.

Why?
- Closes facebookresearch#111


Differential Revision: D86856112

Pulled By: talgalili
@talgalili
Copy link
Copy Markdown
Contributor

I had to copy this PR to another one so that I could split it (for tests to pass).
New PR:
#141
Full credit for this work goes to @neuralsorcerer

@talgalili talgalili closed this Nov 12, 2025
talgalili pushed a commit to talgalili/balance that referenced this pull request Nov 12, 2025
…arch#141)

Summary:
Pull Request resolved: facebookresearch#141

Changes:
- Expanded the `poststratify` docstring to clarify its cell-based weighting logic, strict-matching behavior, and added runnable one- and two-variable examples.
- Added post-stratification examples to the statistical methods page to demonstrate matching single and joint distributions while noting that the method does not revert to raking.
- Also published a dedicated post-stratify tutorial notebook and linked it into the tutorials navigation for easy discovery.

Why?
- Closes facebookresearch#111

Pull Request resolved: facebookresearch#140

Differential Revision: D86856112

Pulled By: talgalili
meta-codesync bot pushed a commit that referenced this pull request Nov 12, 2025
Summary:
Pull Request resolved: #141

Changes:
- Expanded the `poststratify` docstring to clarify its cell-based weighting logic, strict-matching behavior, and added runnable one- and two-variable examples.
- Added post-stratification examples to the statistical methods page to demonstrate matching single and joint distributions while noting that the method does not revert to raking.
- Also published a dedicated post-stratify tutorial notebook and linked it into the tutorials navigation for easy discovery.

Why?
- Closes #111

Pull Request resolved: #140

Test Plan:
New md page looks like this:

 {F1983456047}

(other pages can't be easily checked)

TODO: check pages after diff lands.

Differential Revision: D86856112

Pulled By: talgalili

fbshipit-source-id: 7d338f5132b41065a3c2e0e306cc1ae4911fdd8d
@neuralsorcerer neuralsorcerer deleted the post branch November 13, 2025 14:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE] Add documentation to poststratify

2 participants