playoffSeriesOdds: Statistical Playoff Series Odds Solver

View source: R/league.R

playoffSeriesOddsR Documentation

Statistical Playoff Series Odds Solver

Description

Given home and away win odds, produce the odds of the 'home advantage' team winning the series. From http://www.stat.umn.edu/geyer/playoff.html, modified to function with odds determination.

Usage

playoffSeriesOdds(
  home_odds,
  away_odds,
  home_win = 0,
  away_win = 0,
  ngames = NULL,
  game_home = NULL,
  predict_games_to_win = FALSE
)

Arguments

home_odds

Team odds with home-ice advantage at home

away_odds

Team odds with home-ice advantage at away (on the road)

home_win

Number of home ice advantage team wins thus far in the series. Default to 0 (prediction before series start)

away_win

Number of away team wins thus far in the series

ngames

Number of games in the series, defaults to 7

game_home

vector of T/F for 'home team' home games. Defaults for NHL best of 7 series: c(T,T,F,F,T,F,T)

predict_games_to_win

(Defualt False) If TRUE, returns the table of ways the series could finish.

Value

numeric odds of home team win series (1-odds for away odds)

References

http://www.stat.umn.edu/geyer/playoff.html


pbulsink/HockeyModel documentation built on Dec. 16, 2024, 8:03 a.m.