My camera shows a histogram in the preview:

And after I take the photo:

I shoot RAW, but as I understand it, the histogram is computed from JPEG, so it might indicate that the highlights and/or shadows are clipped, even if they actually aren't in the RAW. Am I correct? If so, the histogram doesn't serve its purpose for me, which is to tell me if the photo I took fails to fully capture the dynamic range in the scene, in which I case need to take another photo.
Does the above point hold for the preview histogram, or the histogram I see after the photo was taken, or both?
What's the relationship between the R, G and B colors on the histogram with the white histogram? Would I be correct in assuming that if there's no clipping on the white histogram, then there's no clipping on any of the histograms for the individual color channels, either?
This is on the Sony NEX-5R, if it matters.