Bradley-Terry Likelihood Function with Lasso Peanlty's optimization
1 | B_T_Lasso(dataframe, lambda, wij)
|
dataframe |
Dataframe with 4 columns. First column is the home teams Second column is the away teams. Third column is the number of wins of home teams. Fourth column is the number of wins of away teams. |
lambda |
Lasso penalty of no statistical mean, a larger choice of lambda means higher penalty. Usually the best penalty is chosen from Cross-Validation, where in-model's prediction power is maximized. |
wij |
The weights added to the Lasso Penalty. Can be manually setted or determined using function B_T_Wij |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.