Skip to content

CMS point query: 3 skew regimes with absolute & relative error#105

Draft
c-dickens wants to merge 1 commit intoapache:masterfrom
c-dickens:charlie/cd-142-cms-char-1-cms-accuracy-profile-point-query-error
Draft

CMS point query: 3 skew regimes with absolute & relative error#105
c-dickens wants to merge 1 commit intoapache:masterfrom
c-dickens:charlie/cd-142-cms-char-1-cms-accuracy-profile-point-query-error

Conversation

@c-dickens
Copy link
Contributor

Summary

  • Extend cms_point_query_profile to run 3 Zipf skew regimes (α=1.5, 1.0, 0.5) with U=8192, N=2^20, 8192 trials
  • Add per-item relative error tracking via second set of KLL sketches and bound violation rate
  • Rewrite plotting script for 3-panel estimated frequency profile + relative error vs true frequency
  • Add website documentation drafts in docs/cms/

Test plan

  • make cms-point-query builds, runs all 3 regimes, produces 3 TSV files
  • make cms-point-query-plot generates cms_point_query_error.svg and cms_rel_error_vs_freq_rank.svg
  • TSV metadata shows bound violations well below theoretical δ=0.05
  • Relative error plot shows decreasing error for heavy hitters (matches Cormode et al.)
  • Review docs for correctness

🤖 Generated with Claude Code

- Scale parameters to U=8192, N=2^20, 8192 trials
- Run 3 Zipf skew regimes (α=1.5, 1.0, 0.5) sequentially
- Add per-item relative error tracking via second set of KLL sketches
- Add per-item bound violation rate column
- Output one TSV per regime to cpp/results/ (sorted by freq rank descending)
- Rewrite plotting script for 3-panel layout: estimated frequency profile
  and relative error vs true frequency with sigma bands
- Update Makefile with cms-point-query and cms-point-query-plot targets
- Add website documentation drafts in docs/cms/

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@c-dickens c-dickens changed the title CMS point query: 3 skew regimes with relative error CMS point query: 3 skew regimes with absolute & relative error Mar 6, 2026
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