Question: The answer must be typed with R Markdown and its fine for you to knit your R Markdown into a Word or PDF file. NBA_19_Salary.txt:
The answer must be typed with R Markdown and its fine for you to knit your R Markdown into a Word or PDF file.
NBA_19_Salary.txt:
Salary Team 40231758 Warriors 38178000 Rockets 37800000 Rockets 37436858 Lakers 32742000 Warriors 32742000 Celtics 32700690 Celtics 30603448 Bucks 27504630 Warriors 27093019 Lakers 25842697 Bucks 19000000 Hawks 18539130 Warriors 16456522 Hawks 15625000 Bucks 14634146 Lakers 14057730 Rockets 13333334 Hawks 12553471 Celtics 12093024 Bucks 11301219 Rockets 9133907 Bucks 8349039 Rockets 8089282 Lakers 7830000 Celtics 7068360 Hawks 7000000 Bucks 6534829 Celtics 6273000 Hawks 5000000 Celtics 4767000 Lakers 4767000 Bucks 4767000 Celtics 4464286 Warriors 4245720 Hawks 4000000 Lakers 3540000 Rockets 3458400 Celtics 3000000 Lakers 2961120 Bucks 2905800 Bucks 2750000 Lakers 2686560 Hawks 2636280 Hawks 2603982 Hawks 2564753 Hawks 2564753 Lakers 2564753 Lakers 2564753 Lakers 2564753 Bucks 2564753 Bucks 2564753 Rockets 2564753 Rockets
2505793 Celtics 2379840 Celtics 2338847 Hawks 2305057 Hawks 2174318 Rockets 2028594 Rockets 1974600 Lakers 1964760 Warriors 1937520 Celtics 1845301 Rockets 1750000 Lakers 1723050 Bucks 1678854 Hawks 1618520 Bucks 1618520 Celtics 1445697 Bucks 1445697 Celtics 1416852 Rockets 1400000 Hawks 1228026 Celtics 956349 Bucks 898310 Warriors 898310 Warriors 898310 Lakers 898310 Celtics 842327 Warriors 811447 Rockets 695526 Rockets 654468 Warriors 568422 Rockets 522738 Hawks 503656 Lakers 350189 Warriors 350189 Warriors
Q4. NFL Descriptive Statistics [35 pts - 5pts each] Please download the dataset - NBA_19_Salary.txt on Canvas. In this dataset, we have two variables - Salary and Team which were retrieved from NBA Contracts Summary for the NBA Season 2019 - 2020. Please answer the following questions with R directly. DO NOT find the answers manually or brute-forcedly. A. Provide the sample mean and the sample standard deviation of Salary (all players). B. What is the 3rd quartile (Q3) of Salary (all players)? Please use the method in the textbook/lecture notes to find Q3. C. Generate the histogram of Salary (all players) by using bin=seq(0,45000000, by=5000000). What's your observation from the histogram? How many players earn more than or equal to $5M and less than $10M (5,000,000 Salary
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
