Skip to content
/ wilks Public

Jupyter notebook to fit a reciprocal polynomial on Wilks coefficients

License

Notifications You must be signed in to change notification settings

607011/wilks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wilks

Jupyter notebook to fit a reciprocal polynomial on Wilks coefficients

The Wilks coefficients are used to compare the weights lifted by athletes of different body weights. The weight lifted is multiplied by the coefficient corresponding to the body weight. The higher the product, the better the athlete has performed. All weights need to be expressed in kilogram.

Unfortunately, the creator of the formula, Robert Wilks, CEO of Powerlifting Australia, hasn't published the formula on which the coefficients are based on. Only two tables of coefficients are available, one for men, one for women.

The code in this Jupyter notebook extracts the coefficients from those tables (see the files wilks-men.tsv and wilks-women.tsv) and fits the following reciprocal polynomial on them:

coeff = g / (a + bx + cx2 + dx3 + ex4 + fx5)

Where x is the athlete's body weight in kilogram and the independent parameters a, b, c, … g are to optimized to fit the curve to the given coefficients.

It turns out that the following values make the formula almost perfectly fit the coefficients:

Men Women
a 3.63670138e+04 -9.31498570e+04
b 6.55937783e+03 1.01904268e+04
c 5.65741690e+01 -2.43239016e+01
d -1.07472551e+00 -7.84945613e-01
e 5.45052301e-03 7.00489691e-03
f -9.30455617e-06 -1.74074520e-05
g 4.63384381e+05 4.46372497e+05

Prerequisites

  • Python 3.x
  • Pipenv

Running the code

Clone the repository, then enter the created directory:

git clone https://github.com/ola-ct/wilks.git
cd wilks

Install required modules:

pipenv install

Open Jupyter notebook:

pipenv run jupyter notebook

A browser window containing the notebook should open.

You can now run the code by pressing the "Run" button.

License

Copyright © 2020 Oliver Lau

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

Releases

No releases published

Packages

No packages published