Internal Code: 1GGGF
NBA Basketball Statistics Assignment Help:
Task:
For further information or query regarding any academic assistance, visit
www.myassignmentbank.com. You can also contact us by calling
+61 2 8294 2025 or by sending an email to
info@myassignmentbank.com.
I have attached the file of my assignment. It deals with NBA basktball statistics and requires a lot of coding, especially through the functions "group_by" and "summary). I would greatly appreciate any help with this. There are two data sets that I would need to send to the person working on my project in order for the project to work. the csv files are large data sets. I just have two of them that I would need to send over extra. Thank You. - Allen P. This needs to use the R programming language and work out. Reminder: I will need to email the data sets to the programmer. Thank You. It is just answering the questions on the assignment and providing visual representations that use code. Thank You! -- Allen P. This should be a simple assignment if the person working on it knows how to code and to break down that code.
For further information or query regarding any academic assistance, visit
www.myassignmentbank.com. You can also contact us by calling
+61 2 8294 2025 or by sending an email to
info@myassignmentbank.com.
Overview
The following Lab is written in Discussion, Question (Q) and Answer (A) format. Your knitted file should have all these questions with answers filled in and of course all the plots and statistical summaries required.
Some questions don’t requirewritten answers, just some wrangling behind the scenes to prepare for the next question.
Discussion: In the Lab, we will use statistical modeling to understand the past. In particular, we will determine exactly how much certain basic stats in the NBA (like offensive rebounds, field goal percentage, turnovers, etc...) contribute to overall points scored, allowed, etc... We will also learn good ways to measure such variables (including
the important concept of adjusting for team "pace") and use our model to better analyze team performance. Teams use these stats to analze their past weaknesses and improve.
In the later Project, we will use similar techniques to show how statistical modeling can be used for to understand the future. We will create a predictor for future team winning percentage that predicts future winning percentage better than current winning percentage does. This can be used, for example, to help teams determine the probability
that they will make the playoffs. This helps teams decide whether they should keep their aging stars to win now or sell them off for younger players and draft picks that will help them in future seasons.
Q: Let's begin by reading in the "1516NBAcleaned.csv" and "1415NBAcleaned.csv" files, which contain every play of the 2014-2015, 2015-2016 NBA season.
Discussion: These rows of these data sets contain every play for every game in the two seasons. The 47 variables give a wealth of information about each play. This is cool because we can wrangle anything we want from this, including specialized summary stats that might be hard to find or that you might want to alter. The code book for the 47 variables of this data set is on the shared drive and contains a link to a page explaing common basketball terms.
Q: We now want to bind the two data sets together by rows. However, before doing this we need to add a "2014" year label to the "team" and "OT" (opposing team) fields for the 14/15 data to distinguish between teams from the same city but different years. Do this use the "sub" command. For 2014, the syntax is:
Datacolumn & - sub
For further information or query regarding any academic assistance, visit
www.myassignmentbank.com. You can also contact us by calling
+61 2 8294 2025 or by sending an email to
info@myassignmentbank.com.
Here the special charcter "^" denotes the space before the beginning of a character string. The command above replaces this with "14". So "GSW" becomes "14GSW".
This is an example of cleaning your data set. After you have added this year label, then bind the datasets together by rows.
To make things easier later, create a "year" variable for each data set before binding.
Q: For now, let's focus on the fields "team" (the team that executed the play),"points" (the number of points scored) and "type" (a description of the play). Go ahead and wrangle a new summary table that lists all the teams (for both years), their total offensive rebounds, and their total points scored. In the "type" field, offensive rebounds are denoted as "rebound offensive".