Detecting Temporal Dependencies in Data