ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Thu, 03 Nov 2016 23:57:25 +0100Use cumulative distribution functionshttps://ask.sagemath.org/question/35407/use-cumulative-distribution-functions/I don't understand how to use cumulative distribution functions in sagemath.
For example, I'd like to define a function *N(x)* as *N(x)=1-F(x)* where *F* is a cumulative log-normal distribution
However, if I try
W = RealDistribution('lognormal',[1.5,.6])
N(x) = W.cum_distribution_function(x)
it does not seem to work at allMassimo2013Thu, 03 Nov 2016 23:57:25 +0100https://ask.sagemath.org/question/35407/Seed - probability distribution functionshttps://ask.sagemath.org/question/10194/seed-probability-distribution-functions/Hello experts!
In a new user of sage.
This is a triple-question for you:
1) Reading the 'Craig Finch Sage Beginners Guide' page 236 I find the next script (about accessing probability distribution functions):
variance = 0.75
gaussian = RealDistribution('gaussian', variance)
gaussian.set_seed(0.0)
random_values = [gaussian.get_random_element() for i in range(1000)]
gaussian_plot = gaussian.plot((-5, 5))
The 1st question is ¿Whats for gaussian.set_seed(0.0)? ¿What does (0.0) seed value minds?
2) ¿What must i write in a script for obtain a normal (gaussian) distribution center in 'C' with variance 'V'?
3) Again, in 'Craig Finch Sage Beginners Guide' page 305 i find:
rng = RealDistribution('uniform', [0,dimension], seed=1)
¿Whats for seed=1 value? ¿What does 1 seed value minds?
Waiting for your answers.
Thaks a lot!!mresimulatorWed, 05 Jun 2013 18:38:47 +0200https://ask.sagemath.org/question/10194/