Discussion:
[Tutor] Which header to use in python
Michel Guirguis
2015-10-01 12:42:25 UTC
Permalink
Good afternoon,

What is the name of the header that I can use in Python 3.4 to convert the cumulative distribution function number 0.10606601717798211 to 0.54223501331161406

from scipy.stats import norm

norm.cdf(0.10606601717798211)
0.54223501331161406

Thanks,

Michel
_______________________________________________
Tutor maillist - ***@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
Alan Gauld
2015-10-01 15:16:03 UTC
Permalink
Post by Michel Guirguis
What is the name of the header that I can use in Python 3.4
Can you explain what you mean by "header"?
That's not a Python concept, Python doesn't have header
files like C/C++
Post by Michel Guirguis
to convert the cumulative distribution function number
0.10606601717798211 to 0.54223501331161406
from scipy.stats import norm
norm.cdf(0.10606601717798211)
0.54223501331161406
I'm not sure what this shows?
Is it a session from the interpreter?
Or is it what you would like to happen?

Can you clarify what it is you want to know?
--
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos


_______________________________________________
Tutor maillist - ***@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
Alan Gauld
2015-10-01 15:37:12 UTC
Permalink
Post by Michel Guirguis
Good afternoon,
Basically, I am trying to find a value of the cumulative distribution
in Python.
Thanks for your help. I have managed to find the cumulative value in
scipy but not in the standard Python 3.4. I have solved my problem
with scipy but not with the standard Python 3.4.
That's because Python does not have a rich set of statistical functions
built in (it is a general purpose programming language) so you would
need to create your own.

That's why there are packages like scipy - to save you from writing
your own.

If you can provide the algorithm then maybe we can help you write one,
but if scipy already has it then just use that.
--
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos

_______________________________________________
Tutor maillist - ***@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
Laura Creighton
2015-10-01 15:17:32 UTC
Permalink
Post by Michel Guirguis
Good afternoon,
What is the name of the header that I can use in Python 3.4 to convert the cumulative distribution function number 0.10606601717798211 to 0.54223501331161406
from scipy.stats import norm
norm.cdf(0.10606601717798211)
0.54223501331161406
Thanks,
Michel
You need scipy. It's called a package, not a header, by the way.
scipy is the Scientific Python Package.
It's not part of standard Python 3.4.

The best way to get scypi is to go here:
https://www.continuum.io/downloads and get Anaconda Python.

Download the proper installer for whatever operating system you
have. You are going to get yourself a whole new python 3.4 which
will already have scipy, numpy and a ton of other scientific
algorithms you will find useful.

All your existing 3.4 programs will work perfectly well with it,
so if you downloaded the 3.4 you are currently using yourself, you
can go ahead and remove it and just use the one from Anaconda.

What Operating system are you using, by the way?

Laura
_______________________________________________
Tutor maillist - ***@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
Continue reading on narkive:
Loading...