If you have an experiment and the outcome of the experiment is a number, then a random variable is the number that comes from the experiment.
如果你有一个试验,这个试验的结果是一个数,那么相对应的随机变量,指的就是这个试验结果所对应的那个数
For example, the experiment could be tossing a coin, I will call the outcome heads the number one, and I'll call the outcome tails the number zero, so I've just defined a random variable.
比方说,抛硬币的试验,我将正面向上的结果对应数字1,反面向上的结果对应数字0,这样我就定义了一个随机变量
And the thing I wanted point out is, we've got this global variable number of calls. Which is there not because Fibonacci needs it but just for pedagogical reasons, so that we can keep track of how much work this thing is doing.
要指出的是我们已经,调用了几次这个全局变量,这不是因为斐波那契数列,需要调用它而只是,因为教学上的需要,以便我们可以知道,这个函数做了多少事情。
I have it down that there might be an infinite number of possible values for the random variable x.
对于这个随机变量X,可能的取值个数是无限的
应用推荐