I think they’re all reckless scientists, but Egon and Ray are both clearly good at science. Any science-y conversation in those movies is between Ray and Egon, and Ray clearly has no problem following Egon’s train-of-thought. Peter, as you say, is the one that doesn’t seem to be good at science in any way.