Analysis of Optical Subsystems and Links using Statistical and Machine Learning Methods