powerball-quantum
v1.0.0
Published
Powerball number predictor using quantum-inspired algorithm with momentum, mean reversion, and statistical filters
Maintainers
Readme
powerball-quantum
Powerball number predictor using quantum-inspired algorithm with momentum, mean reversion, and statistical filters.
Installation
npm install powerball-quantumCLI Usage
# Get 5 recommended picks
npx powerball-quantum predict
# Get 10 picks with analysis
npx powerball-quantum predict -c 10 -a
# Quick single pick
npx powerball-quantum quick
# Update data from NY Lottery API
npx powerball-quantum updateProgrammatic Usage
import { predict, quickPick, formatPick, updateData } from 'powerball-quantum';
// Get 5 picks
const picks = await predict({ count: 5 });
picks.forEach(pick => {
console.log(formatPick(pick));
// Output: 21 - 26 - 34 - 57 - 61 🔴 1
});
// Quick single pick
const myPick = await quickPick();
console.log(myPick);
// { whiteBalls: [5, 7, 28, 38, 66], powerball: 23, score: 46.5 }
// Update data
await updateData();Algorithm
QUANTUM combines multiple Wall Street quant-inspired signals:
| Signal | Description | |--------|-------------| | Momentum | Exponential decay weighting - recent numbers score higher | | Z-Score | Mean reversion - overdue numbers get boosted | | Recent Trend | Last 15 draws with stronger emphasis | | Pair Synergy | Numbers that frequently appear together |
7-Stage Filter
All picks must pass:
- ❌ No duplicate with historical combinations
- ✅ Sum range: 130-220
- ✅ Odd/Even ratio: 2:3 or 3:2
- ✅ High/Low balance: 2:3 or 3:2
- ✅ Decade balance: At least 3 different decades
- ✅ Ending diversity: At least 4 different last digits
- ❌ No triple consecutive numbers
Data Source
Historical data from NY Open Data Powerball API.
Disclaimer
For educational and entertainment purposes only. Lottery numbers are randomly drawn. No algorithm can predict or guarantee winning numbers. Gamble responsibly.
License
MIT
