Question: I need java CODE that takes this data Rk , Player,Pos,Age,Tm , G , GS , MPG , FG , FGA,FG % , 3 PM

I need java CODE that takes this data
Rk,Player,Pos,Age,Tm,G,GS,MPG,FG,FGA,FG%,3PM,3PA,3P%,2PM,2PA,2P%,eFG%,FT,FTA,FT%,ORB,DRB,TRB,AST,STL,BLK,TOV,PF,PTS
1,Precious Achiuwa,C,23,TOR,55,12,20.7,3.6,7.3,0.485,0.5,2,0.269,3,5.4,0.564,0.521,1.6,2.3,0.702,1.8,4.1,6,0.9,0.6,0.5,1.1,1.9,9.2
2,Steven Adams,C,29,MEM,42,42,27,3.7,6.3,0.597,0,0,0,3.7,6.2,0.599,0.597,1.1,3.1,0.364,5.1,6.5,11.5,2.3,0.9,1.1,1.9,2.3,8.6
and does the following functionalities
Functionality 1: Players Stats and Minutes Played
Analyzing NBA players' performance goes beyond basic stats. This exploration utilizes player
data to predict their rebounds, assists, points, and steals per game based on average minutes
played. We will build a Random Forest Regression model using Java libraries. This model is
better suited than linear regression for capturing the non-linear relationship between minutes
played and these stats. While factors like talent and opponent strength influence performance,
this approach provides a data-driven analysis to estimate a player's potential based on average
minutes played.
Functionality 2: Win Share Data for Players
We can use a multi-step approach in Java to estimate a player's Win Shares (WS), a metric of
their contribution to winning. First, we'll create new features by combining existing stats (FG%,
rebounds, etc.) to capture aspects like scoring efficiency or rebounding rate that might influence
wins. Then, we'll build a Random Forest Regression model, a prediction tool. This model will be
trained on existing player data, but instead of using actual Win Shares, it will learn the
relationships between stats and Win Shares using a formula like John Hollinger's (The creator of
the original win share formula). By analyzing these patterns, the model can predict Win Shares
for new players based solely on their provided stats. Remember, this is an estimate of a player's
true impact on winning depends on various factors beyond just individual stats.
third functionality, we would like to see a performance evaluation of the players. A user should be able to select a player and view whether they or under- or over-performing relative to their contract, and by how much (percentage). This will likely involve a regression model that takes individual statistics (counting and/or advanced) and produces a monetary value for it. You would have to obtain annual contract data for players to achieve this.

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!