function basketball_least_squares ( )

  data = load ( 'basketball_data.txt' );
  sponsor = data(:,4);
  age = data(:,5);
  n = length ( age );

  A = zeros ( n, 2 );
  A(:,1) = ones(n,1);
  A(:,2) = age;

  c = A \ sponsor;

  fprintf ( 1, 'Best formula is sponsor = %g + %g * age\n', c(1), c(2) );

  return
end
