Session Ready
Exercise

Exercise 4. A and B play a series - part 2

Repeat the previous exercise, but now keep the probability that team \(A\) wins fixed at p <- 0.75 and compute the probability for different series lengths. For example, wins in best of 1 game, 3 games, 5 games, and so on through a series that lasts 25 games.

Instructions
100 XP
  • Use the seq function to generate a list of odd numbers ranging from 1 to 25.
  • Use the function sapply to compute the probability, call it Pr, of winning during series of different lengths.
  • Then plot the result plot(N, Pr).