Scipy is a Python open source package used for the scientific computing across many domains such as engineering, mathematics, sciences etc. Here are some examples of Scipy.

Let’s say that that income of a company’s employees is normally distributed with mean of 10,000 USD and standard deviation of 1,000 USD. Approximately what percent of the employees will be earning 11,000 USD of salary or less?

This can be easily accomplished using SciPy. The answer is 84.1% of employees.

We can also say that 100-84.1% or roughly 16% of employees may be earning higher than 11,000 USD.

Here in another example on how we can pick a random sample from a particular normal distribution.

Cheers!

### Like this:

Like Loading...

Pingback: Learn Python Step by Step | RP's Blog on data science

Q. How we can pick a random sample from a particular normal distribution?

import scipy.stats as norm

print(round((st.norm(10000,1000).cdf(11000))*100,1))

np.round(norm.norm.rvs(loc=10000,scale=1000,size=10),0)

LikeLike