start to refactor trend analysis out
add 3 sigma bounds