Question: The nbaallelo _ slr . csv data base contains information on 1 2 6 3 1 5 NBA games between 1 9 4 7 and

The nbaallelo_slr.csv data base contains information on 126315 NBA games between 1947 and 2015. The columns report the points made by one team, the Elo rating of that team coming into the game, the Elo rating of the team after the game, and the points made by the opposing team.
Load the data set into a data frame.
Find the correlation matrix for all three columns.
Create a new column y in the data frame that is the difference between the points made by the two teams.
Find the correlation matrix for y and the Elo rating column elo_i.
Ex: If the Elo rating of the team after the game, elo_n, is used instead of elo_i, the output is:
elo_n pts opp_pts
elo_n 1.0000000.121670-0.178553
pts 0.1216701.0000000.592491
opp_pts -0.1785530.5924911.000000
elo_n y
elo_n 1.0000000.332553
y 0.3325531.000000

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!