Skip to content

Conversation

vcarl
Copy link
Member

@vcarl vcarl commented Jul 9, 2025

  • adds a reasonably generalized helpers/statistics.ts with a lot more functionality than we're currently using. Seems nice to have tho?
  • moves queries out of component files and into models (maybe too early to do this, since queries are probably going to evolve a lot? 🤷)
  • small formatting tweaks to the SH user details display

vcarl and others added 6 commits July 9, 2025 16:13
… library

- Install simple-statistics (v7.8.8) for statistical computations
- Add statistics.ts with 10+ statistical functions including:
  - descriptiveStats(): mean, median, mode, std dev, variance, quantiles
  - correlation(): correlation coefficient with strength interpretation
  - linearRegression(): slope, intercept, R-squared, prediction function
  - zScore(): standardization calculations
  - percentile(): quantile calculations
  - outliers(): IQR and z-score based outlier detection
  - movingAverage(): configurable window size
  - histogram(): binning and frequency analysis
  - confidence(): confidence intervals (default 95%)
  - tTest(): two-sample t-tests with significance testing
- Add comprehensive test suite with 22 tests covering all functions
- Full TypeScript support with proper interfaces and error handling
- Zero dependencies beyond simple-statistics, production-ready

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@vcarl vcarl merged commit 2a6f568 into main Jul 10, 2025
5 checks passed
@vcarl vcarl deleted the euno_user-deets branch July 10, 2025 19:03
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