feat(analytics): add statistics and reporting modules#4
Merged
Conversation
Implements comprehensive statistical analysis capabilities: - Two-sample t-test (Welch's) for model comparison - Mann-Whitney U test for non-parametric analysis - Linear trend analysis for time series - A/B testing framework for model version comparison - Bootstrap confidence intervals for uncertainty estimation Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Implements automated report generation for stakeholders: - RegionalMetrics dataclass for environmental KPIs - ImpactReport with carbon, validation, and recommendations - ReportGenerator for JSON and HTML report output - Trend analysis integration for year-over-year comparisons - Actionable recommendations based on threshold analysis Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Updates module __init__.py to expose complete public API: - Carbon estimation: CarbonEstimator, estimate_carbon - Validation: GroundTruthValidator, validate_predictions - Statistics: t_test, mann_whitney, trend_analysis, ab_test - Reporting: ReportGenerator, generate_report Enables clean imports like: from climatevision.analytics import estimate_carbon, generate_report Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
4 tasks
mvanhorn
pushed a commit
to mvanhorn/ClimateVision
that referenced
this pull request
May 17, 2026
…tics-statistics Merging Francis's analytics statistics and reporting modules
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.
Summary
Changes
src/climatevision/analytics/statistics.py: Statistical testing (t-test, Mann-Whitney, trend analysis)src/climatevision/analytics/reporting.py: Impact report generation (JSON/HTML)src/climatevision/analytics/__init__.py: Updated module exportsTest plan
from climatevision.analytics import generate_reportAuthor: Francis Umo (@franchaise)
Generated with Claude Code