The Goodman–Nguyen relation within imprecise probability theory