I have read two defintions for a random variable.
1. It is a function from the set of all posisible outcomes to the real line. For example Y("male")=0
2. A variable where known probabilities are associated with sample outcomes.
Which one is correct? Defintion 1 does not include a probability, while defintion 2 does.
1. It is a function from the set of all posisible outcomes to the real line. For example Y("male")=0
2. A variable where known probabilities are associated with sample outcomes.
Which one is correct? Defintion 1 does not include a probability, while defintion 2 does.