Skip to content

Add tutorials and documentation for post-stratification (#140)#141

Closed
talgalili wants to merge 1 commit intofacebookresearch:mainfrom
talgalili:export-D86856112
Closed

Add tutorials and documentation for post-stratification (#140)#141
talgalili wants to merge 1 commit intofacebookresearch:mainfrom
talgalili:export-D86856112

Conversation

@talgalili
Copy link
Copy Markdown
Contributor

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?

Differential Revision: D86856112

Pulled By: talgalili

@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 exported this pull request. If you are a Meta employee, you can view the originating Diff in D86856112.

@talgalili
Copy link
Copy Markdown
Contributor Author

I had to copy this PR to another one so that I could split it (for tests to pass).
Old PR:
#140

Full credit for this work goes to @neuralsorcerer

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
talgalili pushed a commit to talgalili/balance that referenced this pull request Nov 12, 2025
…arch#141)

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 pushed a commit to talgalili/balance that referenced this pull request Nov 12, 2025
…arch#141)

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
…arch#141)

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
@meta-codesync
Copy link
Copy Markdown

meta-codesync bot commented Nov 12, 2025

@talgalili merged this pull request in df844ab.

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

3 participants