MGEC45 Homework Assignment #1
This problem set uses data from the NHL, NFL and MLB, and will ask you to analyze the way in which goals/points/runs are related to a team’s winning percentage in a given season.
Question 1
Use the three spreadsheets with data from the 2015, 2016 and 2017 Major-League Baseball (MLB) seasons. Please refer to the “Readme file for MLB data” file for a description of the data in each spreadsheet. Once you have loaded your data, please complete the following questions:
(a) With the data from each season, run the following regression that estimates the Pythagorean Win Expectancy model: ππ = πΌ + π½ ( (π π − π π΄) 4π ππ£π ) In this case, “π ππ£π” is the average number of runs scored by all teams in the season. So, in this case, you will estimate 3 separate regressions: one for the 2015 season, one for the 2016 season and one for the 2017 season. For each season’s regression output, formally test the hypothesis that your estimate of π½ is equal to 2, as James’s model would predict. (5 marks)
(b) Now, pool the three seasons of data together, and estimate a fixed effect regression model: ππππ‘ = πΌ + π½ ( (π πππ‘ − π π΄ππ‘) 4π ππ£π,π‘ ) + ∑ πΏπ (π−1) π=1 In this case, the subscript “i” represents the team in the data, the subscript “t” represents the season in the data, and “k” represents the total number of teams in your data set. For this regression, formally test the hypothesis that your estimate of π½ is equal to 2, as James’s model would predict. (10 marks)
(c) Compare the regression estimates of π½ in parts (a) and (b) – what does the similarity (or dissimilarity) of the estimates suggest about the potential problem of omitted variable bias within the model? (5 marks)
(d) Now, separate the right-hand-side variable into two parts, as follows: ππππ‘ = πΌ + π½1 ( π πππ‘ 4π ππ£π,π‘ ) + π½2 ( −π π΄ππ‘ 4π ππ£π,π‘ ) + ∑ πΏπ (π−1) π=1 In this case, be sure to specify your second variable as the negative value of runs allowed over four times the average number of runs scored in a given season. For this regression, formally test the hypothesis that your estimate of π½1 is equal to your estimate of π½2. Do your results suggest that runs scored and runs allowed have an equal impact on win percentage? (10 marks)
Question 2 Use the three spreadsheets with data from the 2016, 2017 and 2018 NFL seasons. Please refer to the “Readme file for NFL data” file for a description of the data in each spreadsheet. Once you have loaded your data, please complete the following questions:
(a) With the data from each season, run the following regression that estimates the Pythagorean Win Expectancy model: ππ = πΌ + π½ ( (ππΉ − ππ΄) 4πππ£π ) In this case, “πππ£π” is the average number of points scored by all teams in the season. So, in this case, you will estimate 3 separate regressions: one for the 2016 season, one for the 2017 season and one for the 2018 season. For each season’s regression output, formally test the hypothesis that your estimate of π½ is equal to 2, as James’s model would predict. (5 marks)
(b) Now, pool the three seasons of data together, and estimate a fixed effect regression model:
ππππ‘ = πΌ + π½ ( (ππΉππ‘ − ππ΄ππ‘) 4πππ£π,π‘ ) + ∑ πΏπ (π−1) π=1
In this case, the subscript “i” represents the team in the data, the subscript “t” represents the season in the data, and “k” represents the total number of teams in your data set. For this regression, formally test the hypothesis that your estimate of π½ is equal to 2, as James’s model would predict. (10 marks)
(c) Compare the regression estimates of π½ in parts (a) and (b) – what does the similarity (or dissimilarity) of the estimates suggest about the potential problem of omitted variable bias within the model? (10 marks)
(d) Now, separate the right-hand-side variable into two parts, as follows:
ππππ‘ = πΌ + π½1 ( ππΉππ‘ 4πππ£π,π‘ ) + π½2 ( −ππ΄ππ‘ 4πππ£π,π‘ ) + ∑ πΏπ (π−1) π=1
In this case, be sure to specify your second variable as the negative value of points allowed over four times the average number of points scored in a given season. For this regression, formally test the hypothesis that your estimate of π½1 is equal to your estimate of π½2. Do your results suggest that points scored and points allowed have an equal impact on win percentage? Or does it appear that there is one factor that is more important than the other in determining a team’s winning percentage. (10 marks)
CS 340 Milestone One Guidelines and Rubric Overview: For this assignment, you will implement the fundamental operations of create, read, update,
Retail Transaction Programming Project Project Requirements: Develop a program to emulate a purchase transaction at a retail store. This
7COM1028 Secure Systems Programming Referral Coursework: Secure
Create a GUI program that:Accepts the following from a user:Item NameItem QuantityItem PriceAllows the user to create a file to store the sales receip
CS 340 Final Project Guidelines and Rubric Overview The final project will encompass developing a web service using a software stack and impleme