Skip to content

Predictive Analytics

src/lib/analytics/predictive-analytics.ts is the deterministic forecasting layer for launch analytics. It uses normalized case facts, historical benchmarks, legal actor profiles, judge patterns, and marketing channel economics to produce forecastable outputs without external model calls.

Covered Predictions

Output Contract

buildPredictiveAnalyticsReport(input) returns:

Product Guidance

Verification

Focused coverage lives in src/__tests__/lib/predictive-analytics.test.ts.

Run:

npm run test:run -- predictive-analytics
npx eslint src/lib/analytics/predictive-analytics.ts src/__tests__/lib/predictive-analytics.test.ts
npm run typecheck

Source: docs/dev/predictive-analytics.md