Re: Looking for some help with my site
Posted: Sat Mar 19, 2016 1:16 pm
Calculating PER :
To calculate Win Shares;
Don't be afraid. These formulas are simple in fact. You can calculate both of them easily (might take a few days at most for someone WHO knows nothing about these formulas AND Excel) with Excel. You can ask me for help when you're stuck.
As for your website, it's Wordpress. I think you can find a nice mod for what you need but still you need to take the PER and WS values from excel, csv, txt or whatever. You can do this manually or automatically with a PHP bot using "curl" or "file_get_contents", "preg_match_all" and probably a few more functions such as "implode" and "explode".
Good Luck.
Code: Select all
uPER = (1 / MP) *
[ 3P
+ (2/3) * AST
+ (2 - factor * (team_AST / team_FG)) * FG
+ (FT *0.5 * (1 + (1 - (team_AST / team_FG)) + (2/3) * (team_AST / team_FG)))
- VOP * TOV
- VOP * DRB% * (FGA - FG)
- VOP * 0.44 * (0.44 + (0.56 * DRB%)) * (FTA - FT)
+ VOP * (1 - DRB%) * (TRB - ORB)
+ VOP * DRB% * ORB
+ VOP * STL
+ VOP * DRB% * BLK
- PF * ((lg_FT / lg_PF) - 0.44 * (lg_FTA / lg_PF) * VOP) ]
factor = (2 / 3) - (0.5 * (lg_AST / lg_FG)) / (2 * (lg_FG / lg_FT))
VOP = lg_PTS / (lg_FGA - lg_ORB + lg_TOV + 0.44 * lg_FTA)
DRB% = (lg_TRB - lg_ORB) / lg_TRB
pace adjustment = lg_Pace / team_Pace
aPER = (pace adjustment) * uPER
PER = aPER * (15 (Legue Average) / lg_aPER)
You can calculate league average and change the value "15" accordingly in the above formula.
Code: Select all
First calculate Offensive Win Shares;
1.Calculate points produced for each player..
2.Calculate offensive possessions for each player.
3.Calculate marginal offense for each player. "(points produced) - 0.92 * (league points per possession) * (offensive possessions)"
4.Calculate marginal points per win. 0.32 * (league points per game) * ((team pace) / (league pace))..
5.Credit Offensive Win Shares to the players. (marginal offense) / (marginal points per win).
Then calculate Defensive Win Shares;
1. Calculate the Defensive Rating for each player
2. Calculate marginal defense for each player (player minutes played / team minutes played) * (team defensive possessions) * (1.08 * (league points per possession) - ((Defensive Rating) / 100)).
3. Calculate marginal points per win. The same formula was used above. 0.32 * (league points per game) * ((team pace) / (league pace) .
4. Credit Defensive Win Shares to the players (marginal defense) / (marginal points per win)
Lastly:
Offensive Winshares + Defensive Winshares = Winshares
As for your website, it's Wordpress. I think you can find a nice mod for what you need but still you need to take the PER and WS values from excel, csv, txt or whatever. You can do this manually or automatically with a PHP bot using "curl" or "file_get_contents", "preg_match_all" and probably a few more functions such as "implode" and "explode".
Good Luck.