functions necessary to determine if outliers exist