Probability and port engineering