-
Notifications
You must be signed in to change notification settings - Fork 1
feat(science): add scientific experimentation packages with statistical analysis #5
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
Conversation
…al analysis Add ExperimentFramework.Data and ExperimentFramework.Science packages for rigorous A/B testing with proper statistical methods. ExperimentFramework.Data: - Outcome recording (binary, continuous, count, duration) - Thread-safe in-memory storage with aggregation - Decorator-based automatic collection ExperimentFramework.Science: - Statistical tests (t-test, chi-square, Mann-Whitney U, ANOVA) - Effect size calculators (Cohen's d, odds ratio, relative risk) - Power analysis and sample size calculation - Multiple comparison corrections (Bonferroni, Holm, Benjamini-Hochberg) - Hypothesis builder with pre-registration support - Publication-ready reports (Markdown, JSON) Also includes: - Scientific sample application - Comprehensive user guide documentation - Documentation audit fixes for API accuracy
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #5 +/- ##
=======================================
Coverage ? 90.38%
=======================================
Files ? 86
Lines ? 2652
Branches ? 388
=======================================
Hits ? 2397
Misses ? 255
Partials ? 0
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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.
Pull request overview
This PR adds comprehensive scientific experimentation capabilities to ExperimentFramework through two new packages (ExperimentFramework.Data and ExperimentFramework.Science). The implementation provides rigorous A/B testing infrastructure with proper statistical methods, power analysis, effect size calculation, and publication-ready reporting.
Key changes include:
- Statistical testing framework (t-test, chi-square, Mann-Whitney U, ANOVA)
- Effect size calculators with confidence intervals (Cohen's d, odds ratio, relative risk)
- Power analysis and sample size calculation
- Multiple comparison corrections (Bonferroni, Holm, Benjamini-Hochberg)
- Thread-safe outcome data collection and storage
- Hypothesis builder with pre-registration support
- Publication-ready report generation (Markdown and JSON)
Reviewed changes
Copilot reviewed 67 out of 67 changed files in this pull request and generated 18 comments.
Show a summary per file
| File | Description |
|---|---|
| src/ExperimentFramework.Data/ | New package for outcome data collection and storage with thread-safe in-memory implementation |
| src/ExperimentFramework.Science/ | New package providing statistical tests, effect size calculators, power analysis, and reporting |
| tests/ExperimentFramework.Tests/Science/ | Comprehensive test coverage for statistical methods including edge cases |
| samples/ExperimentFramework.ScientificSample/ | Complete sample application demonstrating scientific experimentation workflow |
| docs/user-guide/statistical-analysis.md | Detailed documentation with examples and best practices |
| samples/README.md | Updated samples documentation with scientific sample information |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
src/ExperimentFramework.Science/Snapshots/InMemorySnapshotStore.cs
Outdated
Show resolved
Hide resolved
src/ExperimentFramework.Science/Snapshots/InMemorySnapshotStore.cs
Outdated
Show resolved
Hide resolved
src/ExperimentFramework.Science/Snapshots/InMemorySnapshotStore.cs
Outdated
Show resolved
Hide resolved
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.
Pull request overview
Copilot reviewed 81 out of 81 changed files in this pull request and generated 7 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
tests/ExperimentFramework.Tests/Data/InMemoryOutcomeStoreTests.cs
Outdated
Show resolved
Hide resolved
tests/ExperimentFramework.Tests/Science/ExperimentAnalyzerTests.cs
Outdated
Show resolved
Hide resolved
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.
Pull request overview
Copilot reviewed 81 out of 81 changed files in this pull request and generated 3 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Code Coverage |
Add ExperimentFramework.Data and ExperimentFramework.Science packages for rigorous A/B testing with proper statistical methods.
ExperimentFramework.Data:
ExperimentFramework.Science:
Also includes: