Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Probability density function

Hi experts!

In a line like this:

uniforme_x=RealDistribution('uniform',[a,b])

i call a 'uniform' probability density function: f(t)=1/(b-a), a<t<b.< p="">

In addition, SAGE includes several probability density function: gaussian, log-normal, etc.

But: How can create in SAGE a probability density function created by me (F(t), DIFFERENT to gaussian, log-normal, etc...) and then create random numbers from it?

Waiting for your answers.

Thanks a lot.

Probability density function

Hi experts!

In a line like this:

uniforme_x=RealDistribution('uniform',[a,b])

uniforme_x=RealDistribution('uniform',[a,b])

i call a 'uniform' probability density function: f(t)=1/(b-a), a<t<b.< p=""> f(t)=1/(b-a), a<t<b.

In addition, SAGE includes several probability density function: gaussian, log-normal, etc.

But: How can create in SAGE a probability density function created by me (F(t), DIFFERENT to gaussian, log-normal, etc...) and then create random numbers from it?

Waiting for your answers.

Thanks a lot.