Read a CSV from standard input with columns dataset,x,y (several datasets, in order of first appearance).
For each dataset print one line:
I: n=11, mean x 9.00, mean y 7.50, var x 11.00, var y 4.13, r 0.816, y = 3.00 + 0.500x
— the number of points, the means and sample variances (2 decimals), the Pearson correlation (3 decimals) and the least-squares line (intercept 2 decimals, slope 3 decimals). Then print Summary statistics identical (2 decimals): yes if all datasets have the same mean x and mean y when rounded to 2 decimals, otherwise no.
Use pandas (groupby, mean, var, corr) and numpy.polyfit.