Fußball Abschlussprojekt

Research question:

  • Does age decreases the transfer market value of all players equally? Can old higher valued players still have high values whereas older lower valued players have a rapid decrease in their value? Is there a performance-independent age effect on the transfer market value?
df <- read.delim("transfermarkt_fbref_201920.csv", sep = ";")

df_modified <- df %>% filter(age> 15) %>% 
  mutate(Position = sub(",.", "", position),
         across(c(3:4, 9:12, 400), as.factor),
         across(c(23:37), as.numeric),
         Value_log = log(value),
  ) %>% droplevels()

df_performance_per90 <- df_modified %>% 
  dplyr::select_if(grepl("per90", names(.)) &
                     !grepl("per90m|per90_gkm",names(.)))

df_performance <- df_modified %>% 
  select(c("aerials_won_pct","ball_recoveries",
           "blocked_passes","blocked_shots","carry_progressive_distance",
           "clean_sheets","clearances","dribble_tackles_pct",
           "dribbles_completed_pct","games",
           "games_starts","passes_pct",
           "tackles_won","touches_att_3rd"))

df_modified <- cbind(df_performance_per90,
                     df_performance,
                     age=df_modified$age,
                     value=df_modified$value,
                     position=df_modified$position,
                     league=df_modified$league,
                     Value_log = df_modified$Value_log)

Independent Variable \(y\)

The data frame has 2644 observations and 400 variables. For attending the research question showed above, we selected the transfer market value determined by the column value as the independent variable \(y\). The following plot shows the distribution of the transfer market value of the football players. On left side, we can see the distribution of the transfer market value and it seems to be an exponential or gamma distribution. The other side shows the log transformation. It seem to be a normal distribution with mean 14.712965 and standard deviation 2.36071

The following analysis will be split into 2 parts. In the first part, we will use the transformed independent variable. For this case, we are going to fit the data using the least square estimator approach. In the second part, we will use the independent variable in its original scale to use the generalize regression approach with the exponential family to fit the data.

Dependent Variables and Linear Predictors

Age

At first, we will regress the transfer market value only on Age.

Dependent Variables and Linear Predictors

The first independent variable is age expressed by \(x_{i,1}\) will be used to fit log transfer value or the dependent variable expressed by \(y_i\). The following plot shows the relationship between the age and log transfer value.The following formula summarizes this approach:

\[ \log(y_i) = \beta_0 + \beta_1x_{i,1} + \epsilon_i\]

lm_model <- lm(log(value) ~ age, data = df_modified)
summary(lm_model)
## 
## Call:
## lm(formula = log(value) ~ age, data = df_modified)
## 
## Residuals:
##      Min       1Q   Median       3Q      Max 
## -11.1932  -0.5769   0.5331   1.5349   4.1756 
## 
## Coefficients:
##             Estimate Std. Error t value Pr(>|t|)    
## (Intercept) 16.06550    0.26567  60.470  < 2e-16 ***
## age         -0.05335    0.01032  -5.168 2.54e-07 ***
## ---
## Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
## 
## Residual standard error: 2.349 on 2637 degrees of freedom
## Multiple R-squared:  0.01003,    Adjusted R-squared:  0.009652 
## F-statistic: 26.71 on 1 and 2637 DF,  p-value: 2.542e-07

We see a negative relationship which is expressed by the coefficient \(\hat{\beta_1} =\) -0.0533461 and \(\hat{\beta_0} =\) 16.0654969. The coefficient of determination is \(R^2 =\) 0.010027. I.e., our model perform very bad in explaining the error terms of our fitted data. Although the variable are significant, I would not implement this model, since the data are not fitted very well. Other argument against the implementation of the linear model, is given by the Residuals vs. Fitted and the QQ-Plot Residuals.

Although the all the parameters and the F-Statistic are very significant, they do not fulfilled the assumption for linear model:

  • A Linear Relationship (see plot above right), and
  • A normal distribution of the residuals \(\hat{ \epsilon }\) (see plot above left)

For this reason,we consider the Generalized linear model approach.

Generalized Regression approach
model_glm <- glm(formula = (value) ~ age, data = df_modified, family = Gamma)
summary(model_glm)
## 
## Call:
## glm(formula = (value) ~ age, family = Gamma, data = df_modified)
## 
## Coefficients:
##               Estimate Std. Error t value Pr(>|t|)    
## (Intercept) -2.199e-09  1.778e-08  -0.124    0.902    
## age          4.338e-09  7.359e-10   5.895 4.22e-09 ***
## ---
## Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
## 
## (Dispersion parameter for Gamma family taken to be 2.441819)
## 
##     Null deviance: 7190.7  on 2638  degrees of freedom
## Residual deviance: 7104.8  on 2637  degrees of freedom
## AIC: 88809
## 
## Number of Fisher Scoring iterations: 7
library(sjPlot)
plot_model(model_glm, type = "pred", terms = c("age"))

quant_model <- rq(formula = log(value) ~ age, tau = 0.5, data = df_modified)

cbind("Quatile Regression Coef" = coef(summary(quant_model))[,1],
      "Quatile Regression P-Wert" = coef(summary(quant_model))[,4],
      "Linear Regression Coef" = coef(summary(lm_model))[,1], 
      "Linear Regression P-Wert" = coef(summary(lm_model))[,4])
##             Quatile Regression Coef Quatile Regression P-Wert
## (Intercept)             17.10337552              0.000000e+00
## age                     -0.07297509              2.442491e-15
##             Linear Regression Coef Linear Regression P-Wert
## (Intercept)            16.06549686             0.000000e+00
## age                    -0.05334606             2.542207e-07
age_seq <- seq(17, max(df_modified$age), 1)
design_mat <- matrix(data = c(rep(x = 1, times = length(age_seq)), age_seq), ncol = 2)

plot(df_modified$age, log(df_modified$value), ylab = "Transfer Market Value", 
     xlab = "Age", pch = 18, cex =.5)
lines(age_seq, design_mat %*%coef(lm_model), col= "red", lwd=2, type="l")
lines(age_seq, design_mat %*% coef(quant_model), col = "blue", lwd = 2, type="l")
legend("topright", col = c("blue", "red"), lwd = 2, bty = "n",
legend = c("qr", "lm"))

seq_tao <- c(0.5, 0.25, 0.75, 0.025, 0.95)
colors <- c("blue", "red", "purple", "green", "orange")
quant_model_list <- list()
quant_model_coef <- list()
quant_model_summary <- list()

## Plot

plot(x = df_modified$age, y = log(df_modified$value), pch = 18, cex =.5,
     ylab = "Transfer Market Value", 
     xlab = "Age")

for (i in 1:length(seq_tao)) {

  quant_model_list[[i]] <- rq(formula = log(value) ~ age, 
                              tau = seq_tao[i], data = df_modified)
  
  quant_model_summary[[i]] <- summary(quant_model_list[[i]])
  quant_model_coef[[i]] <- coef(quant_model_list[[i]])
  lines(age_seq, design_mat %*% quant_model_coef[[i]], 
        col= colors[[i]], lwd=2, type="l")
  
}

legend("topright", col = colors, lwd = 2, bty = "n",
legend = c(seq_tao))

quant_model_summary
## [[1]]
## 
## Call: rq(formula = log(value) ~ age, tau = seq_tao[i], data = df_modified)
## 
## tau: [1] 0.5
## 
## Coefficients:
##             Value    Std. Error t value  Pr(>|t|)
## (Intercept) 17.10338  0.23626   72.39281  0.00000
## age         -0.07298  0.00916   -7.96575  0.00000
## 
## [[2]]
## 
## Call: rq(formula = log(value) ~ age, tau = seq_tao[i], data = df_modified)
## 
## tau: [1] 0.25
## 
## Coefficients:
##             Value    Std. Error t value  Pr(>|t|)
## (Intercept) 15.39985  0.29631   51.97200  0.00000
## age         -0.04951  0.00995   -4.97556  0.00000
## 
## [[3]]
## 
## Call: rq(formula = log(value) ~ age, tau = seq_tao[i], data = df_modified)
## 
## tau: [1] 0.75
## 
## Coefficients:
##             Value     Std. Error t value   Pr(>|t|) 
## (Intercept)  18.58681   0.19575   94.95411   0.00000
## age          -0.09193   0.00779  -11.79936   0.00000
## 
## [[4]]
## 
## Call: rq(formula = log(value) ~ age, tau = seq_tao[i], data = df_modified)
## 
## tau: [1] 0.025
## 
## Coefficients:
##             Value    Std. Error t value  Pr(>|t|)
## (Intercept) 11.73607  2.17458    5.39694  0.00000
## age         -0.13293  0.09172   -1.44939  0.14735
## 
## [[5]]
## 
## Call: rq(formula = log(value) ~ age, tau = seq_tao[i], data = df_modified)
## 
## tau: [1] 0.95
## 
## Coefficients:
##             Value    Std. Error t value  Pr(>|t|)
## (Intercept) 18.71604  0.24457   76.52494  0.00000
## age         -0.05268  0.01083   -4.86250  0.00000
options(scipen = 999)

predic_values_by_75 <- (c(1,25) %*% as.vector(unlist(quant_model_coef[which(seq_tao == 0.75)])))
predic_values_by_75_real <- exp(c(1,25) %*% as.vector(unlist(quant_model_coef[which(seq_tao == 0.75)])))

c(predic_values_by_75, predic_values_by_75_real)
## [1]       16.28853 11858182.81792

We then did some subsetting to consider the League and Position in the Analysis

model_dataset <- df_modified


Forwards<-model_dataset[model_dataset$position=="FW",]
FW_Prem<- Forwards[Forwards$league=="Premier League",]
FW_SerieA<- Forwards[Forwards$league=="Serie A",]
FW_LaLiga<- Forwards[Forwards$league=="La Liga",]
FW_Li1<- Forwards[Forwards$league=="Ligue 1",]
FW_Bundes<- Forwards[Forwards$league=="Bundesliga",]

Midfielders<-model_dataset[model_dataset$position=="MF",]
MF_Prem<- Midfielders[Midfielders$league=="Premier League",]
MF_SerieA<- Midfielders[Midfielders$league=="Serie A",]
MF_LaLiga<- Midfielders[Midfielders$league=="La Liga",]
MF_Li1<- Midfielders[Midfielders$league=="Ligue 1",]
MF_Bundes<- Midfielders[Midfielders$league=="Bundesliga",]

Defenders<-model_dataset[model_dataset$position=="DF",]
DF_Prem<-Defenders[Defenders$league=="Premier League",]
DF_SerieA<- Defenders[Defenders$league=="Serie A",]
DF_LaLiga<- Defenders[Defenders$league=="La Liga",]
DF_Li1<- Defenders[Defenders$league=="Ligue 1",]
DF_Bundes<- Defenders[Defenders$league=="Bundesliga",]

Goalkeepers<-model_dataset[model_dataset$position=="GK",]
GK_Prem<-Goalkeepers[Goalkeepers$league=="Premier League",]
GK_SerieA<-Goalkeepers[Goalkeepers$league=="Serie A",]
GK_LaLiga<-Goalkeepers[Goalkeepers$league=="La Liga",]
GK_Li1<-Goalkeepers[Goalkeepers$league=="Ligue 1",]
GK_Bundes<-Goalkeepers[Goalkeepers$league=="Bundesliga",]

#I'll create some key performance metrics subsets for each position

FW_KM<-Forwards[,c("goals_assists_per90","xg_xa_per90","shots_total_per90",
                        "gca_per90","aerials_won_pct","dribbles_completed_pct",
                        "games","touches_att_3rd")]

MF_KM<-Midfielders[,c("goals_assists_per90","xg_xa_per90","gca_per90","dribbles_completed_pct",
                      "games",
                      "ball_recoveries","blocked_passes","carry_progressive_distance")]
                      
DF_KM<-Defenders[,c("aerials_won_pct","ball_recoveries","blocked_passes",
                    "blocked_shots","clearances","dribble_tackles_pct",
                    "games","tackles_won")]

GK_KM<-Goalkeepers[,c("goals_against_per90_gk","psxg_net_per90_gk","def_actions_outside_pen_area_per90_gk",
                     "clean_sheets","games")]

Forward

Visualization

Quantile Regression Regression Output

## [[1]]
## 
## Call: rq(formula = log(value) ~ age + league + as.matrix(FW_KM), tau = seq_tao[i], 
##     data = Forwards)
## 
## tau: [1] 0.5
## 
## Coefficients:
##                                        Value    Std. Error t value  Pr(>|t|)
## (Intercept)                            14.77040  0.85756   17.22372  0.00000
## age                                    -0.08346  0.02244   -3.71904  0.00023
## leagueLa Liga                           0.18181  0.39537    0.45984  0.64592
## leagueLigue 1                          -0.07454  0.34857   -0.21384  0.83079
## leaguePremier League                    0.74374  0.32291    2.30321  0.02185
## leagueSerie A                           0.07034  0.32269    0.21799  0.82757
## as.matrix(FW_KM)goals_assists_per90     0.43367  0.42066    1.03092  0.30328
## as.matrix(FW_KM)xg_xa_per90             0.83646  0.69627    1.20134  0.23042
## as.matrix(FW_KM)shots_total_per90       0.05538  0.13868    0.39931  0.68990
## as.matrix(FW_KM)gca_per90              -0.21334  0.67148   -0.31771  0.75089
## as.matrix(FW_KM)aerials_won_pct         0.00702  0.00613    1.14555  0.25276
## as.matrix(FW_KM)dribbles_completed_pct  0.00660  0.00850    0.77577  0.43840
## as.matrix(FW_KM)games                   0.03616  0.01206    2.99854  0.00290
## as.matrix(FW_KM)touches_att_3rd         0.00226  0.00047    4.85239  0.00000
## 
## [[2]]
## 
## Call: rq(formula = log(value) ~ age + league + as.matrix(FW_KM), tau = seq_tao[i], 
##     data = Forwards)
## 
## tau: [1] 0.25
## 
## Coefficients:
##                                        Value    Std. Error t value  Pr(>|t|)
## (Intercept)                            12.01925  1.00656   11.94094  0.00000
## age                                    -0.07812  0.03371   -2.31725  0.02106
## leagueLa Liga                          -0.33807  0.53595   -0.63079  0.52858
## leagueLigue 1                           0.52354  0.46013    1.13781  0.25597
## leaguePremier League                    0.73424  0.45630    1.60911  0.10848
## leagueSerie A                           0.16755  0.52798    0.31735  0.75117
## as.matrix(FW_KM)goals_assists_per90     0.93862  0.69566    1.34926  0.17812
## as.matrix(FW_KM)xg_xa_per90             0.28577  1.03376    0.27644  0.78237
## as.matrix(FW_KM)shots_total_per90      -0.05677  0.16110   -0.35241  0.72474
## as.matrix(FW_KM)gca_per90              -0.91280  0.87416   -1.04420  0.29711
## as.matrix(FW_KM)aerials_won_pct         0.00563  0.01168    0.48177  0.63027
## as.matrix(FW_KM)dribbles_completed_pct  0.02049  0.01000    2.04923  0.04118
## as.matrix(FW_KM)games                   0.08370  0.02314    3.61647  0.00034
## as.matrix(FW_KM)touches_att_3rd         0.00316  0.00090    3.53058  0.00047
## 
## [[3]]
## 
## Call: rq(formula = log(value) ~ age + league + as.matrix(FW_KM), tau = seq_tao[i], 
##     data = Forwards)
## 
## tau: [1] 0.75
## 
## Coefficients:
##                                        Value    Std. Error t value  Pr(>|t|)
## (Intercept)                            16.57078  0.63474   26.10647  0.00000
## age                                    -0.09902  0.02219   -4.46266  0.00001
## leagueLa Liga                           0.24120  0.26180    0.92133  0.35751
## leagueLigue 1                           0.00241  0.27657    0.00873  0.99304
## leaguePremier League                    0.63546  0.25944    2.44938  0.01479
## leagueSerie A                           0.11121  0.26381    0.42155  0.67361
## as.matrix(FW_KM)goals_assists_per90     1.30117  0.65645    1.98213  0.04824
## as.matrix(FW_KM)xg_xa_per90             0.43549  0.84997    0.51235  0.60872
## as.matrix(FW_KM)shots_total_per90       0.08969  0.10757    0.83378  0.40497
## as.matrix(FW_KM)gca_per90              -0.43321  0.60106   -0.72074  0.47154
## as.matrix(FW_KM)aerials_won_pct         0.00093  0.00688    0.13534  0.89242
## as.matrix(FW_KM)dribbles_completed_pct  0.00543  0.00634    0.85693  0.39206
## as.matrix(FW_KM)games                   0.00639  0.01354    0.47208  0.63716
## as.matrix(FW_KM)touches_att_3rd         0.00210  0.00065    3.22212  0.00139
## 
## [[4]]
## 
## Call: rq(formula = log(value) ~ age + league + as.matrix(FW_KM), tau = seq_tao[i], 
##     data = Forwards)
## 
## tau: [1] 0.025
## 
## Coefficients:
##                                        Value    Std. Error t value  Pr(>|t|)
## (Intercept)                            13.56925  2.93114    4.62935  0.00001
## age                                    -0.34390  0.09915   -3.46865  0.00059
## leagueLa Liga                          -5.02878  2.53119   -1.98672  0.04772
## leagueLigue 1                           0.57076  2.18444    0.26128  0.79403
## leaguePremier League                   -1.56423  2.01278   -0.77715  0.43759
## leagueSerie A                          -1.18901  1.95265   -0.60892  0.54297
## as.matrix(FW_KM)goals_assists_per90     0.94118  1.53762    0.61210  0.54086
## as.matrix(FW_KM)xg_xa_per90            -1.58140  1.72311   -0.91776  0.35937
## as.matrix(FW_KM)shots_total_per90       0.18978  0.19835    0.95681  0.33932
## as.matrix(FW_KM)gca_per90              -0.14146  2.30967   -0.06125  0.95120
## as.matrix(FW_KM)aerials_won_pct        -0.03849  0.03396   -1.13321  0.25789
## as.matrix(FW_KM)dribbles_completed_pct  0.03243  0.01938    1.67317  0.09518
## as.matrix(FW_KM)games                   0.28255  0.06599    4.28164  0.00002
## as.matrix(FW_KM)touches_att_3rd         0.00174  0.00271    0.64060  0.52220
## 
## [[5]]
## 
## Call: rq(formula = log(value) ~ age + league + as.matrix(FW_KM), tau = seq_tao[i], 
##     data = Forwards)
## 
## tau: [1] 0.95
## 
## Coefficients:
##                                        Value    Std. Error t value  Pr(>|t|)
## (Intercept)                            16.87259  0.66569   25.34603  0.00000
## age                                    -0.09368  0.02567   -3.64987  0.00030
## leagueLa Liga                           0.89263  0.25224    3.53889  0.00046
## leagueLigue 1                           0.12974  0.28762    0.45107  0.65221
## leaguePremier League                    0.87413  0.27980    3.12409  0.00193
## leagueSerie A                           0.18189  0.18372    0.99001  0.32284
## as.matrix(FW_KM)goals_assists_per90     0.02102  0.48108    0.04370  0.96517
## as.matrix(FW_KM)xg_xa_per90             2.10533  0.78276    2.68963  0.00749
## as.matrix(FW_KM)shots_total_per90       0.06727  0.07966    0.84451  0.39895
## as.matrix(FW_KM)gca_per90               0.54701  0.50240    1.08880  0.27698
## as.matrix(FW_KM)aerials_won_pct         0.00778  0.00727    1.07089  0.28495
## as.matrix(FW_KM)dribbles_completed_pct  0.00461  0.00409    1.12813  0.26003
## as.matrix(FW_KM)games                  -0.02061  0.01621   -1.27155  0.20437
## as.matrix(FW_KM)touches_att_3rd         0.00242  0.00088    2.76729  0.00595
Midfielders

Visualization

Quantile Regression Regression Output

## [[1]]
## 
## Call: rq(formula = log(value) ~ age + league + as.matrix(MF_KM), tau = seq_tao[i], 
##     data = Midfielders)
## 
## tau: [1] 0.5
## 
## Coefficients:
##                                            Value    Std. Error t value 
## (Intercept)                                15.33596  0.93134   16.46656
## age                                        -0.10056  0.02128   -4.72537
## leagueLa Liga                               0.16175  0.23088    0.70057
## leagueLigue 1                              -0.05626  0.26881   -0.20931
## leaguePremier League                        0.98334  0.23902    4.11408
## leagueSerie A                              -0.10124  0.26782   -0.37799
## as.matrix(MF_KM)goals_assists_per90         0.62854  0.86422    0.72729
## as.matrix(MF_KM)xg_xa_per90                 0.55355  1.13981    0.48565
## as.matrix(MF_KM)gca_per90                   0.95358  0.52941    1.80122
## as.matrix(MF_KM)dribbles_completed_pct      0.01135  0.00784    1.44757
## as.matrix(MF_KM)games                       0.01687  0.02177    0.77489
## as.matrix(MF_KM)ball_recoveries             0.00069  0.00145    0.47742
## as.matrix(MF_KM)blocked_passes              0.00628  0.00921    0.68207
## as.matrix(MF_KM)carry_progressive_distance  0.00032  0.00009    3.66119
##                                            Pr(>|t|)
## (Intercept)                                 0.00000
## age                                         0.00000
## leagueLa Liga                               0.48387
## leagueLigue 1                               0.83428
## leaguePremier League                        0.00004
## leagueSerie A                               0.70558
## as.matrix(MF_KM)goals_assists_per90         0.46735
## as.matrix(MF_KM)xg_xa_per90                 0.62741
## as.matrix(MF_KM)gca_per90                   0.07221
## as.matrix(MF_KM)dribbles_completed_pct      0.14830
## as.matrix(MF_KM)games                       0.43874
## as.matrix(MF_KM)ball_recoveries             0.63325
## as.matrix(MF_KM)blocked_passes              0.49548
## as.matrix(MF_KM)carry_progressive_distance  0.00028
## 
## [[2]]
## 
## Call: rq(formula = log(value) ~ age + league + as.matrix(MF_KM), tau = seq_tao[i], 
##     data = Midfielders)
## 
## tau: [1] 0.25
## 
## Coefficients:
##                                            Value    Std. Error t value 
## (Intercept)                                13.06262  0.86387   15.12113
## age                                        -0.12001  0.02890   -4.15220
## leagueLa Liga                               0.12478  0.44855    0.27819
## leagueLigue 1                              -0.11121  0.46115   -0.24117
## leaguePremier League                        1.27270  0.37620    3.38302
## leagueSerie A                              -0.08901  0.46703   -0.19058
## as.matrix(MF_KM)goals_assists_per90         0.38633  1.16063    0.33286
## as.matrix(MF_KM)xg_xa_per90                -0.40086  1.20982   -0.33134
## as.matrix(MF_KM)gca_per90                   1.42085  1.26145    1.12636
## as.matrix(MF_KM)dribbles_completed_pct      0.02562  0.00795    3.22375
## as.matrix(MF_KM)games                       0.08668  0.02935    2.95307
## as.matrix(MF_KM)ball_recoveries            -0.00236  0.00202   -1.16970
## as.matrix(MF_KM)blocked_passes              0.00944  0.00883    1.06966
## as.matrix(MF_KM)carry_progressive_distance  0.00026  0.00009    2.82625
##                                            Pr(>|t|)
## (Intercept)                                 0.00000
## age                                         0.00004
## leagueLa Liga                               0.78097
## leagueLigue 1                               0.80952
## leaguePremier League                        0.00077
## leagueSerie A                               0.84893
## as.matrix(MF_KM)goals_assists_per90         0.73937
## as.matrix(MF_KM)xg_xa_per90                 0.74051
## as.matrix(MF_KM)gca_per90                   0.26050
## as.matrix(MF_KM)dribbles_completed_pct      0.00134
## as.matrix(MF_KM)games                       0.00328
## as.matrix(MF_KM)ball_recoveries             0.24262
## as.matrix(MF_KM)blocked_passes              0.28524
## as.matrix(MF_KM)carry_progressive_distance  0.00488
## 
## [[3]]
## 
## Call: rq(formula = log(value) ~ age + league + as.matrix(MF_KM), tau = seq_tao[i], 
##     data = Midfielders)
## 
## tau: [1] 0.75
## 
## Coefficients:
##                                            Value    Std. Error t value 
## (Intercept)                                16.51865  0.61477   26.86950
## age                                        -0.08212  0.02024   -4.05660
## leagueLa Liga                               0.25135  0.28081    0.89507
## leagueLigue 1                              -0.24590  0.23427   -1.04963
## leaguePremier League                        0.52956  0.21987    2.40857
## leagueSerie A                              -0.15895  0.25690   -0.61870
## as.matrix(MF_KM)goals_assists_per90         0.55954  0.71860    0.77865
## as.matrix(MF_KM)xg_xa_per90                 0.36171  0.96902    0.37327
## as.matrix(MF_KM)gca_per90                   1.09156  0.51545    2.11767
## as.matrix(MF_KM)dribbles_completed_pct      0.00709  0.00327    2.16954
## as.matrix(MF_KM)games                      -0.01074  0.01774   -0.60573
## as.matrix(MF_KM)ball_recoveries            -0.00074  0.00152   -0.49052
## as.matrix(MF_KM)blocked_passes              0.01788  0.00943    1.89571
## as.matrix(MF_KM)carry_progressive_distance  0.00041  0.00008    5.03133
##                                            Pr(>|t|)
## (Intercept)                                 0.00000
## age                                         0.00006
## leagueLa Liga                               0.37114
## leagueLigue 1                               0.29435
## leaguePremier League                        0.01634
## leagueSerie A                               0.53637
## as.matrix(MF_KM)goals_assists_per90         0.43652
## as.matrix(MF_KM)xg_xa_per90                 0.70909
## as.matrix(MF_KM)gca_per90                   0.03465
## as.matrix(MF_KM)dribbles_completed_pct      0.03047
## as.matrix(MF_KM)games                       0.54494
## as.matrix(MF_KM)ball_recoveries             0.62396
## as.matrix(MF_KM)blocked_passes              0.05852
## as.matrix(MF_KM)carry_progressive_distance  0.00000
## 
## [[4]]
## 
## Call: rq(formula = log(value) ~ age + league + as.matrix(MF_KM), tau = seq_tao[i], 
##     data = Midfielders)
## 
## tau: [1] 0.025
## 
## Coefficients:
##                                            Value    Std. Error t value 
## (Intercept)                                11.17410  1.97455    5.65905
## age                                        -0.21350  0.07333   -2.91166
## leagueLa Liga                              -0.48591  1.05782   -0.45935
## leagueLigue 1                               0.49904  1.13451    0.43988
## leaguePremier League                        1.09497  1.06785    1.02539
## leagueSerie A                              -0.36353  1.07191   -0.33914
## as.matrix(MF_KM)goals_assists_per90         3.74974  2.53982    1.47638
## as.matrix(MF_KM)xg_xa_per90                -4.43192  2.32258   -1.90819
## as.matrix(MF_KM)gca_per90                  -1.26303  2.09527   -0.60280
## as.matrix(MF_KM)dribbles_completed_pct      0.02440  0.01130    2.16023
## as.matrix(MF_KM)games                       0.28053  0.05188    5.40768
## as.matrix(MF_KM)ball_recoveries            -0.02084  0.00664   -3.13626
## as.matrix(MF_KM)blocked_passes              0.04271  0.03322    1.28561
## as.matrix(MF_KM)carry_progressive_distance  0.00051  0.00027    1.93322
##                                            Pr(>|t|)
## (Intercept)                                 0.00000
## age                                         0.00374
## leagueLa Liga                               0.64616
## leagueLigue 1                               0.66020
## leaguePremier League                        0.30563
## leagueSerie A                               0.73463
## as.matrix(MF_KM)goals_assists_per90         0.14041
## as.matrix(MF_KM)xg_xa_per90                 0.05688
## as.matrix(MF_KM)gca_per90                   0.54689
## as.matrix(MF_KM)dribbles_completed_pct      0.03118
## as.matrix(MF_KM)games                       0.00000
## as.matrix(MF_KM)ball_recoveries             0.00180
## as.matrix(MF_KM)blocked_passes              0.19912
## as.matrix(MF_KM)carry_progressive_distance  0.05372
## 
## [[5]]
## 
## Call: rq(formula = log(value) ~ age + league + as.matrix(MF_KM), tau = seq_tao[i], 
##     data = Midfielders)
## 
## tau: [1] 0.95
## 
## Coefficients:
##                                            Value    Std. Error t value 
## (Intercept)                                16.94133  0.81674   20.74260
## age                                        -0.04671  0.03027   -1.54277
## leagueLa Liga                               0.55017  0.27914    1.97099
## leagueLigue 1                               0.01561  0.28901    0.05401
## leaguePremier League                        0.67415  0.26206    2.57253
## leagueSerie A                               0.08170  0.29850    0.27370
## as.matrix(MF_KM)goals_assists_per90        -0.33700  1.00636   -0.33487
## as.matrix(MF_KM)xg_xa_per90                 1.81514  0.96682    1.87743
## as.matrix(MF_KM)gca_per90                   0.85887  0.65727    1.30671
## as.matrix(MF_KM)dribbles_completed_pct      0.00342  0.00443    0.77136
## as.matrix(MF_KM)games                      -0.02667  0.02236   -1.19287
## as.matrix(MF_KM)ball_recoveries             0.00047  0.00185    0.25493
## as.matrix(MF_KM)blocked_passes              0.01104  0.01215    0.90852
## as.matrix(MF_KM)carry_progressive_distance  0.00034  0.00012    2.87740
##                                            Pr(>|t|)
## (Intercept)                                 0.00000
## age                                         0.12346
## leagueLa Liga                               0.04922
## leagueLigue 1                               0.95695
## leaguePremier League                        0.01036
## leagueSerie A                               0.78442
## as.matrix(MF_KM)goals_assists_per90         0.73785
## as.matrix(MF_KM)xg_xa_per90                 0.06098
## as.matrix(MF_KM)gca_per90                   0.19185
## as.matrix(MF_KM)dribbles_completed_pct      0.44082
## as.matrix(MF_KM)games                       0.23343
## as.matrix(MF_KM)ball_recoveries             0.79887
## as.matrix(MF_KM)blocked_passes              0.36400
## as.matrix(MF_KM)carry_progressive_distance  0.00416
Defenders

Visualization

Quantile Regression Regression Output

## [[1]]
## 
## Call: rq(formula = log(value) ~ age + league + as.matrix(DF_KM), tau = seq_tao[i], 
##     data = Defenders)
## 
## tau: [1] 0.5
## 
## Coefficients:
##                                     Value     Std. Error t value   Pr(>|t|) 
## (Intercept)                          16.29396   0.47260   34.47716   0.00000
## age                                  -0.13283   0.01043  -12.73290   0.00000
## leagueLa Liga                        -0.29483   0.16637   -1.77214   0.07673
## leagueLigue 1                        -0.53689   0.13293   -4.03875   0.00006
## leaguePremier League                  0.58731   0.12207    4.81122   0.00000
## leagueSerie A                        -0.37442   0.13833   -2.70677   0.00693
## as.matrix(DF_KM)aerials_won_pct       0.01533   0.00378    4.05810   0.00005
## as.matrix(DF_KM)ball_recoveries       0.00550   0.00136    4.05141   0.00006
## as.matrix(DF_KM)blocked_passes       -0.02660   0.00548   -4.85764   0.00000
## as.matrix(DF_KM)blocked_shots        -0.00529   0.00967   -0.54717   0.58441
## as.matrix(DF_KM)clearances           -0.00888   0.00201   -4.42586   0.00001
## as.matrix(DF_KM)dribble_tackles_pct   0.00623   0.00328    1.89878   0.05794
## as.matrix(DF_KM)games                 0.08765   0.01656    5.29184   0.00000
## as.matrix(DF_KM)tackles_won           0.00031   0.00663    0.04702   0.96251
## 
## [[2]]
## 
## Call: rq(formula = log(value) ~ age + league + as.matrix(DF_KM), tau = seq_tao[i], 
##     data = Defenders)
## 
## tau: [1] 0.25
## 
## Coefficients:
##                                     Value    Std. Error t value  Pr(>|t|)
## (Intercept)                         14.78115  0.67278   21.97018  0.00000
## age                                 -0.16277  0.02281   -7.13488  0.00000
## leagueLa Liga                       -0.66818  0.32216   -2.07407  0.03838
## leagueLigue 1                       -0.27450  0.32856   -0.83545  0.40370
## leaguePremier League                 0.66343  0.22384    2.96381  0.00312
## leagueSerie A                       -0.83440  0.35478   -2.35189  0.01891
## as.matrix(DF_KM)aerials_won_pct      0.02026  0.00738    2.74440  0.00619
## as.matrix(DF_KM)ball_recoveries      0.00146  0.00196    0.74505  0.45645
## as.matrix(DF_KM)blocked_passes      -0.02052  0.00716   -2.86693  0.00425
## as.matrix(DF_KM)blocked_shots       -0.01924  0.01481   -1.29851  0.19447
## as.matrix(DF_KM)clearances          -0.00446  0.00282   -1.57962  0.11457
## as.matrix(DF_KM)dribble_tackles_pct  0.01380  0.00667    2.06955  0.03880
## as.matrix(DF_KM)games                0.14083  0.02375    5.92878  0.00000
## as.matrix(DF_KM)tackles_won          0.00066  0.00986    0.06725  0.94640
## 
## [[3]]
## 
## Call: rq(formula = log(value) ~ age + league + as.matrix(DF_KM), tau = seq_tao[i], 
##     data = Defenders)
## 
## tau: [1] 0.75
## 
## Coefficients:
##                                     Value    Std. Error t value  Pr(>|t|)
## (Intercept)                         16.72206  0.38672   43.24061  0.00000
## age                                 -0.10675  0.01442   -7.40385  0.00000
## leagueLa Liga                        0.09366  0.19611    0.47761  0.63305
## leagueLigue 1                       -0.37658  0.15832   -2.37862  0.01760
## leaguePremier League                 0.61293  0.14088    4.35079  0.00002
## leagueSerie A                       -0.11886  0.18573   -0.63999  0.52235
## as.matrix(DF_KM)aerials_won_pct      0.01586  0.00342    4.64034  0.00000
## as.matrix(DF_KM)ball_recoveries      0.00731  0.00184    3.96289  0.00008
## as.matrix(DF_KM)blocked_passes      -0.02560  0.00619   -4.13458  0.00004
## as.matrix(DF_KM)blocked_shots        0.00485  0.01128    0.42978  0.66747
## as.matrix(DF_KM)clearances          -0.01119  0.00254   -4.40129  0.00001
## as.matrix(DF_KM)dribble_tackles_pct  0.00172  0.00339    0.50757  0.61189
## as.matrix(DF_KM)games                0.06251  0.01541    4.05688  0.00005
## as.matrix(DF_KM)tackles_won         -0.00439  0.00675   -0.64980  0.51600
## 
## [[4]]
## 
## Call: rq(formula = log(value) ~ age + league + as.matrix(DF_KM), tau = seq_tao[i], 
##     data = Defenders)
## 
## tau: [1] 0.025
## 
## Coefficients:
##                                     Value    Std. Error t value  Pr(>|t|)
## (Intercept)                         13.00161  1.84179    7.05921  0.00000
## age                                 -0.37694  0.07187   -5.24444  0.00000
## leagueLa Liga                       -1.11345  1.14868   -0.96933  0.33266
## leagueLigue 1                       -1.33106  1.37643   -0.96703  0.33381
## leaguePremier League                 1.67653  0.90695    1.84853  0.06488
## leagueSerie A                       -0.77073  0.84124   -0.91618  0.35983
## as.matrix(DF_KM)aerials_won_pct      0.04237  0.01797    2.35721  0.01864
## as.matrix(DF_KM)ball_recoveries     -0.01339  0.00907   -1.47598  0.14032
## as.matrix(DF_KM)blocked_passes      -0.03036  0.02838   -1.06987  0.28499
## as.matrix(DF_KM)blocked_shots       -0.06031  0.04964   -1.21495  0.22473
## as.matrix(DF_KM)clearances           0.00023  0.01106    0.02067  0.98351
## as.matrix(DF_KM)dribble_tackles_pct -0.00494  0.01454   -0.33954  0.73429
## as.matrix(DF_KM)games                0.40588  0.09744    4.16520  0.00003
## as.matrix(DF_KM)tackles_won          0.02330  0.02837    0.82121  0.41176
## 
## [[5]]
## 
## Call: rq(formula = log(value) ~ age + league + as.matrix(DF_KM), tau = seq_tao[i], 
##     data = Defenders)
## 
## tau: [1] 0.95
## 
## Coefficients:
##                                     Value    Std. Error t value  Pr(>|t|)
## (Intercept)                         18.13406  0.68262   26.56531  0.00000
## age                                 -0.11380  0.01900   -5.98838  0.00000
## leagueLa Liga                        0.28476  0.26891    1.05894  0.28993
## leagueLigue 1                       -0.57917  0.25215   -2.29698  0.02187
## leaguePremier League                 0.40319  0.18088    2.22910  0.02607
## leagueSerie A                       -0.15505  0.21855   -0.70942  0.47826
## as.matrix(DF_KM)aerials_won_pct      0.00886  0.00593    1.49570  0.13511
## as.matrix(DF_KM)ball_recoveries      0.00526  0.00205    2.55807  0.01070
## as.matrix(DF_KM)blocked_passes      -0.01960  0.00942   -2.08016  0.03781
## as.matrix(DF_KM)blocked_shots       -0.00181  0.01240   -0.14619  0.88380
## as.matrix(DF_KM)clearances          -0.00575  0.00212   -2.71600  0.00674
## as.matrix(DF_KM)dribble_tackles_pct  0.01041  0.00392    2.65833  0.00800
## as.matrix(DF_KM)games                0.04463  0.02461    1.81394  0.07004
## as.matrix(DF_KM)tackles_won         -0.00815  0.01012   -0.80466  0.42124
Goalkeepers

Visualization

Quantile Regression Regression Output

## [[1]]
## 
## Call: rq(formula = log(value) ~ age + league + as.matrix(GK_KM), tau = seq_tao[i], 
##     data = Goalkeepers)
## 
## tau: [1] 0.5
## 
## Coefficients:
##                                                       Value    Std. Error
## (Intercept)                                           14.39050  1.96828  
## age                                                   -0.08740  0.04549  
## leagueLa Liga                                         -0.30758  0.44946  
## leagueLigue 1                                          0.01181  0.50527  
## leaguePremier League                                  -0.00615  0.54195  
## leagueSerie A                                         -0.32986  0.44661  
## as.matrix(GK_KM)goals_against_per90_gk                -0.60161  0.41741  
## as.matrix(GK_KM)psxg_net_per90_gk                     -0.32061  0.90770  
## as.matrix(GK_KM)def_actions_outside_pen_area_per90_gk -0.03395  0.40767  
## as.matrix(GK_KM)clean_sheets                           0.04463  0.04440  
## as.matrix(GK_KM)games                                  0.13865  0.01943  
##                                                       t value  Pr(>|t|)
## (Intercept)                                            7.31122  0.00000
## age                                                   -1.92125  0.05625
## leagueLa Liga                                         -0.68433  0.49463
## leagueLigue 1                                          0.02338  0.98138
## leaguePremier League                                  -0.01135  0.99096
## leagueSerie A                                         -0.73859  0.46110
## as.matrix(GK_KM)goals_against_per90_gk                -1.44128  0.15121
## as.matrix(GK_KM)psxg_net_per90_gk                     -0.35321  0.72434
## as.matrix(GK_KM)def_actions_outside_pen_area_per90_gk -0.08328  0.93372
## as.matrix(GK_KM)clean_sheets                           1.00515  0.31615
## as.matrix(GK_KM)games                                  7.13541  0.00000
## 
## [[2]]
## 
## Call: rq(formula = log(value) ~ age + league + as.matrix(GK_KM), tau = seq_tao[i], 
##     data = Goalkeepers)
## 
## tau: [1] 0.25
## 
## Coefficients:
##                                                       Value    Std. Error
## (Intercept)                                           13.15650  1.80290  
## age                                                   -0.09010  0.04781  
## leagueLa Liga                                         -0.10335  0.64578  
## leagueLigue 1                                          0.06808  0.42508  
## leaguePremier League                                   0.10900  0.43224  
## leagueSerie A                                         -0.09172  0.52720  
## as.matrix(GK_KM)goals_against_per90_gk                -0.58705  0.36990  
## as.matrix(GK_KM)psxg_net_per90_gk                     -0.71662  0.61446  
## as.matrix(GK_KM)def_actions_outside_pen_area_per90_gk  0.11247  0.36214  
## as.matrix(GK_KM)clean_sheets                           0.05673  0.06842  
## as.matrix(GK_KM)games                                  0.14486  0.02329  
##                                                       t value  Pr(>|t|)
## (Intercept)                                            7.29740  0.00000
## age                                                   -1.88468  0.06106
## leagueLa Liga                                         -0.16004  0.87303
## leagueLigue 1                                          0.16016  0.87293
## leaguePremier League                                   0.25218  0.80119
## leagueSerie A                                         -0.17398  0.86208
## as.matrix(GK_KM)goals_against_per90_gk                -1.58706  0.11423
## as.matrix(GK_KM)psxg_net_per90_gk                     -1.16626  0.24503
## as.matrix(GK_KM)def_actions_outside_pen_area_per90_gk  0.31056  0.75649
## as.matrix(GK_KM)clean_sheets                           0.82919  0.40808
## as.matrix(GK_KM)games                                  6.22014  0.00000
## 
## [[3]]
## 
## Call: rq(formula = log(value) ~ age + league + as.matrix(GK_KM), tau = seq_tao[i], 
##     data = Goalkeepers)
## 
## tau: [1] 0.75
## 
## Coefficients:
##                                                       Value    Std. Error
## (Intercept)                                           17.41958  1.66324  
## age                                                   -0.09936  0.04650  
## leagueLa Liga                                          0.21354  0.52914  
## leagueLigue 1                                         -0.24807  0.45361  
## leaguePremier League                                   0.78915  0.48877  
## leagueSerie A                                         -0.17780  0.48903  
## as.matrix(GK_KM)goals_against_per90_gk                -0.68422  0.49696  
## as.matrix(GK_KM)psxg_net_per90_gk                     -0.16311  1.13415  
## as.matrix(GK_KM)def_actions_outside_pen_area_per90_gk  0.03839  0.56161  
## as.matrix(GK_KM)clean_sheets                           0.05928  0.05507  
## as.matrix(GK_KM)games                                  0.06062  0.02697  
##                                                       t value  Pr(>|t|)
## (Intercept)                                           10.47327  0.00000
## age                                                   -2.13702  0.03392
## leagueLa Liga                                          0.40356  0.68701
## leagueLigue 1                                         -0.54689  0.58512
## leaguePremier League                                   1.61456  0.10813
## leagueSerie A                                         -0.36357  0.71660
## as.matrix(GK_KM)goals_against_per90_gk                -1.37681  0.17025
## as.matrix(GK_KM)psxg_net_per90_gk                     -0.14382  0.88580
## as.matrix(GK_KM)def_actions_outside_pen_area_per90_gk  0.06835  0.94558
## as.matrix(GK_KM)clean_sheets                           1.07643  0.28315
## as.matrix(GK_KM)games                                  2.24777  0.02578
## 
## [[4]]
## 
## Call: rq(formula = log(value) ~ age + league + as.matrix(GK_KM), tau = seq_tao[i], 
##     data = Goalkeepers)
## 
## tau: [1] 0.025
## 
## Coefficients:
##                                                       Value    Std. Error
## (Intercept)                                           13.20405  2.70109  
## age                                                   -0.20044  0.08114  
## leagueLa Liga                                         -2.34117  1.41359  
## leagueLigue 1                                         -2.46836  1.68689  
## leaguePremier League                                  -0.45520  1.05825  
## leagueSerie A                                         -0.62828  1.40100  
## as.matrix(GK_KM)goals_against_per90_gk                 0.67210  0.86216  
## as.matrix(GK_KM)psxg_net_per90_gk                      1.77609  1.96527  
## as.matrix(GK_KM)def_actions_outside_pen_area_per90_gk  0.02346  1.11695  
## as.matrix(GK_KM)clean_sheets                           0.85941  0.27846  
## as.matrix(GK_KM)games                                 -0.12494  0.11927  
##                                                       t value  Pr(>|t|)
## (Intercept)                                            4.88842  0.00000
## age                                                   -2.47043  0.01441
## leagueLa Liga                                         -1.65618  0.09940
## leagueLigue 1                                         -1.46325  0.14511
## leaguePremier League                                  -0.43015  0.66759
## leagueSerie A                                         -0.44845  0.65436
## as.matrix(GK_KM)goals_against_per90_gk                 0.77955  0.43667
## as.matrix(GK_KM)psxg_net_per90_gk                      0.90374  0.36732
## as.matrix(GK_KM)def_actions_outside_pen_area_per90_gk  0.02100  0.98327
## as.matrix(GK_KM)clean_sheets                           3.08625  0.00234
## as.matrix(GK_KM)games                                 -1.04753  0.29624
## 
## [[5]]
## 
## Call: rq(formula = log(value) ~ age + league + as.matrix(GK_KM), tau = seq_tao[i], 
##     data = Goalkeepers)
## 
## tau: [1] 0.95
## 
## Coefficients:
##                                                       Value    Std. Error
## (Intercept)                                           19.48057  1.31018  
## age                                                   -0.14851  0.03500  
## leagueLa Liga                                          0.83167  0.38898  
## leagueLigue 1                                          0.23500  0.42119  
## leaguePremier League                                   0.86780  0.31547  
## leagueSerie A                                          0.53570  0.39083  
## as.matrix(GK_KM)goals_against_per90_gk                -0.53425  0.27617  
## as.matrix(GK_KM)psxg_net_per90_gk                      0.61970  0.47803  
## as.matrix(GK_KM)def_actions_outside_pen_area_per90_gk  0.34610  0.39095  
## as.matrix(GK_KM)clean_sheets                           0.05930  0.04721  
## as.matrix(GK_KM)games                                  0.03480  0.01886  
##                                                       t value  Pr(>|t|)
## (Intercept)                                           14.86861  0.00000
## age                                                   -4.24312  0.00003
## leagueLa Liga                                          2.13809  0.03384
## leagueLigue 1                                          0.55795  0.57756
## leaguePremier League                                   2.75078  0.00654
## leagueSerie A                                          1.37069  0.17215
## as.matrix(GK_KM)goals_against_per90_gk                -1.93452  0.05459
## as.matrix(GK_KM)psxg_net_per90_gk                      1.29635  0.19649
## as.matrix(GK_KM)def_actions_outside_pen_area_per90_gk  0.88528  0.37717
## as.matrix(GK_KM)clean_sheets                           1.25609  0.21068
## as.matrix(GK_KM)games                                  1.84564  0.06656