Hi,

On Wed, Apr 22, 2015 at 11:51 PM, Paul Royik <distantjob...@gmail.com> wrote:
> I'm looking for numerical answer. No need to find analytical solution.
>
> On Wednesday, April 22, 2015 at 6:38:29 PM UTC+3, Aaron Meurer wrote:
>>
>> Are you just looking for a numerical answer. The sympy.stats module
>> tries to do things symbolically, meaning it can choke if it hits a
>> hard integral.
>>
>> Aaron Meurer
>>
>> On Wed, Apr 22, 2015 at 6:17 AM, Paul Royik <distan...@gmail.com> wrote:
>> > I need to calculate P(X<1.2) where X follows T distribution with 5
>> > degrees
>> > of freedom.
>> >
>> > cdf(StudentT('x',5))(1.2) takes too much time.

I think you want scipy for that:

>>> import scipy.stats as sps
>>> sps.t.cdf(1.2, 5)
0.85805447164694892

Best,

Matthew

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sympy+unsubscr...@googlegroups.com.
To post to this group, send email to sympy@googlegroups.com.
Visit this group at http://groups.google.com/group/sympy.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/CAH6Pt5rJSkzES1TqNQJNmTMg_ag%3DoWROJrYB9qd%2BcBiU7KQUPw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to