Provide functioning Python code to implement the model and graphical output

Question
  1. Al-Zawraa is a very good football teams in the Iraqi Premier League. The stadium holds 15,000 people.  The number of people attending one of their games is related to the number of people attending the previous game and the results from the previous two games in the following manner:
  • The attendance increases according to a logistic model when the team has won both its previous games
  • If the team wins one and drawsone of its last two games, the crowd will increase in a linear fashion.
  • if the team loses both games, the crowd size will decay geometrically.
  • any other possibilites result in a linear decrease.
  • The results of the 2016/17 season were as follows:

3–0 1–0 6–4 4–0 4–1 4–1 0–2 2–1 1–1 2–2 2–1 0–1 1–2 6–0 4–1 0–2 3–0 4–1

  • Develop a discrete time model that illustrates the attendance for the season.  Make the following assumptions.
    • the attendance in the first game was 8,000
    • The initial growth rate for logistic and linear components is 10%
    • Decay rate for losing both games is 10%
  • Provide functioning Python code to implement the model and graphical output to show the results.

 

"Order a similar paper and get 15% discount on your first order with us
Use the following coupon
"FIRST15"

Order Now