sample and distributions
Publié : jeu. déc. 17, 2020 11:56 pm
I guess the sample command can take a distribution as the first argument.
The manual does something like
In: X:=randvar(normal,stddev=9.5):; Y:=randvar(normal,stddev=1.5):;
then
In: sample(eval(X/Y,0),10):
and it works fine. But
In: sample(eval(X,0),10)
gives a bad argument error, while
In: sample(eval(1*X,0),10)
works just fine.
How is sample supposed to work with a distribution as the first argument?
The manual does something like
In: X:=randvar(normal,stddev=9.5):; Y:=randvar(normal,stddev=1.5):;
then
In: sample(eval(X/Y,0),10):
and it works fine. But
In: sample(eval(X,0),10)
gives a bad argument error, while
In: sample(eval(1*X,0),10)
works just fine.
How is sample supposed to work with a distribution as the first argument?