Remark. The choice of codomain
R is not required. Conceptually, we could have, for instance, a random variable
Mood:{sun,rain}×{cold,warm}
given by
Mood(weather,temperature):={goodbadweather=rain∨temperature=warmotherwise
However,
R is almost always used because it allows for numerical analysis.
Let