Random Variables
we have to stick to(坚持) random variable however always keep in mind that a random variable is not a fixed value, but a function, mapping or associating(关联) a unique numerical value(一个唯一的数值) to each possible outcome of a random process which is not necessarily a number ("tails", "heads"). A random variable is a function X(e) that maps the set of experiment outcomes to the set of numbers.
More generally, we can say that if the outcome of some process must be one of n different outcomes, and if these n outcomes are equally likely to occur, then the probability of each outcome is 1/n.
In others words, X provides information on the value associated to an outcome of a random process and a value for the
probability of that outcome to occur.
A random variable is some sort of function mapping outcomes to real values but also how probabilities are associated to these
outcomes.
(随机变量 并不是一个固定的值,而是一个函数,这个函数 把 一个唯一的数字与 试验输出的结果 进行关联,而且,这个随机变量会提供 这个 输出结果的 概率)
Probability Mass Function
Plot(绘图) these probability values vs. the possible outcome values. In statistics(统计学), this is what we call a probability distribution.
Let's study an example of such distribution. Remember the experiment(试验) we described in the previous chapter in which we
had 10 cards(卡片), of which 3 were labelled with number 0, 5 were labelled with number 1 and 2 were labelled with number 2.
If you place these cards in a box, shake(摇动) the box, etc. you will (hopefully) agree that each card in the box is equally likely
to be randomly picked up. If we consider the sample sample as being S={0,0,0,1,1,1,1,1,2,2}(the order in this set doesn't
matter, the numbers could be presented in a completely different order), then each outcome in this set has the associated
probability 1/10.
Hopefully with this example, you start to get the meaning(理解) of this function. It really(实际上) defines or describes a
distribution of probabilities across the sample space of an experiment. When applied to discrete random variables, this
function is called a probability mass function (or pmf). Here is finally a more format definition of a probability distribution.
(probabilities distribution :是一个函数,是一个实验的 结果的 概率分布 函数,如果是关于离散随机变量的概率分布函数的话,就叫做 pmf,probability mass function)