Sample code for using linear regression in Hadoop MapReduce to forecast future values based on trends that are based on historical data