Processing math: 100%
Ask Your Question
1

How to solve normal distribution equation in Sage

asked 10 years ago

mathhobbyist gravatar image

I'm practicing statistics and I'm wondered how one can solve the following problem from Sage:

Find a numerical value of x such that 12πxet2/2dt=0.987654321. I was thinking to different solutions:

1) Is there an inverse of normal distribution cumulative function?

2) Can we write it as f(x)=ex2/2,f(0)=1/2,f(x0)=0.987654321 and use some numerical method to solve the differential equation?

but I don't know are those functions implemented in Sage.

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
1

answered 10 years ago

calc314 gravatar image

I use the stats package in scipy for this. For example:

import scipy.stats as st
st.norm.ppf(0.6,0,1)

Gives the value x0 so that P(xx0)=0.6 for a normal distribution with mean 0 and variance 1.

See the documentation.

Preview: (hide)
link

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 10 years ago

Seen: 1,362 times

Last updated: Mar 16 '15