Using Transitivity with Nearest Neighbor to Reduce Error in Sample-Based Pearson Correlation Coefficients