Top "Scipy" questions

SciPy is an open source library of algorithms and mathematical tools for the Python programming language.

P-value from Chi sq test statistic in Python

I have computed a test statistic that is distributed as a chi square with 1 degree of freedom, and want to …

python statistics scipy chi-squared
How does condensed distance matrix work? (pdist)

scipy.spatial.distance.pdist returns a condensed distance matrix. From the documentation: Returns a condensed distance matrix Y. For each …

python numpy scipy
How to filter numpy array by list of indices?

I have a numpy array, filtered__rows, comprised of LAS data [x, y, z, intensity, classification]. I have created a …

python numpy scipy nearest-neighbor
Read file and plot CDF in Python

I need to read long file with timestamp in seconds, and plot of CDF using numpy or scipy. I did …

python numpy matplotlib scipy cdf
shuffle vs permute numpy

What is the difference between numpy.random.shuffle(x) and numpy.random.permutation(x)? I have read the doc pages …

python numpy scipy permutation shuffle
how to plot and annotate hierarchical clustering dendrograms in scipy/matplotlib

I'm using dendrogram from scipy to plot hierarchical clustering using matplotlib as follows: mat = array([[1, 0.5, 0.9], [0.5, 1, -0.5], [0.9, -0.5, 1]]) plt.subplot(1,2,1) plt.…

python numpy matplotlib scipy dendrogram
Relationship between SciPy and NumPy

SciPy appears to provide most (but not all [1]) of NumPy's functions in its own namespace. In other words, if there's …

python numpy scipy
Why does scipy.optimize.curve_fit not fit to the data?

I've been trying to fit an exponential to some data for a while using scipy.optimize.curve_fit but i'm …

python matplotlib scipy curve-fitting data-fitting
Structure of inputs to scipy minimize function

I have inherited some code that is trying to minimize a function using scipy.optimize.minimize. I am having trouble …

python numpy scipy minimize
Obtain eigen values and vectors from sklearn PCA

How I can get the the eigen values and eigen vectors of the PCA application? from sklearn.decomposition import PCA …

python scipy scikit-learn pca