labeled data from raw quotes
helper functions and logistic regression code