Correlation, regression, and repeated data