Skip to content

Instantly share code, notes, and snippets.

@henryrossiter
Last active April 23, 2018 01:32
Show Gist options
  • Save henryrossiter/9fa8a4ea568c3aea561e2cce989b2371 to your computer and use it in GitHub Desktop.
Save henryrossiter/9fa8a4ea568c3aea561e2cce989b2371 to your computer and use it in GitHub Desktop.
stats = csvread('training_data.csv',1,0);
tourney_wins = stats(:, 1);
season_games = stats(:, 3);
season_win_pct = stats(:, 4);
season_ppg = stats(:, 5);
const = ones(size(tourney_wins));
facs = horzcat(season_win_pct,season_games,season_ppg,const);
beta = mvregress(facs,tourney_wins,'algorithm','cwls');
beta
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment