in_match_win: Conditional Match Win Prediction

in_match_winR Documentation

Conditional Match Win Prediction

Description

This function calculates the conditional match win prediction for matches in progress conditioned on the current score

Usage

in_match_win(point_a, point_b, game_a, game_b, set_a, set_b, server.prob,
  returner.prob, bestof3 = TRUE, advantage = TRUE)

Arguments

point_a

Numeric game points won by current server at start of point

point_b

Numeric game points won by current returner at start of point

game_a

Numeric games won by current server in the current set

game_b

Numeric games won by current returner in the current set

set_a

Numeric sets won by current server

set_b

Numeric sets won by current returner

server.prob

Numeric serve win prob of current server

returner.prob

Numeric serve win prob of current returner

bestof3

Logical indicator if best-of-3 match (TRUE) or best-of-5 (FALSE)

advantage

Logical if advantage set match (TRUE) or tiebreak match (FALSE)

Value

Numeric probability that current server will win the match

References

Barnett, T. (2013). Teaching probability theory through tennis. Strategic Games.

Examples

in_match_win(3, 2, 5, 5, 0, 0, 0.65, 0.63, bestof3 = T, advantage = F)
in_match_win(2, 3, 5, 5, 0, 1, 0.65, 0.63, bestof3 = T, advantage = F)


skoval/deuce documentation built on March 7, 2023, 2:39 p.m.