Bet Better toolbox for Scilab
=============================

Turn betting odds into probabilities, measure and remove the bookmaker margin,
and read open betting-market data, in pure Scilab.

Functions
  bb_odds_to_prob     decimal / American odds -> implied probability
  bb_frac_to_prob     fractional odds -> implied probability
  bb_overround        overround and margin of one market
  bb_remove_margin    fair probabilities: proportional, additive or power method
  bb_margin_index     read the daily Bet Better Margin Index (CC BY 4.0)
  bb_weighted_margin  average margin per market type, weighted by market count
  bb_feed             free JSON feed of model win probabilities for a league

Example
  odds = [2.10 3.40 3.50];
  [o, m] = bb_overround(odds)          // 5.60 % overround, 5.31 % margin
  bb_remove_margin(odds, "power")

Build: exec builder.sce    Load: exec loader.sce    Tests: test_run(pwd())

Data and method notes: https://betbetter.world/studies/margin-index
API docs: https://betbetter.world/api/
The same methods in R: https://betbetter.world/rstats/book/

Statistics tools, not betting advice. 18+.
License: MIT (code). Data: CC BY 4.0, Bet Better.
