function new_data = debias(data, num_samples) 

  % find the average value of the data
  %
  average = mean(data)


  % subtract the mean from each sample
  %
  for i = 1:num_samples

    % add this sample value to the sum
    %
    new_data(i) = data(i) - average;
  end

