Revised summary function

I believe I have the right conditional standard deviations.