Skip to content

omarkohl/wager-calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

188 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Logo

Wager Calculator

Calculate fair betting odds for friendly wagers using Brier scoring.

CI License: MIT

Use It

w.ratfr.de — works on any device, no installation needed. See the FAQ in the app for detailed explanations.

Screenshot

Wagers can easily be shared via the URL. Here you can see the wager of the screenshot above.

What It Does

  • 2-8 participants, binary or multi-outcome bets (up to 8 outcomes)
  • Fair payouts via Brier scoring (a proper scoring rule that rewards honest predictions)
  • Multiple stake types: money (USD, EUR, etc.) or fun stakes (cookies, hugs)
  • Share wagers via URL — all data stays in your browser, nothing stored on servers
  • PWA: installable, works offline

Progressive Web App (PWA)

This app is a PWA — it can be installed on your device and works offline. Once installed, it behaves like a native app with its own icon and window.

To install: Look for an install button in your browser's address bar or menu (often labeled "Install" or "Add to Home Screen") when you visit w.ratfr.de.

Learn more about installing PWAs

How Brier Scoring Works

Each participant's prediction accuracy is measured with a Brier score (lower = better). Payouts are based on how your score compares to others.

Example: Alice, Bob, and Carol bet $40 on whether it rains tomorrow. Tomorrow comes and it does rain.

  • Alice: 70% rain → Brier score 0.18
  • Bob: 30% rain → Brier score 0.98
  • Carol: 50% rain → Brier score 0.50

Alice predicted best, Bob worst. Result: Alice wins $11.20, Carol wins $1.60, Bob pays $12.80.

The key property: reporting your true belief always maximizes your expected payout.

You can find a detailed calculation example in the FAQ in the app.


Development

See docs/dev/DEVELOPMENT.md for setup and deployment.

Contributing

See docs/dev/CONTRIBUTING.md.

Security & Privacy

All calculations are client-side. No data collection. See docs/dev/SECURITY.md.

License

MIT — see LICENSE.

Attribution

Icon by Freepik.

About

App for calculating fair odds for friendly everyday wagers ⚖️

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors